[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:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33: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:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55: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:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]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:07]accept exits with 7 [04:05:07]New connection [04:05:07]New thread 3067293028 created [04:05:07]Thread 3067436388 joined [04:05:07]Waiting for new connection... [04:05:07] Sock 7.Parse request [04:05:07]Sock 7.Check first char [04:05:07]Sock 7.First char is OK [04:05:07]request: POST /json_proto HTTP/1.0 [04:05:07]Method: POST [04:05:07]URL: /json_proto [04:05:07]Method is POST - this is cgi request [04:05:07]url: /json_proto [04:05:07]query_string will be loaded in cgi processing [04:05:07]execute_cgi json_proto POST (null) [04:05:07]execute_cgi path=json_proto method=POST [04:05:07]POST find Content-Length [04:05:07]Host: 172.17.38.134:8080 [04:05:07]Content-Length: 620 [04:05:07]Content-Type: application/json [04:05:07] [04:05:07]POST finish read [04:05:07]Found Content-Length = 620 [04:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183984", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:07]execute_script... [04:05:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183984", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:07]POST & json_proto [04:05:07]process_json_proto [04:05:07]json parsed OK: [04:05:07]protocol is kg_v1.0 [04:05:07]action value=close_receipt [04:05:07]process_action close_receipt [04:05:07]cmd_close_receipt [04:05:07]MH_GetDate [04:05:07]Write to MH i2c: F0 00 00 05 05 F9 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: F0 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: F0 09 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: F0 09 00 05 05 00 74 07 71 66 13 9C 7C 64 E3 [04:05:07]GetLastDocTimeStamp 1718680791 [04:05:07]current date 1718683508 [04:05:07]FM_GetShiftState [04:05:07]SAM_PROTO_GetShiftState [04:05:07]wFMCommunicate request_size=4 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 13 01 00 [04:05:07]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 0E 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D3 [04:05:07]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [04:05:07]wFMCommunicate OK [04:05:07]SAM_PROTO_GetShiftState done [04:05:07]FM_GetShiftState done [04:05:07]opened in 1718670230 [04:05:07]opened+sec_in_day 1718756630 [04:05:07]quantity*price = 40500 [04:05:07]sum+1 = 40501 [04:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 18.06.2024 04:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34182 ФПД: 111543403673836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T040508&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34182&fm=111543403673836&tin=02508201610067®Number=0000000000092786&sum=40500 0 [04:05:08]StoreToDocumentArchive [04:05:08]shift 323 fd 34182 [04:05:08]save to /storage/0323/doc_00034182 [04:05:08]save last doc name /storage/0323/doc_00034182 to /storage/kkm_last_doc_name [04:05:08]save OK [04:05:08]Clear old archive folders... [04:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=280 [04:05:08]tlvbuf is 01A08760 [04:05:08]SAM_PROTO_ClearQueue [04:05:08]wFMCommunicate request_size=4 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 09 00 00 [04:05:08]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [04:05:08]RAPDU: 90 00 [04:05:08]wFMCommunicate OK [04:05:08]SAM_PROTO_ClearQueue done [04:05:08]KKMCreateOFDPacket [04:05:08]OFDProtocolAddRootSTLVToBuf [04:05:08]FM_MakeSignedData [04:05:08]FM_MakeSignedData [04:05:08]SAM_PROTO_SignData [04:05:08]wFMCommunicate request_size=4 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 0D 01 02 [04:05:08]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [04:05:08]RAPDU: 90 00 [04:05:08]wFMCommunicate OK [04:05:08]wFMCommunicate request_size=255 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 74 07 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [04:05:08]Write to MH i2c: E2 02 01 15 05 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 74 07 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 2E [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [04:05:08]RAPDU: 90 00 [04:05:08]wFMCommunicate OK [04:05:08]wFMCommunicate request_size=39 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 85 00 00 35 04 06 00 65 72 B8 F3 F8 EC [04:05:08]Write to MH i2c: E2 2A 00 16 05 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 85 00 00 35 04 06 00 65 72 B8 F3 F8 EC 00 00 C3 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [04:05:08]RAPDU: 90 00 [04:05:08]wFMCommunicate OK [04:05:08]wFMCommunicate request_size=4 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 0D 03 02 [04:05:08]Write to MH i2c: E2 08 00 17 05 80 0D 03 02 00 00 00 00 97 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 0B 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 0B 00 17 05 00 1F 3A F4 35 79 8E 21 C8 90 00 0A [04:05:08]RAPDU: 1F 3A F4 35 79 8E 21 C8 90 00 [04:05:08]wFMCommunicate OK [04:05:08]SAM_PROTO_SignData done [04:05:08]FM_MakeSignedData done [04:05:08]CreateOFDProtocolMessage [04:05:08]wFMCommunicate request_size=4 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 11 00 00 [04:05:08]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 17 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EC [04:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [04:05:08]wFMCommunicate OK [04:05:08]CreateOFDProtocolMessage done [04:05:08]OFDSenderStorePacket 34182 [04:05:08]StoreOFDPacket docnum=34182 [04:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 6E 41 24 01 99 00 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 74 07 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 85 00 00 35 04 06 00 65 72 B8 F3 F8 EC 1F 3A F4 35 79 8E 21 C8 [04:05:08]CheckFolder [04:05:08]dirname=/storage/ofd_packets [04:05:08]CheckFolder done [04:05:08]ProducePacketName [04:05:08]name=ofd_packets/00034182 [04:05:08]NVStorageSaveData ofd_packets/00034182 [04:05:08]File name is /storage/ofd_packets/00034182 [04:05:08]Write 330 bytes [04:05:08]NVStorageSaveData done [04:05:08]OFDSenderStorePacket done [04:05:08]KKMCreateOFDPacket done [04:05:08]NVStorageSaveData kkm_last_timestamp [04:05:08]File name is /storage/kkm_last_timestamp [04:05:08]Write 4 bytes [04:05:08]NVStorageSaveData done [04:05:08]ExternCall_PrintAddStr [04:05:08]wPrintStart [04:05:08]Write to MH i2c: 01 00 00 19 05 1E [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [04:05:08]RasterBufferAndPrint [04:05:08]line Счет N : (3)183984 [04:05:08]line ИНН: 02508201610067 [04:05:08]line Контрольно-Кассовый Чек [04:05:08]line ПРОДАЖА [04:05:08]line Товар: 4650063110756 [04:05:08]line Масло Gazpromneft Super 10w40 1л [04:05:08]line 1.000 * 405.00 [04:05:08]line = 405.00 [04:05:08]line НДС 12% НСП 1% [04:05:08]line > о реализуемом товаре [04:05:08]line ИТОГО: 405.00 [04:05:08]line НСП 1% : 3.58 [04:05:08]line НДС 12% : 43.01 [04:05:08]line Наличными: 405.00 [04:05:08]line Безнал.: 0.00 [04:05:08]line Место: АЗС № 120 "Партнер Нефть" [04:05:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [04:05:08]line СНО: Общий режим [04:05:08]line Чек 4 18.06.2024 04:05 [04:05:08]line Смена: 323 ФФД: 1.0 [04:05:08]line ЗНМ: 0300000172 [04:05:08]line РНМ: 0000000000092786 [04:05:08]line Версия ККМ: 001 [04:05:08]line ФМ: 0000000000875095 [04:05:08]line ФД: 34182 [04:05:08]line ФПД: 111543403673836 [04:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T040508&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34182&fm=111543403673836&tin=02508201610067®Number=0000000000092786&sum=40500 [04:05:09]line 0 [04:05:09]OFD Sender: Processing packet 34182 [packets to send 8, broken 7] [04:05:09]ProducePacketName [04:05:09]name=ofd_packets/00034182 [04:05:09]OFD Sender: To server: pG, [04:05:09]CommunicateWithHost lk.salyk.kg:30040 [04:05:09]ConnectInit lk.salyk.kg [04:05:09]written 0, free lines is 4095 [04:05:09]Connected sock=10 [04:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 6E 41 24 01 99 00 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 74 07 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 85 00 00 35 04 06 00 65 72 B8 F3 F8 EC 1F 3A F4 35 79 8E 21 C8 [04:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A5 4D 47 00 1B 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 86 85 00 00 F4 03 04 00 46 AE 70 66 B6 04 01 00 00 9E DF AF B3 DA 00 38 94 [04:05:09]CommunicateWithHost err = 0 [04:05:09]CheckOFDResponse [04:05:09]1017 (14) - 77093643461234 [04:05:09]1041 (16) - 0000000000875095 [04:05:09]1040 (4) - 34182 [04:05:09]1012 (4) - 17.06.2024 21:44 [04:05:09]1206 (1) - 0 [04:05:09]OFD Sender: Remove packet 34182 [04:05:09]ProducePacketName [04:05:09]name=ofd_packets/00034182 [04:05:09]NVStorageDeleteData [04:05:09]Write to MH i2c: 01 00 00 42 05 47 [04:05:09]Write i2c OK [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: 01 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: 01 07 00 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 DE 0C 38 [04:05:09]RasterBufferAndPrint [04:05:09]line [04:05:09]line [04:05:09]line [04:05:09]line [04:05:09]line [04:05:09]written 0, free lines is 3301 [04:05:09]MH_Cut [04:05:09]Write to MH i2c: D1 01 00 49 05 01 20 [04:05:09]Write i2c OK [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: D1 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: D1 01 00 [04:05:09]MH_I2C_Read... [04:05:09]Read from MH i2c: D1 01 00 49 05 00 1F [04:05:09]Write to MH i2c: 01 00 00 4A 05 4F [04:05:09]Write i2c OK [04:05:09]MH_I2C_Read... [04:05:09]OFD Sender: No OFD packet to send [04:05:10]*** Cut start [04:05:10]*** Partial cut [04:05:10]*** CUTSNS_PIN = 1 [04:05:10]*** CUTSNS_PIN = 0 [04:05:10]*** Brake cut motor [04:05:10]Read from MH i2c: 01 [04:05:10]MH_I2C_Read... [04:05:10]*** Stop cut motor [04:05:10]*** Cut end [04:05:10]Read from MH i2c: 01 07 00 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [04:05:10]process_action close_receipt done [04:05:10]requested_data is exist [04:05:10]produce_requested_data [04:05:10]requested_item fm.sn is exist - process it [04:05:10]wFMCommunicate request_size=4 [04:05:10]MH_SAM_APDU [04:05:10]CAPDU: 80 11 00 00 [04:05:10]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [04:05:10]Write i2c OK [04:05:10]MH_I2C_Read... [04:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:10]Read from MH i2c: E2 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 17 00 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1F [04:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [04:05:10]wFMCommunicate OK [04:05:10]requested_item fd.num is exist - process it [04:05:10]SAM_PROTO_GetFieldsCounters [04:05:10]wFMCommunicate request_size=4 [04:05:10]MH_SAM_APDU [04:05:10]CAPDU: 80 13 00 00 [04:05:10]Write to MH i2c: E2 08 00 4C 05 80 13 00 00 00 00 00 00 CD [04:05:10]Write i2c OK [04:05:10]MH_I2C_Read... [04:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:11]Read from MH i2c: E2 [04:05:11]MH_I2C_Read... [04:05:11]Read from MH i2c: E2 62 00 [04:05:11]MH_I2C_Read... [04:05:11]Read from MH i2c: E2 62 00 4C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 86 85 00 00 0E 04 04 00 43 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 52 [04:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 86 85 00 00 0E 04 04 00 43 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 [04:05:11]wFMCommunicate OK [04:05:11]SAM_PROTO_GetFieldsCounters done [04:05:11]requested_item shift.num is exist - process it [04:05:11]requested_item shift.opened is exist - process it [04:05:11]req_shift_opened [04:05:11]FM_GetShiftState [04:05:11]SAM_PROTO_GetShiftState [04:05:11]wFMCommunicate request_size=4 [04:05:11]MH_SAM_APDU [04:05:11]CAPDU: 80 13 01 00 [04:05:11]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [04:05:11]Write i2c OK [04:05:11]MH_I2C_Read... [04:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:11]Read from MH i2c: E2 [04:05:11]MH_I2C_Read... [04:05:11]Read from MH i2c: E2 0E 00 [04:05:11]MH_I2C_Read... [04:05:11]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 1A [04:05:11]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [04:05:11]wFMCommunicate OK [04:05:11]SAM_PROTO_GetShiftState done [04:05:11]FM_GetShiftState done [04:05:11]req_shift_opened done [04:05:11]requested_item shift.open_date is exist - process it [04:05:11]req_shift_open_date [04:05:11]req_shift_open_date done [04:05:11]produce_requested_data done [04:05:11]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34182,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [04:05:11]process_action_free close_receipt [04:05:11]json_value_free [04:05:11]json_value_free done [04:05:11]process_json_proto returns [04:05:11]Send response to host [04:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34182,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [04:05:11]free response buf [04:05:11]execute_script done [04:05:11]execute_script returns [04:05:11]free content buf [04:05:11]Sock 7.Close socket [04:05:11]Sock 7.Thread stoped [04:05:14]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:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]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:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:42:59]accept exits with 9 [06:42:59]New connection [06:42:59]New thread 3067436388 created [06:42:59]Thread 3067293028 joined [06:42:59]Waiting for new connection... [06:42:59] Sock 9.Parse request [06:42:59]Sock 9.Check first char [06:42:59]Sock 9.First char is OK [06:42:59]request: POST /json_proto HTTP/1.0 [06:42:59]Method: POST [06:42:59]URL: /json_proto [06:42:59]Method is POST - this is cgi request [06:42:59]url: /json_proto [06:42:59]query_string will be loaded in cgi processing [06:42:59]execute_cgi json_proto POST (null) [06:42:59]execute_cgi path=json_proto method=POST [06:42:59]POST find Content-Length [06:42:59]Host: 172.17.38.134:8080 [06:42:59]Content-Length: 609 [06:42:59]Content-Type: application/json [06:42:59] [06:42:59]POST finish read [06:42:59]Found Content-Length = 609 [06:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183985", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:59]execute_script... [06:42:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183985", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:59]POST & json_proto [06:42:59]process_json_proto [06:42:59]json parsed OK: [06:42:59]protocol is kg_v1.0 [06:42:59]action value=close_receipt [06:42:59]process_action close_receipt [06:42:59]cmd_close_receipt [06:42:59]MH_GetDate [06:42:59]Write to MH i2c: F0 00 00 4E 05 42 [06:42:59]Write i2c OK [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: F0 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: F0 09 00 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: F0 09 00 4E 05 00 76 2C 71 66 13 9C 7C 64 53 [06:42:59]GetLastDocTimeStamp 1718683508 [06:42:59]current date 1718692982 [06:42:59]FM_GetShiftState [06:42:59]SAM_PROTO_GetShiftState [06:42:59]wFMCommunicate request_size=4 [06:42:59]MH_SAM_APDU [06:42:59]CAPDU: 80 13 01 00 [06:42:59]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [06:42:59]Write i2c OK [06:42:59]MH_I2C_Read... [06:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:59]Read from MH i2c: E2 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 0E 00 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 1C [06:42:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [06:42:59]wFMCommunicate OK [06:42:59]SAM_PROTO_GetShiftState done [06:42:59]FM_GetShiftState done [06:42:59]opened in 1718670230 [06:42:59]opened+sec_in_day 1718756630 [06:42:59]quantity*price = 13000 [06:42:59]sum+1 = 13001 [06:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 5 18.06.2024 06:43 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34183 ФПД: 256061769356049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T064302&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34183&fm=256061769356049&tin=02508201610067®Number=0000000000092786&sum=13000 0 [06:43:00]StoreToDocumentArchive [06:43:00]shift 323 fd 34183 [06:43:00]save to /storage/0323/doc_00034183 [06:43:00]save last doc name /storage/0323/doc_00034183 to /storage/kkm_last_doc_name [06:43:00]save OK [06:43:00]Clear old archive folders... [06:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=261 [06:43:00]tlvbuf is 019B9990 [06:43:00]SAM_PROTO_ClearQueue [06:43:00]wFMCommunicate request_size=4 [06:43:00]MH_SAM_APDU [06:43:00]CAPDU: 80 09 00 00 [06:43:00]Write to MH i2c: E2 08 00 5C 05 80 09 00 00 00 00 00 00 D3 [06:43:00]Write i2c OK [06:43:00]MH_I2C_Read... [06:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:00]Read from MH i2c: E2 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 03 00 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [06:43:00]RAPDU: 90 00 [06:43:00]wFMCommunicate OK [06:43:00]SAM_PROTO_ClearQueue done [06:43:00]KKMCreateOFDPacket [06:43:00]OFDProtocolAddRootSTLVToBuf [06:43:00]FM_MakeSignedData [06:43:00]FM_MakeSignedData [06:43:00]SAM_PROTO_SignData [06:43:00]wFMCommunicate request_size=4 [06:43:00]MH_SAM_APDU [06:43:00]CAPDU: 80 0D 01 02 [06:43:00]Write to MH i2c: E2 08 00 5D 05 80 0D 01 02 00 00 00 00 DB [06:43:00]Write i2c OK [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 [06:43:00]MH_I2C_Read... [06:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:00]Read from MH i2c: E2 03 00 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [06:43:00]RAPDU: 90 00 [06:43:00]wFMCommunicate OK [06:43:00]wFMCommunicate request_size=255 [06:43:00]MH_SAM_APDU [06:43:00]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 76 2C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 [06:43:00]Write to MH i2c: E2 02 01 5E 05 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 76 2C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 00 4E [06:43:00]Write i2c OK [06:43:00]MH_I2C_Read... [06:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:01]Read from MH i2c: E2 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 03 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [06:43:01]RAPDU: 90 00 [06:43:01]wFMCommunicate OK [06:43:01]wFMCommunicate request_size=20 [06:43:01]MH_SAM_APDU [06:43:01]CAPDU: 80 0D 02 02 0F 00 87 85 00 00 35 04 06 00 E8 E3 06 CD 93 11 [06:43:01]Write to MH i2c: E2 17 00 5F 05 80 0D 02 02 0F 00 00 87 85 00 00 35 04 06 00 E8 E3 06 CD 93 11 00 00 89 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:01]Read from MH i2c: E2 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 03 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [06:43:01]RAPDU: 90 00 [06:43:01]wFMCommunicate OK [06:43:01]wFMCommunicate request_size=4 [06:43:01]MH_SAM_APDU [06:43:01]CAPDU: 80 0D 03 02 [06:43:01]Write to MH i2c: E2 08 00 60 05 80 0D 03 02 00 00 00 00 E0 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:01]Read from MH i2c: E2 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 0B 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 0B 00 60 05 00 69 56 06 E7 0D A7 39 FA 90 00 74 [06:43:01]RAPDU: 69 56 06 E7 0D A7 39 FA 90 00 [06:43:01]wFMCommunicate OK [06:43:01]SAM_PROTO_SignData done [06:43:01]FM_MakeSignedData done [06:43:01]CreateOFDProtocolMessage [06:43:01]wFMCommunicate request_size=4 [06:43:01]MH_SAM_APDU [06:43:01]CAPDU: 80 11 00 00 [06:43:01]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:01]Read from MH i2c: E2 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 17 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 35 [06:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [06:43:01]wFMCommunicate OK [06:43:01]CreateOFDProtocolMessage done [06:43:01]OFDSenderStorePacket 34183 [06:43:01]StoreOFDPacket docnum=34183 [06:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 19 01 00 00 31 A3 11 01 46 75 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 76 2C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 85 00 00 35 04 06 00 E8 E3 06 CD 93 11 69 56 06 E7 0D A7 39 FA [06:43:01]CheckFolder [06:43:01]dirname=/storage/ofd_packets [06:43:01]CheckFolder done [06:43:01]ProducePacketName [06:43:01]name=ofd_packets/00034183 [06:43:01]NVStorageSaveData ofd_packets/00034183 [06:43:01]File name is /storage/ofd_packets/00034183 [06:43:01]Write 311 bytes [06:43:01]NVStorageSaveData done [06:43:01]OFDSenderStorePacket done [06:43:01]KKMCreateOFDPacket done [06:43:01]NVStorageSaveData kkm_last_timestamp [06:43:01]File name is /storage/kkm_last_timestamp [06:43:01]Write 4 bytes [06:43:01]NVStorageSaveData done [06:43:01]ExternCall_PrintAddStr [06:43:01]wPrintStart [06:43:01]Write to MH i2c: 01 00 00 62 05 67 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: 01 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: 01 07 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [06:43:01]RasterBufferAndPrint [06:43:01]line Счет N : (3)183985 [06:43:01]line ИНН: 02508201610067 [06:43:01]line Контрольно-Кассовый Чек [06:43:01]line ПРОДАЖА [06:43:01]line Товар: 48741156 [06:43:01]line Сигареты LD Blue [06:43:01]line 1.000 * 130.00 [06:43:01]line = 130.00 [06:43:01]line НДС 12% НСП 1% [06:43:01]line > о реализуемом товаре [06:43:01]line ИТОГО: 130.00 [06:43:01]line НСП 1% : 1.15 [06:43:01]line НДС 12% : 13.80 [06:43:01]line Наличными: 130.00 [06:43:01]line Безнал.: 0.00 [06:43:01]line Место: АЗС № 120 "Партнер Нефть" [06:43:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:43:01]line СНО: Общий режим [06:43:01]line Чек 5 18.06.2024 06:43 [06:43:01]line Смена: 323 ФФД: 1.0 [06:43:01]line ЗНМ: 0300000172 [06:43:01]line РНМ: 0000000000092786 [06:43:01]line Версия ККМ: 001 [06:43:01]line ФМ: 0000000000875095 [06:43:01]line ФД: 34183 [06:43:01]line ФПД: 256061769356049 [06:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T064302&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34183&fm=256061769356049&tin=02508201610067®Number=0000000000092786&sum=13000 [06:43:01]line 0 [06:43:01]OFD Sender: Processing packet 34183 [packets to send 8, broken 7] [06:43:01]ProducePacketName [06:43:01]name=ofd_packets/00034183 [06:43:01]OFD Sender: To server: pG, [06:43:01]CommunicateWithHost lk.salyk.kg:30040 [06:43:01]ConnectInit lk.salyk.kg [06:43:01]written 0, free lines is 4095 [06:43:01]Connected sock=10 [06:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 19 01 00 00 31 A3 11 01 46 75 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 76 2C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 85 00 00 35 04 06 00 E8 E3 06 CD 93 11 69 56 06 E7 0D A7 39 FA [06:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 37 89 47 00 BB 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 87 85 00 00 F4 03 04 00 46 D3 70 66 B6 04 01 00 00 A7 37 C0 0C 04 AE C3 51 [06:43:01]CommunicateWithHost err = 0 [06:43:01]CheckOFDResponse [06:43:01]1017 (14) - 77093643461234 [06:43:01]1041 (16) - 0000000000875095 [06:43:01]1040 (4) - 34183 [06:43:01]1012 (4) - 18.06.2024 00:22 [06:43:01]1206 (1) - 0 [06:43:01]OFD Sender: Remove packet 34183 [06:43:01]ProducePacketName [06:43:01]name=ofd_packets/00034183 [06:43:01]NVStorageDeleteData [06:43:02]Write to MH i2c: 01 00 00 8A 05 8F [06:43:02]Write i2c OK [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: 01 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: 01 07 00 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 F6 0C 98 [06:43:02]RasterBufferAndPrint [06:43:02]line [06:43:02]line [06:43:02]line [06:43:02]line [06:43:02]line [06:43:02]written 0, free lines is 3322 [06:43:02]MH_Cut [06:43:02]Write to MH i2c: D1 01 00 91 05 01 68 [06:43:02]Write i2c OK [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: D1 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: D1 01 00 [06:43:02]MH_I2C_Read... [06:43:02]Read from MH i2c: D1 01 00 91 05 00 67 [06:43:02]Write to MH i2c: 01 00 00 92 05 97 [06:43:02]Write i2c OK [06:43:02]MH_I2C_Read... [06:43:02]OFD Sender: No OFD packet to send [06:43:02]*** Cut start [06:43:02]*** Partial cut [06:43:02]*** CUTSNS_PIN = 1 [06:43:02]*** CUTSNS_PIN = 0 [06:43:03]*** Brake cut motor [06:43:03]Read from MH i2c: 01 [06:43:03]MH_I2C_Read... [06:43:03]*** Stop cut motor [06:43:03]*** Cut end [06:43:03]Read from MH i2c: 01 07 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 FF 0F AC [06:43:03]process_action close_receipt done [06:43:03]requested_data is exist [06:43:03]produce_requested_data [06:43:03]requested_item fm.sn is exist - process it [06:43:03]wFMCommunicate request_size=4 [06:43:03]MH_SAM_APDU [06:43:03]CAPDU: 80 11 00 00 [06:43:03]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 17 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 17 00 93 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 67 [06:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [06:43:03]wFMCommunicate OK [06:43:03]requested_item fd.num is exist - process it [06:43:03]SAM_PROTO_GetFieldsCounters [06:43:03]wFMCommunicate request_size=4 [06:43:03]MH_SAM_APDU [06:43:03]CAPDU: 80 13 00 00 [06:43:03]Write to MH i2c: E2 08 00 94 05 80 13 00 00 00 00 00 00 15 [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 62 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 62 00 94 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 87 85 00 00 0E 04 04 00 43 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 9E [06:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 87 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:43:03]wFMCommunicate OK [06:43:03]SAM_PROTO_GetFieldsCounters done [06:43:03]requested_item shift.num is exist - process it [06:43:03]requested_item shift.opened is exist - process it [06:43:03]req_shift_opened [06:43:03]FM_GetShiftState [06:43:03]SAM_PROTO_GetShiftState [06:43:03]wFMCommunicate request_size=4 [06:43:03]MH_SAM_APDU [06:43:03]CAPDU: 80 13 01 00 [06:43:03]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [06:43:03]Write i2c OK [06:43:03]MH_I2C_Read... [06:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:03]Read from MH i2c: E2 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 0E 00 [06:43:03]MH_I2C_Read... [06:43:03]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 62 [06:43:03]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [06:43:03]wFMCommunicate OK [06:43:03]SAM_PROTO_GetShiftState done [06:43:03]FM_GetShiftState done [06:43:03]req_shift_opened done [06:43:03]requested_item shift.open_date is exist - process it [06:43:03]req_shift_open_date [06:43:03]req_shift_open_date done [06:43:03]produce_requested_data done [06:43:03]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34183,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [06:43:03]process_action_free close_receipt [06:43:03]json_value_free [06:43:03]json_value_free done [06:43:03]process_json_proto returns [06:43:03]Send response to host [06:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34183,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [06:43:03]free response buf [06:43:03]execute_script done [06:43:03]execute_script returns [06:43:03]free content buf [06:43:03]Sock 9.Close socket [06:43:03]Sock 9.Thread stoped [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:39]accept exits with 7 [06:52:39]New connection [06:52:39]New thread 3067293028 created [06:52:39]Thread 3067436388 joined [06:52:39]Waiting for new connection... [06:52:39] Sock 7.Parse request [06:52:39]Sock 7.Check first char [06:52:39]Sock 7.First char is OK [06:52:39]request: POST /json_proto HTTP/1.0 [06:52:39]Method: POST [06:52:39]URL: /json_proto [06:52:39]Method is POST - this is cgi request [06:52:39]url: /json_proto [06:52:39]query_string will be loaded in cgi processing [06:52:39]execute_cgi json_proto POST (null) [06:52:39]execute_cgi path=json_proto method=POST [06:52:39]POST find Content-Length [06:52:39]Host: 172.17.38.134:8080 [06:52:39]Content-Length: 732 [06:52:39]Content-Type: application/json [06:52:39] [06:52:39]POST finish read [06:52:39]Found Content-Length = 732 [06:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183986", "tax_sys" : 0, "items" : [ { "code": "4606532012076", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C FELIX \u0433\u0438\u0434\u0440\u043E\u0443\u0441\u0438\u043B\u0438\u0442\u0435\u043B\u044F \u0440\u0443\u043B\u044F 0,5\u043B", "price" : 290.00, "quantity" : 1.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:39]execute_script... [06:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183986", "tax_sys" : 0, "items" : [ { "code": "4606532012076", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C FELIX \u0433\u0438\u0434\u0440\u043E\u0443\u0441\u0438\u043B\u0438\u0442\u0435\u043B\u044F \u0440\u0443\u043B\u044F 0,5\u043B", "price" : 290.00, "quantity" : 1.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:39]POST & json_proto [06:52:39]process_json_proto [06:52:39]json parsed OK: [06:52:39]protocol is kg_v1.0 [06:52:39]action value=close_receipt [06:52:39]process_action close_receipt [06:52:39]cmd_close_receipt [06:52:39]MH_GetDate [06:52:39]Write to MH i2c: F0 00 00 96 05 8A [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: F0 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: F0 09 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: F0 09 00 96 05 00 BA 2E 71 66 13 9C 7C 64 E1 [06:52:39]GetLastDocTimeStamp 1718692982 [06:52:39]current date 1718693562 [06:52:39]FM_GetShiftState [06:52:39]SAM_PROTO_GetShiftState [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 13 01 00 [06:52:39]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 0E 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 64 [06:52:39]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [06:52:39]wFMCommunicate OK [06:52:39]SAM_PROTO_GetShiftState done [06:52:39]FM_GetShiftState done [06:52:39]opened in 1718670230 [06:52:39]opened+sec_in_day 1718756630 [06:52:39]quantity*price = 29000 [06:52:39]sum+1 = 29001 [06:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 6 18.06.2024 06:52 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34184 ФПД: 154172001996982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T065242&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34184&fm=154172001996982&tin=02508201610067®Number=0000000000092786&sum=29000 0 [06:52:40]StoreToDocumentArchive [06:52:40]shift 323 fd 34184 [06:52:40]save to /storage/0323/doc_00034184 [06:52:40]save last doc name /storage/0323/doc_00034184 to /storage/kkm_last_doc_name [06:52:40]save OK [06:52:40]Clear old archive folders... [06:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=308 [06:52:40]tlvbuf is 01A0A980 [06:52:40]SAM_PROTO_ClearQueue [06:52:40]wFMCommunicate request_size=4 [06:52:40]MH_SAM_APDU [06:52:40]CAPDU: 80 09 00 00 [06:52:40]Write to MH i2c: E2 08 00 A4 05 80 09 00 00 00 00 00 00 1B [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:40]Read from MH i2c: E2 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 03 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [06:52:40]RAPDU: 90 00 [06:52:40]wFMCommunicate OK [06:52:40]SAM_PROTO_ClearQueue done [06:52:40]KKMCreateOFDPacket [06:52:40]OFDProtocolAddRootSTLVToBuf [06:52:40]FM_MakeSignedData [06:52:40]FM_MakeSignedData [06:52:40]SAM_PROTO_SignData [06:52:40]wFMCommunicate request_size=4 [06:52:40]MH_SAM_APDU [06:52:40]CAPDU: 80 0D 01 02 [06:52:40]Write to MH i2c: E2 08 00 A5 05 80 0D 01 02 00 00 00 00 23 [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:40]Read from MH i2c: E2 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 03 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [06:52:40]RAPDU: 90 00 [06:52:40]wFMCommunicate OK [06:52:40]wFMCommunicate request_size=255 [06:52:40]MH_SAM_APDU [06:52:40]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 37 36 06 04 42 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 46 45 4C 49 58 20 D0 B3 D0 B8 D0 B4 D1 80 D0 BE D1 83 D1 81 D0 B8 D0 BB D0 B8 D1 82 D0 B5 D0 BB D1 8F 20 D1 80 D1 83 D0 BB D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 71 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BA 2E 71 66 0E 04 04 00 43 01 00 00 B9 [06:52:40]Write to MH i2c: E2 02 01 A6 05 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 37 36 06 04 42 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 46 45 4C 49 58 20 D0 B3 D0 B8 D0 B4 D1 80 D0 BE D1 83 D1 81 D0 B8 D0 BB D0 B8 D1 82 D0 B5 D0 BB D1 8F 20 D1 80 D1 83 D0 BB D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 71 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BA 2E 71 66 0E 04 04 00 43 01 00 00 B9 00 00 B9 [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 03 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [06:52:41]RAPDU: 90 00 [06:52:41]wFMCommunicate OK [06:52:41]wFMCommunicate request_size=67 [06:52:41]MH_SAM_APDU [06:52:41]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 85 00 00 35 04 06 00 8C 37 F7 69 D0 B6 [06:52:41]Write to MH i2c: E2 46 00 A7 05 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 85 00 00 35 04 06 00 8C 37 F7 69 D0 B6 00 00 3D [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 03 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [06:52:41]RAPDU: 90 00 [06:52:41]wFMCommunicate OK [06:52:41]wFMCommunicate request_size=4 [06:52:41]MH_SAM_APDU [06:52:41]CAPDU: 80 0D 03 02 [06:52:41]Write to MH i2c: E2 08 00 A8 05 80 0D 03 02 00 00 00 00 28 [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 0B 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 0B 00 A8 05 00 01 C4 3B 3B 57 A4 37 91 90 00 27 [06:52:41]RAPDU: 01 C4 3B 3B 57 A4 37 91 90 00 [06:52:41]wFMCommunicate OK [06:52:41]SAM_PROTO_SignData done [06:52:41]FM_MakeSignedData done [06:52:41]CreateOFDProtocolMessage [06:52:41]wFMCommunicate request_size=4 [06:52:41]MH_SAM_APDU [06:52:41]CAPDU: 80 11 00 00 [06:52:41]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 17 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7D [06:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [06:52:41]wFMCommunicate OK [06:52:41]CreateOFDProtocolMessage done [06:52:41]OFDSenderStorePacket 34184 [06:52:41]StoreOFDPacket docnum=34184 [06:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 48 01 00 00 44 C6 40 01 04 43 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 37 36 06 04 42 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 46 45 4C 49 58 20 D0 B3 D0 B8 D0 B4 D1 80 D0 BE D1 83 D1 81 D0 B8 D0 BB D0 B8 D1 82 D0 B5 D0 BB D1 8F 20 D1 80 D1 83 D0 BB D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 71 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BA 2E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 85 00 00 35 04 06 00 8C 37 F7 69 D0 B6 01 C4 3B 3B 57 A4 37 91 [06:52:41]CheckFolder [06:52:41]dirname=/storage/ofd_packets [06:52:41]CheckFolder done [06:52:41]ProducePacketName [06:52:41]name=ofd_packets/00034184 [06:52:41]NVStorageSaveData ofd_packets/00034184 [06:52:41]File name is /storage/ofd_packets/00034184 [06:52:41]Write 358 bytes [06:52:41]NVStorageSaveData done [06:52:41]OFDSenderStorePacket done [06:52:41]KKMCreateOFDPacket done [06:52:41]NVStorageSaveData kkm_last_timestamp [06:52:41]File name is /storage/kkm_last_timestamp [06:52:41]Write 4 bytes [06:52:41]NVStorageSaveData done [06:52:41]OFD Sender: Processing packet 34184 [packets to send 8, broken 7] [06:52:41]ProducePacketName [06:52:41]name=ofd_packets/00034184 [06:52:41]OFD Sender: To server: pG, [06:52:41]CommunicateWithHost lk.salyk.kg:30040 [06:52:41]ConnectInit lk.salyk.kg [06:52:41]ExternCall_PrintAddStr [06:52:41]wPrintStart [06:52:41]Write to MH i2c: 01 00 00 AA 05 AF [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: 01 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: 01 07 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: 01 07 00 AA 05 00 00 00 00 00 FF 0F C4 [06:52:41]RasterBufferAndPrint [06:52:41]line Счет N : (3)183986 [06:52:41]line ИНН: 02508201610067 [06:52:41]line Контрольно-Кассовый Чек [06:52:41]line ПРОДАЖА [06:52:41]line Товар: 4606532012076 [06:52:41]line Жидкость FELIX гидроусилителя руля 0,5л [06:52:41]line 1.000 * 290.00 [06:52:41]line = 290.00 [06:52:41]line НДС 12% НСП 1% [06:52:41]line > о реализуемом товаре [06:52:41]line ИТОГО: 290.00 [06:52:41]line НСП 1% : 2.57 [06:52:41]line НДС 12% : 30.80 [06:52:41]line Наличными: 290.00 [06:52:41]line Безнал.: 0.00 [06:52:41]line Место: АЗС № 120 "Партнер Нефть" [06:52:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:52:41]line СНО: Общий режим [06:52:41]line Чек 6 18.06.2024 06:52 [06:52:41]line Смена: 323 ФФД: 1.0 [06:52:41]line ЗНМ: 0300000172 [06:52:41]line РНМ: 0000000000092786 [06:52:41]line Версия ККМ: 001 [06:52:41]line ФМ: 0000000000875095 [06:52:41]line ФД: 34184 [06:52:41]line ФПД: 154172001996982 [06:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T065242&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34184&fm=154172001996982&tin=02508201610067®Number=0000000000092786&sum=29000 [06:52:41]line 0 [06:52:41]Connected sock=11 [06:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 48 01 00 00 44 C6 40 01 04 43 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 37 36 06 04 42 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 46 45 4C 49 58 20 D0 B3 D0 B8 D0 B4 D1 80 D0 BE D1 83 D1 81 D0 B8 D0 BB D0 B8 D1 82 D0 B5 D0 BB D1 8F 20 D1 80 D1 83 D0 BB D1 8F 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 48 71 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BA 2E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 88 85 00 00 35 04 06 00 8C 37 F7 69 D0 B6 01 C4 3B 3B 57 A4 37 91 [06:52:41]written 0, free lines is 4095 [06:52:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 1B 6A 47 00 C9 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 35 30 39 35 10 04 04 00 88 85 00 00 F4 03 04 00 8A D5 70 66 B6 04 01 00 00 D4 34 94 D2 54 ED 1E 96 [06:52:41]CommunicateWithHost err = 0 [06:52:41]CheckOFDResponse [06:52:41]1017 (14) - 77093643461234 [06:52:41]1041 (16) - 0000000000875095 [06:52:41]1040 (4) - 34184 [06:52:41]1012 (4) - 18.06.2024 00:32 [06:52:41]1206 (1) - 0 [06:52:41]OFD Sender: Remove packet 34184 [06:52:41]ProducePacketName [06:52:41]name=ofd_packets/00034184 [06:52:41]NVStorageDeleteData [06:52:42]Write to MH i2c: 01 00 00 D3 05 D8 [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: 01 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: 01 07 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 CB 0C B6 [06:52:42]RasterBufferAndPrint [06:52:42]line [06:52:42]line [06:52:42]line [06:52:42]line [06:52:42]line [06:52:42]written 0, free lines is 3280 [06:52:42]MH_Cut [06:52:42]Write to MH i2c: D1 01 00 DA 05 01 B1 [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: D1 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: D1 01 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: D1 01 00 DA 05 00 B0 [06:52:42]Write to MH i2c: 01 00 00 DB 05 E0 [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]OFD Sender: No OFD packet to send [06:52:42]*** Cut start [06:52:42]*** Partial cut [06:52:42]*** CUTSNS_PIN = 1 [06:52:43]*** CUTSNS_PIN = 0 [06:52:43]*** Brake cut motor [06:52:43]Read from MH i2c: 01 [06:52:43]MH_I2C_Read... [06:52:43]*** Stop cut motor [06:52:43]*** Cut end [06:52:43]Read from MH i2c: 01 07 00 [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [06:52:43]process_action close_receipt done [06:52:43]requested_data is exist [06:52:43]produce_requested_data [06:52:43]requested_item fm.sn is exist - process it [06:52:43]wFMCommunicate request_size=4 [06:52:43]MH_SAM_APDU [06:52:43]CAPDU: 80 11 00 00 [06:52:43]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [06:52:43]Write i2c OK [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: E2 [06:52:43]MH_I2C_Read... [06:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:43]Read from MH i2c: E2 17 00 [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B0 [06:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [06:52:43]wFMCommunicate OK [06:52:43]requested_item fd.num is exist - process it [06:52:43]SAM_PROTO_GetFieldsCounters [06:52:43]wFMCommunicate request_size=4 [06:52:43]MH_SAM_APDU [06:52:43]CAPDU: 80 13 00 00 [06:52:43]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [06:52:43]Write i2c OK [06:52:43]MH_I2C_Read... [06:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:43]Read from MH i2c: E2 [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: E2 62 00 [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 88 85 00 00 0E 04 04 00 43 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 EB [06:52:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 88 85 00 00 0E 04 04 00 43 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 [06:52:43]wFMCommunicate OK [06:52:43]SAM_PROTO_GetFieldsCounters done [06:52:43]requested_item shift.num is exist - process it [06:52:43]requested_item shift.opened is exist - process it [06:52:43]req_shift_opened [06:52:43]FM_GetShiftState [06:52:43]SAM_PROTO_GetShiftState [06:52:43]wFMCommunicate request_size=4 [06:52:43]MH_SAM_APDU [06:52:43]CAPDU: 80 13 01 00 [06:52:43]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [06:52:43]Write i2c OK [06:52:43]MH_I2C_Read... [06:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:43]Read from MH i2c: E2 [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: E2 0E 00 [06:52:43]MH_I2C_Read... [06:52:43]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AB [06:52:43]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [06:52:43]wFMCommunicate OK [06:52:43]SAM_PROTO_GetShiftState done [06:52:43]FM_GetShiftState done [06:52:43]req_shift_opened done [06:52:43]requested_item shift.open_date is exist - process it [06:52:43]req_shift_open_date [06:52:43]req_shift_open_date done [06:52:43]produce_requested_data done [06:52:43]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34184,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [06:52:43]process_action_free close_receipt [06:52:43]json_value_free [06:52:43]json_value_free done [06:52:43]process_json_proto returns [06:52:43]Send response to host [06:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34184,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [06:52:43]free response buf [06:52:43]execute_script done [06:52:43]execute_script returns [06:52:43]free content buf [06:52:43]Sock 7.Close socket [06:52:43]Sock 7.Thread stoped [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:47]accept exits with 9 [07:11:47]New connection [07:11:47]New thread 3067436388 created [07:11:47]Thread 3067293028 joined [07:11:47]Waiting for new connection... [07:11:47] Sock 9.Parse request [07:11:47]Sock 9.Check first char [07:11:47]Sock 9.First char is OK [07:11:47]request: POST /json_proto HTTP/1.0 [07:11:47]Method: POST [07:11:47]URL: /json_proto [07:11:47]Method is POST - this is cgi request [07:11:47]url: /json_proto [07:11:47]query_string will be loaded in cgi processing [07:11:47]execute_cgi json_proto POST (null) [07:11:47]execute_cgi path=json_proto method=POST [07:11:47]POST find Content-Length [07:11:47]Host: 172.17.38.134:8080 [07:11:47]Content-Length: 620 [07:11:47]Content-Type: application/json [07:11:47] [07:11:47]POST finish read [07:11:47]Found Content-Length = 620 [07:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183987", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:47]execute_script... [07:11:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183987", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:47]POST & json_proto [07:11:47]process_json_proto [07:11:47]json parsed OK: [07:11:47]protocol is kg_v1.0 [07:11:47]action value=close_receipt [07:11:47]process_action close_receipt [07:11:47]cmd_close_receipt [07:11:47]MH_GetDate [07:11:47]Write to MH i2c: F0 00 00 DF 05 D3 [07:11:47]Write i2c OK [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: F0 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: F0 09 00 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: F0 09 00 DF 05 00 36 33 71 66 13 9C 7C 64 AB [07:11:47]GetLastDocTimeStamp 1718693562 [07:11:47]current date 1718694710 [07:11:47]FM_GetShiftState [07:11:47]SAM_PROTO_GetShiftState [07:11:47]wFMCommunicate request_size=4 [07:11:47]MH_SAM_APDU [07:11:47]CAPDU: 80 13 01 00 [07:11:47]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [07:11:47]Write i2c OK [07:11:47]MH_I2C_Read... [07:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:47]Read from MH i2c: E2 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: E2 0E 00 [07:11:47]MH_I2C_Read... [07:11:47]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AD [07:11:47]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [07:11:47]wFMCommunicate OK [07:11:47]SAM_PROTO_GetShiftState done [07:11:47]FM_GetShiftState done [07:11:47]opened in 1718670230 [07:11:47]opened+sec_in_day 1718756630 [07:11:47]quantity*price = 13500 [07:11:47]sum+1 = 13501 [07:11:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 7 18.06.2024 07:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34185 ФПД: 17339019604043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T071150&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34185&fm=17339019604043&tin=02508201610067®Number=0000000000092786&sum=13500 0 [07:11:48]StoreToDocumentArchive [07:11:48]shift 323 fd 34185 [07:11:48]save to /storage/0323/doc_00034185 [07:11:48]save last doc name /storage/0323/doc_00034185 to /storage/kkm_last_doc_name [07:11:48]save OK [07:11:48]Clear old archive folders... [07:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:11:48]tlvbuf is 019D94F0 [07:11:48]SAM_PROTO_ClearQueue [07:11:48]wFMCommunicate request_size=4 [07:11:48]MH_SAM_APDU [07:11:48]CAPDU: 80 09 00 00 [07:11:48]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [07:11:48]Write i2c OK [07:11:48]MH_I2C_Read... [07:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:48]Read from MH i2c: E2 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 03 00 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [07:11:48]RAPDU: 90 00 [07:11:48]wFMCommunicate OK [07:11:48]SAM_PROTO_ClearQueue done [07:11:48]KKMCreateOFDPacket [07:11:48]OFDProtocolAddRootSTLVToBuf [07:11:48]FM_MakeSignedData [07:11:48]FM_MakeSignedData [07:11:48]SAM_PROTO_SignData [07:11:48]wFMCommunicate request_size=4 [07:11:48]MH_SAM_APDU [07:11:48]CAPDU: 80 0D 01 02 [07:11:48]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [07:11:48]Write i2c OK [07:11:48]MH_I2C_Read... [07:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:48]Read from MH i2c: E2 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 03 00 [07:11:48]MH_I2C_Read... [07:11:48]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [07:11:48]RAPDU: 90 00 [07:11:48]wFMCommunicate OK [07:11:48]wFMCommunicate request_size=255 [07:11:48]MH_SAM_APDU [07:11:48]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 36 33 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 [07:11:48]Write to MH i2c: E2 02 01 EF 05 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 36 33 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B9 [07:11:48]Write i2c OK [07:11:48]MH_I2C_Read... [07:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:49]Read from MH i2c: E2 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 03 00 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [07:11:49]RAPDU: 90 00 [07:11:49]wFMCommunicate OK [07:11:49]wFMCommunicate request_size=31 [07:11:49]MH_SAM_APDU [07:11:49]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 39 35 10 04 04 00 89 85 00 00 35 04 06 00 0F C5 0E 1A B0 4B [07:11:49]Write to MH i2c: E2 22 00 F0 05 80 0D 02 02 1A 00 30 30 38 37 35 30 39 35 10 04 04 00 89 85 00 00 35 04 06 00 0F C5 0E 1A B0 4B 00 00 A1 [07:11:49]Write i2c OK [07:11:49]MH_I2C_Read... [07:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:49]Read from MH i2c: E2 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 03 00 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [07:11:49]RAPDU: 90 00 [07:11:49]wFMCommunicate OK [07:11:49]wFMCommunicate request_size=4 [07:11:49]MH_SAM_APDU [07:11:49]CAPDU: 80 0D 03 02 [07:11:49]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [07:11:49]Write i2c OK [07:11:49]MH_I2C_Read... [07:11:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:49]Read from MH i2c: E2 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 0B 00 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 0B 00 F1 05 00 C2 BD 9E D5 01 95 7A 37 90 00 AB [07:11:49]RAPDU: C2 BD 9E D5 01 95 7A 37 90 00 [07:11:49]wFMCommunicate OK [07:11:49]SAM_PROTO_SignData done [07:11:49]FM_MakeSignedData done [07:11:49]CreateOFDProtocolMessage [07:11:49]wFMCommunicate request_size=4 [07:11:49]MH_SAM_APDU [07:11:49]CAPDU: 80 11 00 00 [07:11:49]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [07:11:49]Write i2c OK [07:11:49]MH_I2C_Read... [07:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:49]Read from MH i2c: E2 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 17 00 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C6 [07:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [07:11:49]wFMCommunicate OK [07:11:49]CreateOFDProtocolMessage done [07:11:49]OFDSenderStorePacket 34185 [07:11:49]StoreOFDPacket docnum=34185 [07:11:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 E1 48 1C 01 FF AB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 36 33 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 85 00 00 35 04 06 00 0F C5 0E 1A B0 4B C2 BD 9E D5 01 95 7A 37 [07:11:49]CheckFolder [07:11:49]dirname=/storage/ofd_packets [07:11:49]CheckFolder done [07:11:49]ProducePacketName [07:11:49]name=ofd_packets/00034185 [07:11:49]NVStorageSaveData ofd_packets/00034185 [07:11:49]File name is /storage/ofd_packets/00034185 [07:11:49]Write 322 bytes [07:11:49]NVStorageSaveData done [07:11:49]OFDSenderStorePacket done [07:11:49]KKMCreateOFDPacket done [07:11:49]NVStorageSaveData kkm_last_timestamp [07:11:49]File name is /storage/kkm_last_timestamp [07:11:49]Write 4 bytes [07:11:49]NVStorageSaveData done [07:11:49]ExternCall_PrintAddStr [07:11:49]wPrintStart [07:11:49]Write to MH i2c: 01 00 00 F3 05 F8 [07:11:49]Write i2c OK [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: 01 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: 01 07 00 [07:11:49]MH_I2C_Read... [07:11:49]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [07:11:49]RasterBufferAndPrint [07:11:49]line Счет N : (3)183987 [07:11:49]line ИНН: 02508201610067 [07:11:49]line Контрольно-Кассовый Чек [07:11:49]line ПРОДАЖА [07:11:49]line Товар: 48745000 [07:11:49]line Сигареты Winston Purple Mix [07:11:49]line 1.000 * 135.00 [07:11:49]line = 135.00 [07:11:49]line НДС 12% НСП 1% [07:11:49]line > о реализуемом товаре [07:11:49]line ИТОГО: 135.00 [07:11:49]line НСП 1% : 1.19 [07:11:49]line НДС 12% : 14.34 [07:11:49]line Наличными: 135.00 [07:11:49]line Безнал.: 0.00 [07:11:49]line Место: АЗС № 120 "Партнер Нефть" [07:11:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:11:49]line СНО: Общий режим [07:11:49]line Чек 7 18.06.2024 07:11 [07:11:49]line Смена: 323 ФФД: 1.0 [07:11:49]line ЗНМ: 0300000172 [07:11:49]line РНМ: 0000000000092786 [07:11:49]line Версия ККМ: 001 [07:11:49]line ФМ: 0000000000875095 [07:11:49]line ФД: 34185 [07:11:49]line ФПД: 17339019604043 [07:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T071150&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34185&fm=17339019604043&tin=02508201610067®Number=0000000000092786&sum=13500 [07:11:49]line 0 [07:11:49]OFD Sender: Processing packet 34185 [packets to send 8, broken 7] [07:11:49]ProducePacketName [07:11:49]name=ofd_packets/00034185 [07:11:49]OFD Sender: To server: pG, [07:11:49]CommunicateWithHost lk.salyk.kg:30040 [07:11:49]ConnectInit lk.salyk.kg [07:11:49]written 0, free lines is 4095 [07:11:50]Write to MH i2c: 01 00 00 1B 06 21 [07:11:50]Write i2c OK [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: 01 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: 01 07 00 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 E0 0C 14 [07:11:50]RasterBufferAndPrint [07:11:50]line [07:11:50]line [07:11:50]line [07:11:50]line [07:11:50]line [07:11:50]written 0, free lines is 3300 [07:11:50]MH_Cut [07:11:50]Write to MH i2c: D1 01 00 22 06 01 FA [07:11:50]Write i2c OK [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: D1 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: D1 01 00 [07:11:50]MH_I2C_Read... [07:11:50]Read from MH i2c: D1 01 00 22 06 00 F9 [07:11:50]Write to MH i2c: 01 00 00 23 06 29 [07:11:50]Write i2c OK [07:11:50]MH_I2C_Read... [07:11:50]*** Cut start [07:11:50]*** Partial cut [07:11:50]*** CUTSNS_PIN = 1 [07:11:50]*** CUTSNS_PIN = 0 [07:11:51]*** Brake cut motor [07:11:51]Read from MH i2c: 01 [07:11:51]MH_I2C_Read... [07:11:51]*** Stop cut motor [07:11:51]*** Cut end [07:11:51]Read from MH i2c: 01 07 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [07:11:51]process_action close_receipt done [07:11:51]requested_data is exist [07:11:51]produce_requested_data [07:11:51]requested_item fm.sn is exist - process it [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 11 00 00 [07:11:51]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 17 00 [07:11:51]MH_I2C_Read... [07:11:51]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 35 30 39 35 90 00 F9 [07:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [07:11:51]wFMCommunicate OK [07:11:51]requested_item fd.num is exist - process it [07:11:51]SAM_PROTO_GetFieldsCounters [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 13 00 00 [07:11:51]Write to MH i2c: E2 08 00 25 06 80 13 00 00 00 00 00 00 A7 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 62 00 [07:11:51]MH_I2C_Read... [07:11:51]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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 89 85 00 00 0E 04 04 00 43 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 38 [07:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 89 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:11:51]wFMCommunicate OK [07:11:51]SAM_PROTO_GetFieldsCounters done [07:11:51]requested_item shift.num is exist - process it [07:11:51]requested_item shift.opened is exist - process it [07:11:51]req_shift_opened [07:11:51]FM_GetShiftState [07:11:51]SAM_PROTO_GetShiftState [07:11:51]wFMCommunicate request_size=4 [07:11:51]MH_SAM_APDU [07:11:51]CAPDU: 80 13 01 00 [07:11:51]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [07:11:51]Write i2c OK [07:11:51]MH_I2C_Read... [07:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:51]Read from MH i2c: E2 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 0E 00 [07:11:51]MH_I2C_Read... [07:11:51]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F4 [07:11:51]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [07:11:51]wFMCommunicate OK [07:11:51]SAM_PROTO_GetShiftState done [07:11:51]FM_GetShiftState done [07:11:51]req_shift_opened done [07:11:51]requested_item shift.open_date is exist - process it [07:11:51]req_shift_open_date [07:11:51]req_shift_open_date done [07:11:51]produce_requested_data done [07:11:51]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34185,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [07:11:51]process_action_free close_receipt [07:11:51]json_value_free [07:11:51]json_value_free done [07:11:51]process_json_proto returns [07:11:51]Send response to host [07:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34185,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [07:11:51]free response buf [07:11:51]execute_script done [07:11:51]execute_script returns [07:11:51]free content buf [07:11:51]Sock 9.Close socket [07:11:51]Sock 9.Thread stoped [07:14:03]ConnectInit Can't connect to host [07:14:03]CommunicateWithHost connect error [07:14:03]CommunicateWithHost err = -1 [07:14:03]OFD Sender: Server communicate error [07:14:08]OFD Sender: Processing packet 34185 [packets to send 8, broken 7] [07:14:08]ProducePacketName [07:14:08]name=ofd_packets/00034185 [07:14:08]OFD Sender: To server: pG, [07:14:08]CommunicateWithHost lk.salyk.kg:30040 [07:14:08]ConnectInit lk.salyk.kg [07:14:08]Connected sock=9 [07:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 E1 48 1C 01 FF AB 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 36 33 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 85 00 00 35 04 06 00 0F C5 0E 1A B0 4B C2 BD 9E D5 01 95 7A 37 [07:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 38 E3 47 00 86 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 89 85 00 00 F4 03 04 00 91 DA 70 66 B6 04 01 00 00 0B 57 F4 11 E7 F2 C4 34 [07:14:08]CommunicateWithHost err = 0 [07:14:08]CheckOFDResponse [07:14:08]1017 (14) - 77093643461234 [07:14:08]1041 (16) - 0000000000875095 [07:14:08]1040 (4) - 34185 [07:14:08]1012 (4) - 18.06.2024 00:53 [07:14:08]1206 (1) - 0 [07:14:08]OFD Sender: Remove packet 34185 [07:14:08]ProducePacketName [07:14:08]name=ofd_packets/00034185 [07:14:08]NVStorageDeleteData [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]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:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:49]accept exits with 7 [07:58:49]New connection [07:58:49]New thread 3067293028 created [07:58:49]Thread 3067436388 joined [07:58:49]Waiting for new connection... [07:58:49] Sock 7.Parse request [07:58:49]Sock 7.Check first char [07:58:49]Sock 7.First char is OK [07:58:49]request: POST /json_proto HTTP/1.0 [07:58:49]Method: POST [07:58:49]URL: /json_proto [07:58:49]Method is POST - this is cgi request [07:58:49]url: /json_proto [07:58:49]query_string will be loaded in cgi processing [07:58:49]execute_cgi json_proto POST (null) [07:58:49]execute_cgi path=json_proto method=POST [07:58:49]POST find Content-Length [07:58:49]Host: 172.17.38.134:8080 [07:58:49]Content-Length: 621 [07:58:49]Content-Type: application/json [07:58:49] [07:58:49]POST finish read [07:58:49]Found Content-Length = 621 [07:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183988", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 8.000, "sum" : 1120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:49]execute_script... [07:58: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 : (3)183988", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 8.000, "sum" : 1120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:49]POST & json_proto [07:58:49]process_json_proto [07:58:49]json parsed OK: [07:58:49]protocol is kg_v1.0 [07:58:49]action value=close_receipt [07:58:49]process_action close_receipt [07:58:49]cmd_close_receipt [07:58:49]MH_GetDate [07:58:49]Write to MH i2c: F0 00 00 27 06 1C [07:58:49]Write i2c OK [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: F0 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: F0 09 00 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: F0 09 00 27 06 00 3C 3E 71 66 13 9C 7C 64 05 [07:58:49]GetLastDocTimeStamp 1718694710 [07:58:49]current date 1718697532 [07:58:49]FM_GetShiftState [07:58:49]SAM_PROTO_GetShiftState [07:58:49]wFMCommunicate request_size=4 [07:58:49]MH_SAM_APDU [07:58:49]CAPDU: 80 13 01 00 [07:58:49]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [07:58:49]Write i2c OK [07:58:49]MH_I2C_Read... [07:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:49]Read from MH i2c: E2 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 0E 00 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F6 [07:58:49]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [07:58:49]wFMCommunicate OK [07:58:49]SAM_PROTO_GetShiftState done [07:58:49]FM_GetShiftState done [07:58:49]opened in 1718670230 [07:58:49]opened+sec_in_day 1718756630 [07:58:49]quantity*price = 112000 [07:58:49]sum+1 = 112001 [07:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1120.00 НСП 1% : 9.91 НДС 12% : 118.94 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 18.06.2024 07:58 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34186 ФПД: 160849488531887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T075852&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34186&fm=160849488531887&tin=02508201610067®Number=0000000000092786&sum=112000 0 [07:58:50]StoreToDocumentArchive [07:58:50]shift 323 fd 34186 [07:58:50]save to /storage/0323/doc_00034186 [07:58:50]save last doc name /storage/0323/doc_00034186 to /storage/kkm_last_doc_name [07:58:50]save OK [07:58:50]Clear old archive folders... [07:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:58:50]tlvbuf is 01A0C800 [07:58:50]SAM_PROTO_ClearQueue [07:58:50]wFMCommunicate request_size=4 [07:58:50]MH_SAM_APDU [07:58:50]CAPDU: 80 09 00 00 [07:58:50]Write to MH i2c: E2 08 00 35 06 80 09 00 00 00 00 00 00 AD [07:58:50]Write i2c OK [07:58:50]MH_I2C_Read... [07:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:50]Read from MH i2c: E2 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: E2 03 00 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [07:58:50]RAPDU: 90 00 [07:58:50]wFMCommunicate OK [07:58:50]SAM_PROTO_ClearQueue done [07:58:50]KKMCreateOFDPacket [07:58:50]OFDProtocolAddRootSTLVToBuf [07:58:50]FM_MakeSignedData [07:58:50]FM_MakeSignedData [07:58:50]SAM_PROTO_SignData [07:58:50]wFMCommunicate request_size=4 [07:58:50]MH_SAM_APDU [07:58:50]CAPDU: 80 0D 01 02 [07:58:50]Write to MH i2c: E2 08 00 36 06 80 0D 01 02 00 00 00 00 B5 [07:58:50]Write i2c OK [07:58:50]MH_I2C_Read... [07:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:50]Read from MH i2c: E2 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: E2 03 00 [07:58:50]MH_I2C_Read... [07:58:50]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [07:58:50]RAPDU: 90 00 [07:58:50]wFMCommunicate OK [07:58:50]wFMCommunicate request_size=255 [07:58:50]MH_SAM_APDU [07:58:50]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3C 3E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:58:50]Write to MH i2c: E2 02 01 37 06 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3C 3E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 77 [07:58:50]Write i2c OK [07:58:50]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [07:58:51]RAPDU: 90 00 [07:58:51]wFMCommunicate OK [07:58:51]wFMCommunicate request_size=30 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 0D 02 02 19 30 38 37 35 30 39 35 10 04 04 00 8A 85 00 00 35 04 06 00 92 4A B0 A0 51 AF [07:58:51]Write to MH i2c: E2 21 00 38 06 80 0D 02 02 19 00 30 38 37 35 30 39 35 10 04 04 00 8A 85 00 00 35 04 06 00 92 4A B0 A0 51 AF 00 00 EE [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [07:58:51]RAPDU: 90 00 [07:58:51]wFMCommunicate OK [07:58:51]wFMCommunicate request_size=4 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 0D 03 02 [07:58:51]Write to MH i2c: E2 08 00 39 06 80 0D 03 02 00 00 00 00 BA [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 0B 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 0B 00 39 06 00 D2 E0 D0 32 D2 F0 69 EE 90 00 88 [07:58:51]RAPDU: D2 E0 D0 32 D2 F0 69 EE 90 00 [07:58:51]wFMCommunicate OK [07:58:51]SAM_PROTO_SignData done [07:58:51]FM_MakeSignedData done [07:58:51]CreateOFDProtocolMessage [07:58:51]wFMCommunicate request_size=4 [07:58:51]MH_SAM_APDU [07:58:51]CAPDU: 80 11 00 00 [07:58:51]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [07:58:51]OFD Sender: No OFD packet to send [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:51]Read from MH i2c: E2 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: E2 17 00 [07:58:51]MH_I2C_Read... [07:58:51]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 35 30 39 35 90 00 0F [07:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [07:58:51]wFMCommunicate OK [07:58:51]CreateOFDProtocolMessage done [07:58:51]OFDSenderStorePacket 34186 [07:58:51]StoreOFDPacket docnum=34186 [07:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 23 01 00 00 D6 72 1B 01 9B EE 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3C 3E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 85 00 00 35 04 06 00 92 4A B0 A0 51 AF D2 E0 D0 32 D2 F0 69 EE [07:58:51]CheckFolder [07:58:51]dirname=/storage/ofd_packets [07:58:51]CheckFolder done [07:58:51]ProducePacketName [07:58:51]name=ofd_packets/00034186 [07:58:51]NVStorageSaveData ofd_packets/00034186 [07:58:51]File name is /storage/ofd_packets/00034186 [07:58:51]Write 321 bytes [07:58:51]NVStorageSaveData done [07:58:51]OFDSenderStorePacket done [07:58:51]KKMCreateOFDPacket done [07:58:51]NVStorageSaveData kkm_last_timestamp [07:58:51]File name is /storage/kkm_last_timestamp [07:58:51]Write 4 bytes [07:58:51]NVStorageSaveData done [07:58:51]ExternCall_PrintAddStr [07:58:51]wPrintStart [07:58:51]Write to MH i2c: 01 00 00 3B 06 41 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: 01 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: 01 07 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [07:58:51]RasterBufferAndPrint [07:58:51]line Счет N : (3)183988 [07:58:51]line ИНН: 02508201610067 [07:58:51]line Контрольно-Кассовый Чек [07:58:51]line ПРОДАЖА [07:58:51]line Товар: 47802995 [07:58:51]line Сигареты Winston XS Silver [07:58:51]line 8.000 * 140.00 [07:58:51]line = 1120.00 [07:58:51]line НДС 12% НСП 1% [07:58:51]line > о реализуемом товаре [07:58:51]line ИТОГО: 1120.00 [07:58:51]line НСП 1% : 9.91 [07:58:51]line НДС 12% : 118.94 [07:58:51]line Наличными: 1120.00 [07:58:51]line Безнал.: 0.00 [07:58:51]line Место: АЗС № 120 "Партнер Нефть" [07:58:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:58:51]line СНО: Общий режим [07:58:51]line Чек 8 18.06.2024 07:58 [07:58:51]line Смена: 323 ФФД: 1.0 [07:58:51]line ЗНМ: 0300000172 [07:58:51]line РНМ: 0000000000092786 [07:58:51]line Версия ККМ: 001 [07:58:51]line ФМ: 0000000000875095 [07:58:51]line ФД: 34186 [07:58:51]line ФПД: 160849488531887 [07:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T075852&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34186&fm=160849488531887&tin=02508201610067®Number=0000000000092786&sum=112000 [07:58:51]line 0 [07:58:51]OFD Sender: Processing packet 34186 [packets to send 8, broken 7] [07:58:51]ProducePacketName [07:58:51]name=ofd_packets/00034186 [07:58:51]OFD Sender: To server: pG, [07:58:51]CommunicateWithHost lk.salyk.kg:30040 [07:58:51]ConnectInit lk.salyk.kg [07:58:51]written 0, free lines is 4095 [07:58:51]Connected sock=10 [07:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 23 01 00 00 D6 72 1B 01 9B EE 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3C 3E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 85 00 00 35 04 06 00 92 4A B0 A0 51 AF D2 E0 D0 32 D2 F0 69 EE [07:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 40 B5 47 00 8E 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8A 85 00 00 F4 03 04 00 0C E5 70 66 B6 04 01 00 00 D6 8B DA F3 08 07 A9 8C [07:58:51]CommunicateWithHost err = 0 [07:58:51]CheckOFDResponse [07:58:51]1017 (14) - 77093643461234 [07:58:51]1041 (16) - 0000000000875095 [07:58:51]1040 (4) - 34186 [07:58:51]1012 (4) - 18.06.2024 01:38 [07:58:51]1206 (1) - 0 [07:58:51]OFD Sender: Remove packet 34186 [07:58:51]ProducePacketName [07:58:51]name=ofd_packets/00034186 [07:58:51]NVStorageDeleteData [07:58:51]Write to MH i2c: 01 00 00 63 06 69 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: 01 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: 01 07 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FB 0C 77 [07:58:51]RasterBufferAndPrint [07:58:51]line [07:58:51]line [07:58:51]line [07:58:51]line [07:58:51]line [07:58:51]written 0, free lines is 3330 [07:58:51]MH_Cut [07:58:51]Write to MH i2c: D1 01 00 6A 06 01 42 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: D1 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: D1 01 00 [07:58:51]MH_I2C_Read... [07:58:51]Read from MH i2c: D1 01 00 6A 06 00 41 [07:58:51]Write to MH i2c: 01 00 00 6B 06 71 [07:58:51]Write i2c OK [07:58:51]MH_I2C_Read... [07:58:52]OFD Sender: No OFD packet to send [07:58:52]*** Cut start [07:58:52]*** Partial cut [07:58:52]*** CUTSNS_PIN = 1 [07:58:52]*** CUTSNS_PIN = 0 [07:58:52]*** Brake cut motor [07:58:53]Read from MH i2c: 01 [07:58:53]MH_I2C_Read... [07:58:53]*** Stop cut motor [07:58:53]*** Cut end [07:58:53]Read from MH i2c: 01 07 00 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [07:58:53]process_action close_receipt done [07:58:53]requested_data is exist [07:58:53]produce_requested_data [07:58:53]requested_item fm.sn is exist - process it [07:58:53]wFMCommunicate request_size=4 [07:58:53]MH_SAM_APDU [07:58:53]CAPDU: 80 11 00 00 [07:58:53]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [07:58:53]Write i2c OK [07:58:53]MH_I2C_Read... [07:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:53]Read from MH i2c: E2 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: E2 17 00 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 41 [07:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [07:58:53]wFMCommunicate OK [07:58:53]requested_item fd.num is exist - process it [07:58:53]SAM_PROTO_GetFieldsCounters [07:58:53]wFMCommunicate request_size=4 [07:58:53]MH_SAM_APDU [07:58:53]CAPDU: 80 13 00 00 [07:58:53]Write to MH i2c: E2 08 00 6D 06 80 13 00 00 00 00 00 00 EF [07:58:53]Write i2c OK [07:58:53]MH_I2C_Read... [07:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:53]Read from MH i2c: E2 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: E2 62 00 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: E2 62 00 6D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8A 85 00 00 0E 04 04 00 43 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 84 [07:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8A 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:53]wFMCommunicate OK [07:58:53]SAM_PROTO_GetFieldsCounters done [07:58:53]requested_item shift.num is exist - process it [07:58:53]requested_item shift.opened is exist - process it [07:58:53]req_shift_opened [07:58:53]FM_GetShiftState [07:58:53]SAM_PROTO_GetShiftState [07:58:53]wFMCommunicate request_size=4 [07:58:53]MH_SAM_APDU [07:58:53]CAPDU: 80 13 01 00 [07:58:53]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [07:58:53]Write i2c OK [07:58:53]MH_I2C_Read... [07:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:53]Read from MH i2c: E2 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: E2 0E 00 [07:58:53]MH_I2C_Read... [07:58:53]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3C [07:58:53]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [07:58:53]wFMCommunicate OK [07:58:53]SAM_PROTO_GetShiftState done [07:58:53]FM_GetShiftState done [07:58:53]req_shift_opened done [07:58:53]requested_item shift.open_date is exist - process it [07:58:53]req_shift_open_date [07:58:53]req_shift_open_date done [07:58:53]produce_requested_data done [07:58:53]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34186,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [07:58:53]process_action_free close_receipt [07:58:53]json_value_free [07:58:53]json_value_free done [07:58:53]process_json_proto returns [07:58:53]Send response to host [07:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34186,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [07:58:53]free response buf [07:58:53]execute_script done [07:58:53]execute_script returns [07:58:53]free content buf [07:58:53]Sock 7.Close socket [07:58:53]Sock 7.Thread stoped [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:01]accept exits with 9 [08:12:01]New connection [08:12:01]New thread 3067436388 created [08:12:01]Thread 3067293028 joined [08:12:01]Waiting for new connection... [08:12:01] Sock 9.Parse request [08:12:01]Sock 9.Check first char [08:12:01]Sock 9.First char is OK [08:12:01]request: POST /json_proto HTTP/1.0 [08:12:01]Method: POST [08:12:01]URL: /json_proto [08:12:01]Method is POST - this is cgi request [08:12:01]url: /json_proto [08:12:01]query_string will be loaded in cgi processing [08:12:01]execute_cgi json_proto POST (null) [08:12:01]execute_cgi path=json_proto method=POST [08:12:01]POST find Content-Length [08:12:01]Host: 172.17.38.134:8080 [08:12:01]Content-Length: 626 [08:12:01]Content-Type: application/json [08:12:01] [08:12:01]POST finish read [08:12:01]Found Content-Length = 626 [08:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183989", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:01]execute_script... [08:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183989", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:01]POST & json_proto [08:12:01]process_json_proto [08:12:01]json parsed OK: [08:12:01]protocol is kg_v1.0 [08:12:01]action value=close_receipt [08:12:01]process_action close_receipt [08:12:01]cmd_close_receipt [08:12:01]MH_GetDate [08:12:01]Write to MH i2c: F0 00 00 6F 06 64 [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: F0 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: F0 09 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: F0 09 00 6F 06 00 54 41 71 66 13 9C 7C 64 68 [08:12:01]GetLastDocTimeStamp 1718697532 [08:12:01]current date 1718698324 [08:12:01]FM_GetShiftState [08:12:01]SAM_PROTO_GetShiftState [08:12:01]wFMCommunicate request_size=4 [08:12:01]MH_SAM_APDU [08:12:01]CAPDU: 80 13 01 00 [08:12:01]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:01]Read from MH i2c: E2 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 0E 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3E [08:12:01]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:12:01]wFMCommunicate OK [08:12:01]SAM_PROTO_GetShiftState done [08:12:01]FM_GetShiftState done [08:12:01]opened in 1718670230 [08:12:01]opened+sec_in_day 1718756630 [08:12:01]quantity*price = 23000 [08:12:01]sum+1 = 23001 [08:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 18.06.2024 08:12 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34187 ФПД: 231267240392852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081204&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34187&fm=231267240392852&tin=02508201610067®Number=0000000000092786&sum=23000 0 [08:12:02]StoreToDocumentArchive [08:12:02]shift 323 fd 34187 [08:12:02]save to /storage/0323/doc_00034187 [08:12:02]save last doc name /storage/0323/doc_00034187 to /storage/kkm_last_doc_name [08:12:02]save OK [08:12:02]Clear old archive folders... [08:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:12:02]tlvbuf is 01A08E70 [08:12:02]SAM_PROTO_ClearQueue [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 09 00 00 [08:12:02]Write to MH i2c: E2 08 00 7D 06 80 09 00 00 00 00 00 00 F5 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [08:12:02]RAPDU: 90 00 [08:12:02]wFMCommunicate OK [08:12:02]SAM_PROTO_ClearQueue done [08:12:02]KKMCreateOFDPacket [08:12:02]OFDProtocolAddRootSTLVToBuf [08:12:02]FM_MakeSignedData [08:12:02]FM_MakeSignedData [08:12:02]SAM_PROTO_SignData [08:12:02]wFMCommunicate request_size=4 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 0D 01 02 [08:12:02]Write to MH i2c: E2 08 00 7E 06 80 0D 01 02 00 00 00 00 FD [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:02]Read from MH i2c: E2 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [08:12:02]RAPDU: 90 00 [08:12:02]wFMCommunicate OK [08:12:02]wFMCommunicate request_size=255 [08:12:02]MH_SAM_APDU [08:12:02]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 54 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [08:12:02]Write to MH i2c: E2 02 01 7F 06 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 54 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 BF [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:03]OFD Sender: No OFD packet to send [08:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 03 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [08:12:03]RAPDU: 90 00 [08:12:03]wFMCommunicate OK [08:12:03]wFMCommunicate request_size=33 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 85 00 00 35 04 06 00 D2 56 19 B6 38 94 [08:12:03]Write to MH i2c: E2 24 00 80 06 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 85 00 00 35 04 06 00 D2 56 19 B6 38 94 00 00 64 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 03 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [08:12:03]RAPDU: 90 00 [08:12:03]wFMCommunicate OK [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 0D 03 02 [08:12:03]Write to MH i2c: E2 08 00 81 06 80 0D 03 02 00 00 00 00 02 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 0B 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 0B 00 81 06 00 40 AD EC 39 46 5B 4E 4A 90 00 4E [08:12:03]RAPDU: 40 AD EC 39 46 5B 4E 4A 90 00 [08:12:03]wFMCommunicate OK [08:12:03]SAM_PROTO_SignData done [08:12:03]FM_MakeSignedData done [08:12:03]CreateOFDProtocolMessage [08:12:03]wFMCommunicate request_size=4 [08:12:03]MH_SAM_APDU [08:12:03]CAPDU: 80 11 00 00 [08:12:03]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:03]Read from MH i2c: E2 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 17 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 57 [08:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:12:03]wFMCommunicate OK [08:12:03]CreateOFDProtocolMessage done [08:12:03]OFDSenderStorePacket 34187 [08:12:03]StoreOFDPacket docnum=34187 [08:12:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 D0 47 1E 01 53 B9 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 54 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 85 00 00 35 04 06 00 D2 56 19 B6 38 94 40 AD EC 39 46 5B 4E 4A [08:12:03]CheckFolder [08:12:03]dirname=/storage/ofd_packets [08:12:03]CheckFolder done [08:12:03]ProducePacketName [08:12:03]name=ofd_packets/00034187 [08:12:03]NVStorageSaveData ofd_packets/00034187 [08:12:03]File name is /storage/ofd_packets/00034187 [08:12:03]Write 324 bytes [08:12:03]NVStorageSaveData done [08:12:03]OFDSenderStorePacket done [08:12:03]KKMCreateOFDPacket done [08:12:03]NVStorageSaveData kkm_last_timestamp [08:12:03]File name is /storage/kkm_last_timestamp [08:12:03]Write 4 bytes [08:12:03]NVStorageSaveData done [08:12:03]ExternCall_PrintAddStr [08:12:03]wPrintStart [08:12:03]Write to MH i2c: 01 00 00 83 06 89 [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 07 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [08:12:03]RasterBufferAndPrint [08:12:03]line Счет N : (3)183989 [08:12:03]line ИНН: 02508201610067 [08:12:03]line Контрольно-Кассовый Чек [08:12:03]line ПРОДАЖА [08:12:03]line Товар: 2000036240010 [08:12:03]line Кофе Латте (GABB TRADE) [08:12:03]line 2.000 * 115.00 [08:12:03]line = 230.00 [08:12:03]line НДС 12% НСП 1% [08:12:03]line > о реализуемом товаре [08:12:03]line ИТОГО: 230.00 [08:12:03]line НСП 1% : 2.03 [08:12:03]line НДС 12% : 24.42 [08:12:03]line Наличными: 230.00 [08:12:03]line Безнал.: 0.00 [08:12:03]line Место: АЗС № 120 "Партнер Нефть" [08:12:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:12:03]line СНО: Общий режим [08:12:03]line Чек 9 18.06.2024 08:12 [08:12:03]line Смена: 323 ФФД: 1.0 [08:12:03]line ЗНМ: 0300000172 [08:12:03]line РНМ: 0000000000092786 [08:12:03]line Версия ККМ: 001 [08:12:03]line ФМ: 0000000000875095 [08:12:03]line ФД: 34187 [08:12:03]line ФПД: 231267240392852 [08:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081204&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34187&fm=231267240392852&tin=02508201610067®Number=0000000000092786&sum=23000 [08:12:03]line 0 [08:12:03]OFD Sender: Processing packet 34187 [packets to send 8, broken 7] [08:12:03]ProducePacketName [08:12:03]name=ofd_packets/00034187 [08:12:03]OFD Sender: To server: pG, [08:12:03]CommunicateWithHost lk.salyk.kg:30040 [08:12:03]ConnectInit lk.salyk.kg [08:12:03]written 0, free lines is 4095 [08:12:03]Connected sock=10 [08:12:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 D0 47 1E 01 53 B9 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 54 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 85 00 00 35 04 06 00 D2 56 19 B6 38 94 40 AD EC 39 46 5B 4E 4A [08:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C2 4F 47 00 2A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8B 85 00 00 F4 03 04 00 24 E8 70 66 B6 04 01 00 00 57 42 AE B3 40 E9 0C A5 [08:12:03]CommunicateWithHost err = 0 [08:12:03]CheckOFDResponse [08:12:03]1017 (14) - 77093643461234 [08:12:03]1041 (16) - 0000000000875095 [08:12:03]1040 (4) - 34187 [08:12:03]1012 (4) - 18.06.2024 01:51 [08:12:03]1206 (1) - 0 [08:12:03]OFD Sender: Remove packet 34187 [08:12:04]ProducePacketName [08:12:04]name=ofd_packets/00034187 [08:12:04]NVStorageDeleteData [08:12:04]Write to MH i2c: 01 00 00 AB 06 B1 [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: 01 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: 01 07 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 05 0D CA [08:12:04]RasterBufferAndPrint [08:12:04]line [08:12:04]line [08:12:04]line [08:12:04]line [08:12:04]line [08:12:04]written 0, free lines is 3340 [08:12:04]MH_Cut [08:12:04]Write to MH i2c: D1 01 00 B2 06 01 8A [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: D1 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: D1 01 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: D1 01 00 B2 06 00 89 [08:12:04]Write to MH i2c: 01 00 00 B3 06 B9 [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:04]OFD Sender: No OFD packet to send [08:12:04]*** Cut start [08:12:04]*** Partial cut [08:12:04]*** CUTSNS_PIN = 1 [08:12:04]*** CUTSNS_PIN = 0 [08:12:05]*** Brake cut motor [08:12:05]Read from MH i2c: 01 [08:12:05]MH_I2C_Read... [08:12:05]*** Stop cut motor [08:12:05]*** Cut end [08:12:05]Read from MH i2c: 01 07 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [08:12:05]process_action close_receipt done [08:12:05]requested_data is exist [08:12:05]produce_requested_data [08:12:05]requested_item fm.sn is exist - process it [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 11 00 00 [08:12:05]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 89 [08:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:12:05]wFMCommunicate OK [08:12:05]requested_item fd.num is exist - process it [08:12:05]SAM_PROTO_GetFieldsCounters [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 00 00 [08:12:05]Write to MH i2c: E2 08 00 B5 06 80 13 00 00 00 00 00 00 37 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 62 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 62 00 B5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8B 85 00 00 0E 04 04 00 43 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 D0 [08:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8B 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetFieldsCounters done [08:12:05]requested_item shift.num is exist - process it [08:12:05]requested_item shift.opened is exist - process it [08:12:05]req_shift_opened [08:12:05]FM_GetShiftState [08:12:05]SAM_PROTO_GetShiftState [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 01 00 [08:12:05]Write to MH i2c: E2 08 00 B6 06 80 13 01 00 00 00 00 00 39 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0E 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0E 00 B6 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 84 [08:12:05]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetShiftState done [08:12:05]FM_GetShiftState done [08:12:05]req_shift_opened done [08:12:05]requested_item shift.open_date is exist - process it [08:12:05]req_shift_open_date [08:12:05]req_shift_open_date done [08:12:05]produce_requested_data done [08:12:05]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34187,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [08:12:05]process_action_free close_receipt [08:12:05]json_value_free [08:12:05]json_value_free done [08:12:05]process_json_proto returns [08:12:05]Send response to host [08:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34187,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [08:12:05]free response buf [08:12:05]execute_script done [08:12:05]execute_script returns [08:12:05]free content buf [08:12:05]Sock 9.Close socket [08:12:05]Sock 9.Thread stoped [08:12:09]OFD Sender: No OFD packet to send [08:12:11]accept exits with 7 [08:12:11]New connection [08:12:11]New thread 3067293028 created [08:12:11]Thread 3067436388 joined [08:12:11]Waiting for new connection... [08:12:11] Sock 7.Parse request [08:12:11]Sock 7.Check first char [08:12:11]Sock 7.First char is OK [08:12:11]request: POST /json_proto HTTP/1.0 [08:12:11]Method: POST [08:12:11]URL: /json_proto [08:12:11]Method is POST - this is cgi request [08:12:11]url: /json_proto [08:12:11]query_string will be loaded in cgi processing [08:12:11]execute_cgi json_proto POST (null) [08:12:11]execute_cgi path=json_proto method=POST [08:12:11]POST find Content-Length [08:12:11]Host: 172.17.38.134:8080 [08:12:11]Content-Length: 646 [08:12:11]Content-Type: application/json [08:12:11] [08:12:11]POST finish read [08:12:11]Found Content-Length = 646 [08:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183990", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:11]execute_script... [08:12: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 : (3)183990", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:11]POST & json_proto [08:12:11]process_json_proto [08:12:11]json parsed OK: [08:12:11]protocol is kg_v1.0 [08:12:11]action value=close_receipt [08:12:11]process_action close_receipt [08:12:11]cmd_close_receipt [08:12:11]MH_GetDate [08:12:11]Write to MH i2c: F0 00 00 B7 06 AC [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: F0 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: F0 09 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: F0 09 00 B7 06 00 5E 41 71 66 13 9C 7C 64 BA [08:12:11]GetLastDocTimeStamp 1718698324 [08:12:11]current date 1718698334 [08:12:11]FM_GetShiftState [08:12:11]SAM_PROTO_GetShiftState [08:12:11]wFMCommunicate request_size=4 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 13 01 00 [08:12:11]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 0E 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 86 [08:12:11]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:12:11]wFMCommunicate OK [08:12:11]SAM_PROTO_GetShiftState done [08:12:11]FM_GetShiftState done [08:12:11]opened in 1718670230 [08:12:11]opened+sec_in_day 1718756630 [08:12:11]quantity*price = 12500 [08:12:11]sum+1 = 12501 [08:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 18.06.2024 08:12 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34188 ФПД: 253619714635382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081214&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34188&fm=253619714635382&tin=02508201610067®Number=0000000000092786&sum=12500 0 [08:12:12]StoreToDocumentArchive [08:12:12]shift 323 fd 34188 [08:12:12]save to /storage/0323/doc_00034188 [08:12:12]save last doc name /storage/0323/doc_00034188 to /storage/kkm_last_doc_name [08:12:12]save OK [08:12:12]Clear old archive folders... [08:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:12:12]tlvbuf is 01A22340 [08:12:12]SAM_PROTO_ClearQueue [08:12:12]wFMCommunicate request_size=4 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 09 00 00 [08:12:12]Write to MH i2c: E2 08 00 C5 06 80 09 00 00 00 00 00 00 3D [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [08:12:12]RAPDU: 90 00 [08:12:12]wFMCommunicate OK [08:12:12]SAM_PROTO_ClearQueue done [08:12:12]KKMCreateOFDPacket [08:12:12]OFDProtocolAddRootSTLVToBuf [08:12:12]FM_MakeSignedData [08:12:12]FM_MakeSignedData [08:12:12]SAM_PROTO_SignData [08:12:12]wFMCommunicate request_size=4 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 0D 01 02 [08:12:12]Write to MH i2c: E2 08 00 C6 06 80 0D 01 02 00 00 00 00 45 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:12]Read from MH i2c: E2 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [08:12:12]RAPDU: 90 00 [08:12:12]wFMCommunicate OK [08:12:12]wFMCommunicate request_size=255 [08:12:12]MH_SAM_APDU [08:12:12]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5E 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [08:12:12]Write to MH i2c: E2 02 01 C7 06 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5E 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 0E [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 03 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [08:12:13]RAPDU: 90 00 [08:12:13]wFMCommunicate OK [08:12:13]wFMCommunicate request_size=41 [08:12:13]MH_SAM_APDU [08:12:13]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 85 00 00 35 04 06 00 E6 AA 70 FF B6 76 [08:12:13]Write to MH i2c: E2 2C 00 C8 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 85 00 00 35 04 06 00 E6 AA 70 FF B6 76 00 00 55 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 03 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [08:12:13]RAPDU: 90 00 [08:12:13]wFMCommunicate OK [08:12:13]wFMCommunicate request_size=4 [08:12:13]MH_SAM_APDU [08:12:13]CAPDU: 80 0D 03 02 [08:12:13]Write to MH i2c: E2 08 00 C9 06 80 0D 03 02 00 00 00 00 4A [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 0B 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 0B 00 C9 06 00 3E AA 7D D1 2C FD D6 AA 90 00 2A [08:12:13]RAPDU: 3E AA 7D D1 2C FD D6 AA 90 00 [08:12:13]wFMCommunicate OK [08:12:13]SAM_PROTO_SignData done [08:12:13]FM_MakeSignedData done [08:12:13]CreateOFDProtocolMessage [08:12:13]wFMCommunicate request_size=4 [08:12:13]MH_SAM_APDU [08:12:13]CAPDU: 80 11 00 00 [08:12:13]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 17 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9F [08:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:12:13]wFMCommunicate OK [08:12:13]CreateOFDProtocolMessage done [08:12:13]OFDSenderStorePacket 34188 [08:12:13]StoreOFDPacket docnum=34188 [08:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 30 D8 26 01 B2 58 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5E 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 85 00 00 35 04 06 00 E6 AA 70 FF B6 76 3E AA 7D D1 2C FD D6 AA [08:12:13]CheckFolder [08:12:13]dirname=/storage/ofd_packets [08:12:13]CheckFolder done [08:12:13]ProducePacketName [08:12:13]name=ofd_packets/00034188 [08:12:13]NVStorageSaveData ofd_packets/00034188 [08:12:13]File name is /storage/ofd_packets/00034188 [08:12:13]Write 332 bytes [08:12:13]NVStorageSaveData done [08:12:13]OFDSenderStorePacket done [08:12:13]KKMCreateOFDPacket done [08:12:13]NVStorageSaveData kkm_last_timestamp [08:12:13]File name is /storage/kkm_last_timestamp [08:12:13]Write 4 bytes [08:12:13]NVStorageSaveData done [08:12:13]ExternCall_PrintAddStr [08:12:13]wPrintStart [08:12:13]Write to MH i2c: 01 00 00 CB 06 D1 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [08:12:13]RasterBufferAndPrint [08:12:13]line Счет N : (3)183990 [08:12:13]line ИНН: 02508201610067 [08:12:13]line Контрольно-Кассовый Чек [08:12:13]line ПРОДАЖА [08:12:13]line Товар: 2000036220012 [08:12:13]line Кофе Капучино XL(GABB TRADE) [08:12:13]line 1.000 * 125.00 [08:12:13]line = 125.00 [08:12:13]line НДС 12% НСП 1% [08:12:13]line > о реализуемом товаре [08:12:13]line ИТОГО: 125.00 [08:12:13]line НСП 1% : 1.11 [08:12:13]line НДС 12% : 13.27 [08:12:13]line Наличными: 125.00 [08:12:13]line Безнал.: 0.00 [08:12:13]line Место: АЗС № 120 "Партнер Нефть" [08:12:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:12:13]line СНО: Общий режим [08:12:13]line Чек 10 18.06.2024 08:12 [08:12:13]line Смена: 323 ФФД: 1.0 [08:12:13]line ЗНМ: 0300000172 [08:12:13]line РНМ: 0000000000092786 [08:12:13]line Версия ККМ: 001 [08:12:13]line ФМ: 0000000000875095 [08:12:13]line ФД: 34188 [08:12:13]line ФПД: 253619714635382 [08:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081214&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34188&fm=253619714635382&tin=02508201610067®Number=0000000000092786&sum=12500 [08:12:13]line 0 [08:12:13]written 0, free lines is 4095 [08:12:13]OFD Sender: Processing packet 34188 [packets to send 8, broken 7] [08:12:13]ProducePacketName [08:12:13]name=ofd_packets/00034188 [08:12:13]OFD Sender: To server: pG, [08:12:13]CommunicateWithHost lk.salyk.kg:30040 [08:12:13]ConnectInit lk.salyk.kg [08:12:13]Connected sock=10 [08:12:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 30 D8 26 01 B2 58 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5E 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 85 00 00 35 04 06 00 E6 AA 70 FF B6 76 3E AA 7D D1 2C FD D6 AA [08:12:13]Write to MH i2c: 01 00 00 F4 06 FA [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 D9 0C E6 [08:12:13]RasterBufferAndPrint [08:12:13]line [08:12:13]line [08:12:13]line [08:12:13]line [08:12:13]line [08:12:13]written 0, free lines is 3301 [08:12:13]MH_Cut [08:12:13]Write to MH i2c: D1 01 00 FB 06 01 D3 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: D1 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: D1 01 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: D1 01 00 FB 06 00 D2 [08:12:13]Write to MH i2c: 01 00 00 FC 06 02 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DE 47 47 00 3B 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8C 85 00 00 F4 03 04 00 2E E8 70 66 B6 04 01 00 00 AE 4E CA 2D 00 39 66 7D [08:12:13]CommunicateWithHost err = 0 [08:12:13]CheckOFDResponse [08:12:13]1017 (14) - 77093643461234 [08:12:13]1041 (16) - 0000000000875095 [08:12:13]1040 (4) - 34188 [08:12:13]1012 (4) - 18.06.2024 01:51 [08:12:13]1206 (1) - 0 [08:12:13]OFD Sender: Remove packet 34188 [08:12:13]ProducePacketName [08:12:13]name=ofd_packets/00034188 [08:12:13]NVStorageDeleteData [08:12:14]OFD Sender: No OFD packet to send [08:12:14]*** Cut start [08:12:14]*** Partial cut [08:12:14]*** CUTSNS_PIN = 1 [08:12:14]*** CUTSNS_PIN = 0 [08:12:14]*** Brake cut motor [08:12:14]Read from MH i2c: 01 [08:12:14]MH_I2C_Read... [08:12:14]*** Stop cut motor [08:12:14]*** Cut end [08:12:14]Read from MH i2c: 01 07 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: 01 07 00 FC 06 00 00 00 00 00 FF 0F 17 [08:12:14]process_action close_receipt done [08:12:14]requested_data is exist [08:12:14]produce_requested_data [08:12:14]requested_item fm.sn is exist - process it [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 11 00 00 [08:12:14]Write to MH i2c: E2 08 00 FD 06 80 11 00 00 00 00 00 00 7D [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 17 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 17 00 FD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D2 [08:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:12:15]wFMCommunicate OK [08:12:15]requested_item fd.num is exist - process it [08:12:15]SAM_PROTO_GetFieldsCounters [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 13 00 00 [08:12:15]Write to MH i2c: E2 08 00 FE 06 80 13 00 00 00 00 00 00 80 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 62 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 62 00 FE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8C 85 00 00 0E 04 04 00 43 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 1D [08:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8C 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_GetFieldsCounters done [08:12:15]requested_item shift.num is exist - process it [08:12:15]requested_item shift.opened is exist - process it [08:12:15]req_shift_opened [08:12:15]FM_GetShiftState [08:12:15]SAM_PROTO_GetShiftState [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 13 01 00 [08:12:15]Write to MH i2c: E2 08 00 FF 06 80 13 01 00 00 00 00 00 82 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0E 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0E 00 FF 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CD [08:12:15]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_GetShiftState done [08:12:15]FM_GetShiftState done [08:12:15]req_shift_opened done [08:12:15]requested_item shift.open_date is exist - process it [08:12:15]req_shift_open_date [08:12:15]req_shift_open_date done [08:12:15]produce_requested_data done [08:12:15]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34188,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [08:12:15]process_action_free close_receipt [08:12:15]json_value_free [08:12:15]json_value_free done [08:12:15]process_json_proto returns [08:12:15]Send response to host [08:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34188,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [08:12:15]free response buf [08:12:15]execute_script done [08:12:15]execute_script returns [08:12:15]free content buf [08:12:15]Sock 7.Close socket [08:12:15]Sock 7.Thread stoped [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:44]accept exits with 9 [08:13:44]New connection [08:13:44]New thread 3067436388 created [08:13:44]Thread 3067293028 joined [08:13:44]Waiting for new connection... [08:13:44] Sock 9.Parse request [08:13:44]Sock 9.Check first char [08:13:44]Sock 9.First char is OK [08:13:44]request: POST /json_proto HTTP/1.0 [08:13:44]Method: POST [08:13:44]URL: /json_proto [08:13:44]Method is POST - this is cgi request [08:13:44]url: /json_proto [08:13:44]query_string will be loaded in cgi processing [08:13:44]execute_cgi json_proto POST (null) [08:13:44]execute_cgi path=json_proto method=POST [08:13:44]POST find Content-Length [08:13:44]Host: 172.17.38.134:8080 [08:13:44]Content-Length: 622 [08:13:44]Content-Type: application/json [08:13:44] [08:13:44]POST finish read [08:13:44]Found Content-Length = 622 [08:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183991", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:44]execute_script... [08:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183991", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:44]POST & json_proto [08:13:44]process_json_proto [08:13:44]json parsed OK: [08:13:44]protocol is kg_v1.0 [08:13:44]action value=close_receipt [08:13:44]process_action close_receipt [08:13:44]cmd_close_receipt [08:13:44]MH_GetDate [08:13:44]Write to MH i2c: F0 00 00 00 07 F6 [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: F0 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: F0 09 00 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: F0 09 00 00 07 00 BB 41 71 66 13 9C 7C 64 61 [08:13:44]GetLastDocTimeStamp 1718698334 [08:13:44]current date 1718698427 [08:13:44]FM_GetShiftState [08:13:44]SAM_PROTO_GetShiftState [08:13:44]wFMCommunicate request_size=4 [08:13:44]MH_SAM_APDU [08:13:44]CAPDU: 80 13 01 00 [08:13:44]Write to MH i2c: E2 08 00 01 07 80 13 01 00 00 00 00 00 85 [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:44]Read from MH i2c: E2 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 0E 00 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 0E 00 01 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D0 [08:13:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:13:44]wFMCommunicate OK [08:13:44]SAM_PROTO_GetShiftState done [08:13:44]FM_GetShiftState done [08:13:44]opened in 1718670230 [08:13:44]opened+sec_in_day 1718756630 [08:13:44]quantity*price = 13800 [08:13:44]sum+1 = 13801 [08:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 18.06.2024 08:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34189 ФПД: 29668822761826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081347&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34189&fm=29668822761826&tin=02508201610067®Number=0000000000092786&sum=13800 0 [08:13:45]StoreToDocumentArchive [08:13:45]shift 323 fd 34189 [08:13:45]save to /storage/0323/doc_00034189 [08:13:45]save last doc name /storage/0323/doc_00034189 to /storage/kkm_last_doc_name [08:13:45]save OK [08:13:45]Clear old archive folders... [08:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:13:45]tlvbuf is 01A221C0 [08:13:45]SAM_PROTO_ClearQueue [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 09 00 00 [08:13:45]Write to MH i2c: E2 08 00 0E 07 80 09 00 00 00 00 00 00 87 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]SAM_PROTO_ClearQueue done [08:13:45]KKMCreateOFDPacket [08:13:45]OFDProtocolAddRootSTLVToBuf [08:13:45]FM_MakeSignedData [08:13:45]FM_MakeSignedData [08:13:45]SAM_PROTO_SignData [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 01 02 [08:13:45]Write to MH i2c: E2 08 00 0F 07 80 0D 01 02 00 00 00 00 8F [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=255 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [08:13:45]Write to MH i2c: E2 02 01 10 07 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 01 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=33 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 85 00 00 35 04 06 00 1A FB CF A4 41 62 [08:13:45]Write to MH i2c: E2 24 00 11 07 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 85 00 00 35 04 06 00 1A FB CF A4 41 62 00 00 60 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [08:13:46]RAPDU: 90 00 [08:13:46]wFMCommunicate OK [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 0D 03 02 [08:13:46]Write to MH i2c: E2 08 00 12 07 80 0D 03 02 00 00 00 00 94 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 0B 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 0B 00 12 07 00 5B 5B 08 3F 01 73 77 9B 90 00 18 [08:13:46]RAPDU: 5B 5B 08 3F 01 73 77 9B 90 00 [08:13:46]wFMCommunicate OK [08:13:46]SAM_PROTO_SignData done [08:13:46]FM_MakeSignedData done [08:13:46]CreateOFDProtocolMessage [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 11 00 00 [08:13:46]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 17 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E9 [08:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:13:46]wFMCommunicate OK [08:13:46]CreateOFDProtocolMessage done [08:13:46]OFDSenderStorePacket 34189 [08:13:46]StoreOFDPacket docnum=34189 [08:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 AB CA 1E 01 F2 0F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 85 00 00 35 04 06 00 1A FB CF A4 41 62 5B 5B 08 3F 01 73 77 9B [08:13:46]CheckFolder [08:13:46]dirname=/storage/ofd_packets [08:13:46]CheckFolder done [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00034189 [08:13:46]NVStorageSaveData ofd_packets/00034189 [08:13:46]File name is /storage/ofd_packets/00034189 [08:13:46]Write 324 bytes [08:13:46]NVStorageSaveData done [08:13:46]OFDSenderStorePacket done [08:13:46]KKMCreateOFDPacket done [08:13:46]NVStorageSaveData kkm_last_timestamp [08:13:46]File name is /storage/kkm_last_timestamp [08:13:46]Write 4 bytes [08:13:46]NVStorageSaveData done [08:13:46]ExternCall_PrintAddStr [08:13:46]wPrintStart [08:13:46]Write to MH i2c: 01 00 00 14 07 1B [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 FF 0F 30 [08:13:46]RasterBufferAndPrint [08:13:46]line Счет N : (3)183991 [08:13:46]line ИНН: 02508201610067 [08:13:46]line Контрольно-Кассовый Чек [08:13:46]line ПРОДАЖА [08:13:46]line Товар: 4640030091669 [08:13:46]line Сигареты ESSE Exchange S [08:13:46]line 1.000 * 138.00 [08:13:46]line = 138.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line ИТОГО: 138.00 [08:13:46]line НСП 1% : 1.22 [08:13:46]line НДС 12% : 14.65 [08:13:46]line Наличными: 138.00 [08:13:46]line Безнал.: 0.00 [08:13:46]line Место: АЗС № 120 "Партнер Нефть" [08:13:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:13:46]line СНО: Общий режим [08:13:46]line Чек 11 18.06.2024 08:13 [08:13:46]line Смена: 323 ФФД: 1.0 [08:13:46]line ЗНМ: 0300000172 [08:13:46]line РНМ: 0000000000092786 [08:13:46]line Версия ККМ: 001 [08:13:46]line ФМ: 0000000000875095 [08:13:46]line ФД: 34189 [08:13:46]line ФПД: 29668822761826 [08:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T081347&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34189&fm=29668822761826&tin=02508201610067®Number=0000000000092786&sum=13800 [08:13:46]line 0 [08:13:46]OFD Sender: Processing packet 34189 [packets to send 8, broken 7] [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00034189 [08:13:46]OFD Sender: To server: pG, [08:13:46]CommunicateWithHost lk.salyk.kg:30040 [08:13:46]ConnectInit lk.salyk.kg [08:13:46]written 0, free lines is 4095 [08:13:46]Connected sock=10 [08:13:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 AB CA 1E 01 F2 0F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BB 41 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 85 00 00 35 04 06 00 1A FB CF A4 41 62 5B 5B 08 3F 01 73 77 9B [08:13:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 85 AB 47 00 E4 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8D 85 00 00 F4 03 04 00 8B E8 70 66 B6 04 01 00 00 73 C6 05 E6 F4 89 E0 49 [08:13:46]CommunicateWithHost err = 0 [08:13:46]CheckOFDResponse [08:13:46]1017 (14) - 77093643461234 [08:13:46]1041 (16) - 0000000000875095 [08:13:46]1040 (4) - 34189 [08:13:46]1012 (4) - 18.06.2024 01:53 [08:13:46]1206 (1) - 0 [08:13:46]OFD Sender: Remove packet 34189 [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00034189 [08:13:46]NVStorageDeleteData [08:13:46]Write to MH i2c: 01 00 00 3C 07 43 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 3C 07 00 00 00 00 00 F3 0C 49 [08:13:46]RasterBufferAndPrint [08:13:46]line [08:13:46]line [08:13:46]line [08:13:46]line [08:13:46]line [08:13:46]written 0, free lines is 3323 [08:13:46]MH_Cut [08:13:46]Write to MH i2c: D1 01 00 43 07 01 1C [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: D1 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: D1 01 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: D1 01 00 43 07 00 1B [08:13:46]Write to MH i2c: 01 00 00 44 07 4B [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:47]OFD Sender: No OFD packet to send [08:13:47]*** Cut start [08:13:47]*** Partial cut [08:13:47]*** CUTSNS_PIN = 1 [08:13:47]*** CUTSNS_PIN = 0 [08:13:47]*** Brake cut motor [08:13:48]Read from MH i2c: 01 [08:13:48]MH_I2C_Read... [08:13:48]*** Stop cut motor [08:13:48]*** Cut end [08:13:48]Read from MH i2c: 01 07 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 44 07 00 00 00 00 00 FF 0F 60 [08:13:48]process_action close_receipt done [08:13:48]requested_data is exist [08:13:48]produce_requested_data [08:13:48]requested_item fm.sn is exist - process it [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 11 00 00 [08:13:48]Write to MH i2c: E2 08 00 45 07 80 11 00 00 00 00 00 00 C6 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 45 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1B [08:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:13:48]wFMCommunicate OK [08:13:48]requested_item fd.num is exist - process it [08:13:48]SAM_PROTO_GetFieldsCounters [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 00 00 [08:13:48]Write to MH i2c: E2 08 00 46 07 80 13 00 00 00 00 00 00 C9 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 62 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 62 00 46 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8D 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8D 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetFieldsCounters done [08:13:48]requested_item shift.num is exist - process it [08:13:48]requested_item shift.opened is exist - process it [08:13:48]req_shift_opened [08:13:48]FM_GetShiftState [08:13:48]SAM_PROTO_GetShiftState [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 01 00 [08:13:48]Write to MH i2c: E2 08 00 47 07 80 13 01 00 00 00 00 00 CB [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 47 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 16 [08:13:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetShiftState done [08:13:48]FM_GetShiftState done [08:13:48]req_shift_opened done [08:13:48]requested_item shift.open_date is exist - process it [08:13:48]req_shift_open_date [08:13:48]req_shift_open_date done [08:13:48]produce_requested_data done [08:13:48]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34189,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [08:13:48]process_action_free close_receipt [08:13:48]json_value_free [08:13:48]json_value_free done [08:13:48]process_json_proto returns [08:13:48]Send response to host [08:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34189,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [08:13:48]free response buf [08:13:48]execute_script done [08:13:48]execute_script returns [08:13:48]free content buf [08:13:48]Sock 9.Close socket [08:13:48]Sock 9.Thread stoped [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:06]accept exits with 7 [08:25:06]New connection [08:25:06]New thread 3067293028 created [08:25:06]Thread 3067436388 joined [08:25:06]Waiting for new connection... [08:25:06] Sock 7.Parse request [08:25:06]Sock 7.Check first char [08:25:06]Sock 7.First char is OK [08:25:06]request: POST /json_proto HTTP/1.0 [08:25:06]Method: POST [08:25:06]URL: /json_proto [08:25:06]Method is POST - this is cgi request [08:25:06]url: /json_proto [08:25:06]query_string will be loaded in cgi processing [08:25:06]execute_cgi json_proto POST (null) [08:25:06]execute_cgi path=json_proto method=POST [08:25:06]POST find Content-Length [08:25:06]Host: 172.17.38.134:8080 [08:25:06]Content-Length: 689 [08:25:06]Content-Type: application/json [08:25:06] [08:25:06]POST finish read [08:25:06]Found Content-Length = 689 [08:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183992", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:06]execute_script... [08:25: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 : (3)183992", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:06]POST & json_proto [08:25:06]process_json_proto [08:25:06]json parsed OK: [08:25:06]protocol is kg_v1.0 [08:25:06]action value=close_receipt [08:25:06]process_action close_receipt [08:25:06]cmd_close_receipt [08:25:06]MH_GetDate [08:25:06]Write to MH i2c: F0 00 00 48 07 3E [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: F0 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: F0 09 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: F0 09 00 48 07 00 65 44 71 66 13 9C 7C 64 56 [08:25:06]GetLastDocTimeStamp 1718698427 [08:25:06]current date 1718699109 [08:25:06]FM_GetShiftState [08:25:06]SAM_PROTO_GetShiftState [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 13 01 00 [08:25:06]Write to MH i2c: E2 08 00 49 07 80 13 01 00 00 00 00 00 CD [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 0E 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 0E 00 49 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 18 [08:25:06]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:25:06]wFMCommunicate OK [08:25:06]SAM_PROTO_GetShiftState done [08:25:06]FM_GetShiftState done [08:25:06]opened in 1718670230 [08:25:06]opened+sec_in_day 1718756630 [08:25:06]quantity*price = 10000 [08:25:06]sum+1 = 10001 [08:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 12 18.06.2024 08:25 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34190 ФПД: 130486689157316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T082509&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34190&fm=130486689157316&tin=02508201610067®Number=0000000000092786&sum=10000 0 [08:25:07]StoreToDocumentArchive [08:25:07]shift 323 fd 34190 [08:25:07]save to /storage/0323/doc_00034190 [08:25:07]save last doc name /storage/0323/doc_00034190 to /storage/kkm_last_doc_name [08:25:07]save OK [08:25:07]Clear old archive folders... [08:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:25:07]tlvbuf is 01A0A260 [08:25:07]SAM_PROTO_ClearQueue [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 09 00 00 [08:25:07]Write to MH i2c: E2 08 00 56 07 80 09 00 00 00 00 00 00 CF [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [08:25:07]RAPDU: 90 00 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_ClearQueue done [08:25:07]KKMCreateOFDPacket [08:25:07]OFDProtocolAddRootSTLVToBuf [08:25:07]FM_MakeSignedData [08:25:07]FM_MakeSignedData [08:25:07]SAM_PROTO_SignData [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 0D 01 02 [08:25:07]Write to MH i2c: E2 08 00 57 07 80 0D 01 02 00 00 00 00 D7 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [08:25:07]RAPDU: 90 00 [08:25:07]wFMCommunicate OK [08:25:07]wFMCommunicate request_size=255 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 0C 00 00 00 F4 03 04 00 65 44 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:25:07]Write to MH i2c: E2 02 01 58 07 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 0C 00 00 00 F4 03 04 00 65 44 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 60 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]OFD Sender: No OFD packet to send [08:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:08]Read from MH i2c: E2 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 03 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 03 00 58 07 00 90 00 D3 [08:25:08]RAPDU: 90 00 [08:25:08]wFMCommunicate OK [08:25:08]wFMCommunicate request_size=52 [08:25:08]MH_SAM_APDU [08:25:08]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 85 00 00 35 04 06 00 76 AD 4C C1 50 C4 [08:25:08]Write to MH i2c: E2 37 00 59 07 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 85 00 00 35 04 06 00 76 AD 4C C1 50 C4 00 00 FD [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:08]Read from MH i2c: E2 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 03 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 03 00 59 07 00 90 00 D4 [08:25:08]RAPDU: 90 00 [08:25:08]wFMCommunicate OK [08:25:08]wFMCommunicate request_size=4 [08:25:08]MH_SAM_APDU [08:25:08]CAPDU: 80 0D 03 02 [08:25:08]Write to MH i2c: E2 08 00 5A 07 80 0D 03 02 00 00 00 00 DC [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:08]Read from MH i2c: E2 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 0B 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 0B 00 5A 07 00 30 16 96 6E FC 25 7E 40 90 00 06 [08:25:08]RAPDU: 30 16 96 6E FC 25 7E 40 90 00 [08:25:08]wFMCommunicate OK [08:25:08]SAM_PROTO_SignData done [08:25:08]FM_MakeSignedData done [08:25:08]CreateOFDProtocolMessage [08:25:08]wFMCommunicate request_size=4 [08:25:08]MH_SAM_APDU [08:25:08]CAPDU: 80 11 00 00 [08:25:08]Write to MH i2c: E2 08 00 5B 07 80 11 00 00 00 00 00 00 DC [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:08]Read from MH i2c: E2 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 17 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: E2 17 00 5B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 31 [08:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:25:08]wFMCommunicate OK [08:25:08]CreateOFDProtocolMessage done [08:25:08]OFDSenderStorePacket 34190 [08:25:08]StoreOFDPacket docnum=34190 [08:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 2C 9E 31 01 20 1D 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 0C 00 00 00 F4 03 04 00 65 44 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 85 00 00 35 04 06 00 76 AD 4C C1 50 C4 30 16 96 6E FC 25 7E 40 [08:25:08]CheckFolder [08:25:08]dirname=/storage/ofd_packets [08:25:08]CheckFolder done [08:25:08]ProducePacketName [08:25:08]name=ofd_packets/00034190 [08:25:08]NVStorageSaveData ofd_packets/00034190 [08:25:08]File name is /storage/ofd_packets/00034190 [08:25:08]Write 343 bytes [08:25:08]NVStorageSaveData done [08:25:08]OFDSenderStorePacket done [08:25:08]KKMCreateOFDPacket done [08:25:08]NVStorageSaveData kkm_last_timestamp [08:25:08]File name is /storage/kkm_last_timestamp [08:25:08]Write 4 bytes [08:25:08]NVStorageSaveData done [08:25:08]ExternCall_PrintAddStr [08:25:08]wPrintStart [08:25:08]Write to MH i2c: 01 00 00 5C 07 63 [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: 01 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: 01 07 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [08:25:08]RasterBufferAndPrint [08:25:08]line Счет N : (3)183992 [08:25:08]line ИНН: 02508201610067 [08:25:08]line Контрольно-Кассовый Чек [08:25:08]line ПРОДАЖА [08:25:08]line Товар: 4870002326172 [08:25:08]line Вода ASU пит н.газ лимон ПЭТ 1л [08:25:08]line 1.000 * 100.00 [08:25:08]line = 100.00 [08:25:08]line НДС 12% НСП 1% [08:25:08]line > о реализуемом товаре [08:25:08]line ИТОГО: 100.00 [08:25:08]line НСП 1% : 0.88 [08:25:08]line НДС 12% : 10.62 [08:25:08]line Наличными: 100.00 [08:25:08]line Безнал.: 0.00 [08:25:08]line Место: АЗС № 120 "Партнер Нефть" [08:25:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:25:08]line СНО: Общий режим [08:25:08]line Чек 12 18.06.2024 08:25 [08:25:08]line Смена: 323 ФФД: 1.0 [08:25:08]line ЗНМ: 0300000172 [08:25:08]line РНМ: 0000000000092786 [08:25:08]line Версия ККМ: 001 [08:25:08]line ФМ: 0000000000875095 [08:25:08]line ФД: 34190 [08:25:08]line ФПД: 130486689157316 [08:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T082509&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34190&fm=130486689157316&tin=02508201610067®Number=0000000000092786&sum=10000 [08:25:08]line 0 [08:25:08]OFD Sender: Processing packet 34190 [packets to send 8, broken 7] [08:25:08]ProducePacketName [08:25:08]name=ofd_packets/00034190 [08:25:08]OFD Sender: To server: pG, [08:25:08]CommunicateWithHost lk.salyk.kg:30040 [08:25:08]ConnectInit lk.salyk.kg [08:25:08]written 0, free lines is 4095 [08:25:08]Connected sock=10 [08:25:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 2C 9E 31 01 20 1D 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 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 0C 00 00 00 F4 03 04 00 65 44 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 85 00 00 35 04 06 00 76 AD 4C C1 50 C4 30 16 96 6E FC 25 7E 40 [08:25:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 AA 53 47 00 F0 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8E 85 00 00 F4 03 04 00 35 EB 70 66 B6 04 01 00 00 1D EF 39 56 D5 E2 EE DF [08:25:08]CommunicateWithHost err = 0 [08:25:08]CheckOFDResponse [08:25:08]1017 (14) - 77093643461234 [08:25:08]1041 (16) - 0000000000875095 [08:25:08]1040 (4) - 34190 [08:25:08]1012 (4) - 18.06.2024 02:04 [08:25:08]1206 (1) - 0 [08:25:08]OFD Sender: Remove packet 34190 [08:25:08]ProducePacketName [08:25:08]name=ofd_packets/00034190 [08:25:08]NVStorageDeleteData [08:25:08]Write to MH i2c: 01 00 00 85 07 8C [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: 01 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: 01 07 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 D9 0C 78 [08:25:08]RasterBufferAndPrint [08:25:08]line [08:25:08]line [08:25:08]line [08:25:08]line [08:25:08]line [08:25:08]written 0, free lines is 3297 [08:25:09]MH_Cut [08:25:09]Write to MH i2c: D1 01 00 8C 07 01 65 [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: D1 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: D1 01 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: D1 01 00 8C 07 00 64 [08:25:09]Write to MH i2c: 01 00 00 8D 07 94 [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]OFD Sender: No OFD packet to send [08:25:09]*** Cut start [08:25:09]*** Partial cut [08:25:09]*** CUTSNS_PIN = 1 [08:25:09]*** CUTSNS_PIN = 0 [08:25:10]*** Brake cut motor [08:25:10]Read from MH i2c: 01 [08:25:10]MH_I2C_Read... [08:25:10]*** Stop cut motor [08:25:10]*** Cut end [08:25:10]Read from MH i2c: 01 07 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [08:25:10]process_action close_receipt done [08:25:10]requested_data is exist [08:25:10]produce_requested_data [08:25:10]requested_item fm.sn is exist - process it [08:25:10]wFMCommunicate request_size=4 [08:25:10]MH_SAM_APDU [08:25:10]CAPDU: 80 11 00 00 [08:25:10]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:10]Read from MH i2c: E2 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 17 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 64 [08:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:25:10]wFMCommunicate OK [08:25:10]requested_item fd.num is exist - process it [08:25:10]SAM_PROTO_GetFieldsCounters [08:25:10]wFMCommunicate request_size=4 [08:25:10]MH_SAM_APDU [08:25:10]CAPDU: 80 13 00 00 [08:25:10]Write to MH i2c: E2 08 00 8F 07 80 13 00 00 00 00 00 00 12 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:10]Read from MH i2c: E2 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 62 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 62 00 8F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8E 85 00 00 0E 04 04 00 43 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 B7 [08:25:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8E 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:10]wFMCommunicate OK [08:25:10]SAM_PROTO_GetFieldsCounters done [08:25:10]requested_item shift.num is exist - process it [08:25:10]requested_item shift.opened is exist - process it [08:25:10]req_shift_opened [08:25:10]FM_GetShiftState [08:25:10]SAM_PROTO_GetShiftState [08:25:10]wFMCommunicate request_size=4 [08:25:10]MH_SAM_APDU [08:25:10]CAPDU: 80 13 01 00 [08:25:10]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:10]Read from MH i2c: E2 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 0E 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 5F [08:25:10]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:25:10]wFMCommunicate OK [08:25:10]SAM_PROTO_GetShiftState done [08:25:10]FM_GetShiftState done [08:25:10]req_shift_opened done [08:25:10]requested_item shift.open_date is exist - process it [08:25:10]req_shift_open_date [08:25:10]req_shift_open_date done [08:25:10]produce_requested_data done [08:25:10]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34190,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [08:25:10]process_action_free close_receipt [08:25:10]json_value_free [08:25:10]json_value_free done [08:25:10]process_json_proto returns [08:25:10]Send response to host [08:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34190,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [08:25:10]free response buf [08:25:10]execute_script done [08:25:10]execute_script returns [08:25:10]free content buf [08:25:10]Sock 7.Close socket [08:25:10]Sock 7.Thread stoped [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:24]accept exits with 9 [08:38:24]New connection [08:38:24]New thread 3067436388 created [08:38:24]Thread 3067293028 joined [08:38:24]Waiting for new connection... [08:38:24] Sock 9.Parse request [08:38:24]Sock 9.Check first char [08:38:24]Sock 9.First char is OK [08:38:24]request: POST /json_proto HTTP/1.0 [08:38:24]Method: POST [08:38:24]URL: /json_proto [08:38:24]Method is POST - this is cgi request [08:38:24]url: /json_proto [08:38:24]query_string will be loaded in cgi processing [08:38:24]execute_cgi json_proto POST (null) [08:38:24]execute_cgi path=json_proto method=POST [08:38:24]POST find Content-Length [08:38:24]Host: 172.17.38.134:8080 [08:38:24]Content-Length: 932 [08:38:24]Content-Type: application/json [08:38:24] [08:38:24]POST finish read [08:38:24]Found Content-Length = 932 [08:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183993", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:24]execute_script... [08:38: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 : (3)183993", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:24]POST & json_proto [08:38:24]process_json_proto [08:38:24]json parsed OK: [08:38:24]protocol is kg_v1.0 [08:38:24]action value=close_receipt [08:38:24]process_action close_receipt [08:38:24]cmd_close_receipt [08:38:24]MH_GetDate [08:38:24]Write to MH i2c: F0 00 00 91 07 87 [08:38:24]Write i2c OK [08:38:24]MH_I2C_Read... [08:38:24]Read from MH i2c: F0 [08:38:24]MH_I2C_Read... [08:38:24]Read from MH i2c: F0 09 00 [08:38:24]MH_I2C_Read... [08:38:24]Read from MH i2c: F0 09 00 91 07 00 83 47 71 66 13 9C 7C 64 C0 [08:38:24]GetLastDocTimeStamp 1718699109 [08:38:24]current date 1718699907 [08:38:24]FM_GetShiftState [08:38:24]SAM_PROTO_GetShiftState [08:38:24]wFMCommunicate request_size=4 [08:38:24]MH_SAM_APDU [08:38:24]CAPDU: 80 13 01 00 [08:38:24]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [08:38:24]Write i2c OK [08:38:24]MH_I2C_Read... [08:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:24]Read from MH i2c: E2 [08:38:24]MH_I2C_Read... [08:38:24]Read from MH i2c: E2 0E 00 [08:38:24]MH_I2C_Read... [08:38:24]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 61 [08:38:24]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:38:24]wFMCommunicate OK [08:38:24]SAM_PROTO_GetShiftState done [08:38:24]FM_GetShiftState done [08:38:24]opened in 1718670230 [08:38:24]opened+sec_in_day 1718756630 [08:38:24]quantity*price = 4000 [08:38:24]sum+1 = 4001 [08:38:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004302 Пиво Балтика 7 эксп 0,5л ж/б 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.41 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 13 18.06.2024 08:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34191 ФПД: 40612177993592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T083827&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34191&fm=40612177993592&tin=02508201610067®Number=0000000000092786&sum=16000 0 [08:38:25]StoreToDocumentArchive [08:38:25]shift 323 fd 34191 [08:38:25]save to /storage/0323/doc_00034191 [08:38:25]save last doc name /storage/0323/doc_00034191 to /storage/kkm_last_doc_name [08:38:25]save OK [08:38:25]Clear old archive folders... [08:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=392 [08:38:25]tlvbuf is 01A09E60 [08:38:25]SAM_PROTO_ClearQueue [08:38:25]wFMCommunicate request_size=4 [08:38:25]MH_SAM_APDU [08:38:25]CAPDU: 80 09 00 00 [08:38:25]Write to MH i2c: E2 08 00 9F 07 80 09 00 00 00 00 00 00 18 [08:38:25]Write i2c OK [08:38:25]MH_I2C_Read... [08:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:25]Read from MH i2c: E2 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: E2 03 00 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [08:38:25]RAPDU: 90 00 [08:38:25]wFMCommunicate OK [08:38:25]SAM_PROTO_ClearQueue done [08:38:25]KKMCreateOFDPacket [08:38:25]OFDProtocolAddRootSTLVToBuf [08:38:25]FM_MakeSignedData [08:38:25]FM_MakeSignedData [08:38:25]SAM_PROTO_SignData [08:38:25]wFMCommunicate request_size=4 [08:38:25]MH_SAM_APDU [08:38:25]CAPDU: 80 0D 01 02 [08:38:25]Write to MH i2c: E2 08 00 A0 07 80 0D 01 02 00 00 00 00 20 [08:38:25]Write i2c OK [08:38:25]MH_I2C_Read... [08:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:25]Read from MH i2c: E2 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: E2 03 00 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [08:38:25]RAPDU: 90 00 [08:38:25]wFMCommunicate OK [08:38:25]wFMCommunicate request_size=255 [08:38:25]MH_SAM_APDU [08:38:25]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [08:38:25]Write to MH i2c: E2 02 01 A1 07 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 F1 [08:38:25]Write i2c OK [08:38:25]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [08:38:26]RAPDU: 90 00 [08:38:26]wFMCommunicate OK [08:38:26]wFMCommunicate request_size=151 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 83 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 85 00 00 35 04 06 00 24 EF C2 71 5F 78 [08:38:26]Write to MH i2c: E2 9A 00 A2 07 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 83 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 85 00 00 35 04 06 00 24 EF C2 71 5F 78 00 00 99 [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [08:38:26]RAPDU: 90 00 [08:38:26]wFMCommunicate OK [08:38:26]wFMCommunicate request_size=4 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 0D 03 02 [08:38:26]Write to MH i2c: E2 08 00 A3 07 80 0D 03 02 00 00 00 00 25 [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 0B 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 0B 00 A3 07 00 10 36 CD 35 00 C4 30 21 90 00 83 [08:38:26]RAPDU: 10 36 CD 35 00 C4 30 21 90 00 [08:38:26]wFMCommunicate OK [08:38:26]SAM_PROTO_SignData done [08:38:26]FM_MakeSignedData done [08:38:26]CreateOFDProtocolMessage [08:38:26]wFMCommunicate request_size=4 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 11 00 00 [08:38:26]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 17 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7A [08:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:38:26]wFMCommunicate OK [08:38:26]CreateOFDProtocolMessage done [08:38:26]OFDSenderStorePacket 34191 [08:38:26]StoreOFDPacket docnum=34191 [08:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9C 01 00 00 8F F8 94 01 52 B0 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 83 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 85 00 00 35 04 06 00 24 EF C2 71 5F 78 10 36 CD 35 00 C4 30 21 [08:38:26]CheckFolder [08:38:26]dirname=/storage/ofd_packets [08:38:26]CheckFolder done [08:38:26]ProducePacketName [08:38:26]name=ofd_packets/00034191 [08:38:26]NVStorageSaveData ofd_packets/00034191 [08:38:26]File name is /storage/ofd_packets/00034191 [08:38:26]Write 442 bytes [08:38:26]NVStorageSaveData done [08:38:26]OFDSenderStorePacket done [08:38:26]KKMCreateOFDPacket done [08:38:26]NVStorageSaveData kkm_last_timestamp [08:38:26]File name is /storage/kkm_last_timestamp [08:38:26]Write 4 bytes [08:38:26]NVStorageSaveData done [08:38:26]ExternCall_PrintAddStr [08:38:26]wPrintStart [08:38:26]Write to MH i2c: 01 00 00 A5 07 AC [08:38:26]OFD Sender: Processing packet 34191 [packets to send 8, broken 7] [08:38:26]ProducePacketName [08:38:26]name=ofd_packets/00034191 [08:38:26]OFD Sender: To server: pG, [08:38:26]CommunicateWithHost lk.salyk.kg:30040 [08:38:26]ConnectInit lk.salyk.kg [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: 01 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: 01 07 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [08:38:26]RasterBufferAndPrint [08:38:26]line Счет N : (3)183993 [08:38:26]line ИНН: 02508201610067 [08:38:26]line Контрольно-Кассовый Чек [08:38:26]line ПРОДАЖА [08:38:26]line Товар: 4700000160044 [08:38:26]line Вода Ыссык Ата 0,5л [08:38:26]line 1.000 * 40.00 [08:38:26]line = 40.00 [08:38:26]line НДС 12% НСП 1% [08:38:26]line > о реализуемом товаре [08:38:26]line Товар: 4870145004302 [08:38:26]line Пиво Балтика 7 эксп 0,5л ж/б [08:38:26]line 1.000 * 120.00 [08:38:26]line = 120.00 [08:38:26]line НДС 12% НСП 1% [08:38:26]line > о реализуемом товаре [08:38:26]line ИТОГО: 160.00 [08:38:26]line НСП 1% : 1.41 [08:38:26]line НДС 12% : 16.99 [08:38:26]line Наличными: 160.00 [08:38:26]line Безнал.: 0.00 [08:38:26]line Место: АЗС № 120 "Партнер Нефть" [08:38:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:38:26]line СНО: Общий режим [08:38:26]line Чек 13 18.06.2024 08:38 [08:38:26]line Смена: 323 ФФД: 1.0 [08:38:26]line ЗНМ: 0300000172 [08:38:26]line РНМ: 0000000000092786 [08:38:26]line Версия ККМ: 001 [08:38:26]line ФМ: 0000000000875095 [08:38:26]line ФД: 34191 [08:38:26]line ФПД: 40612177993592 [08:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T083827&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34191&fm=40612177993592&tin=02508201610067®Number=0000000000092786&sum=16000 [08:38:26]line 0 [08:38:26]written 0, free lines is 4095 [08:38:26]Connected sock=10 [08:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9C 01 00 00 8F F8 94 01 52 B0 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 83 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 85 00 00 35 04 06 00 24 EF C2 71 5F 78 10 36 CD 35 00 C4 30 21 [08:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 19 EA 47 00 68 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 8F 85 00 00 F4 03 04 00 54 EE 70 66 B6 04 01 00 00 6A A0 8A 0C 06 BE 34 DC [08:38:27]CommunicateWithHost err = 0 [08:38:27]CheckOFDResponse [08:38:27]1017 (14) - 77093643461234 [08:38:27]1041 (16) - 0000000000875095 [08:38:27]1040 (4) - 34191 [08:38:27]1012 (4) - 18.06.2024 02:17 [08:38:27]1206 (1) - 0 [08:38:27]OFD Sender: Remove packet 34191 [08:38:27]ProducePacketName [08:38:27]name=ofd_packets/00034191 [08:38:27]NVStorageDeleteData [08:38:27]Write to MH i2c: 01 00 00 D3 07 DA [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 D3 07 00 00 00 00 00 AE 0C 9B [08:38:27]RasterBufferAndPrint [08:38:27]line [08:38:27]line [08:38:27]line [08:38:27]line [08:38:27]line [08:38:27]written 0, free lines is 3251 [08:38:27]MH_Cut [08:38:27]Write to MH i2c: D1 01 00 DA 07 01 B3 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: D1 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: D1 01 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: D1 01 00 DA 07 00 B2 [08:38:27]Write to MH i2c: 01 00 00 DB 07 E2 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]OFD Sender: No OFD packet to send [08:38:28]*** Cut start [08:38:28]*** Partial cut [08:38:28]*** CUTSNS_PIN = 1 [08:38:28]*** CUTSNS_PIN = 0 [08:38:28]*** Brake cut motor [08:38:28]Read from MH i2c: 01 [08:38:28]MH_I2C_Read... [08:38:28]*** Stop cut motor [08:38:28]*** Cut end [08:38:28]Read from MH i2c: 01 07 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [08:38:28]process_action close_receipt done [08:38:28]requested_data is exist [08:38:28]produce_requested_data [08:38:28]requested_item fm.sn is exist - process it [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 11 00 00 [08:38:28]Write to MH i2c: E2 08 00 DC 07 80 11 00 00 00 00 00 00 5D [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 17 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 17 00 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B2 [08:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:38:28]wFMCommunicate OK [08:38:28]requested_item fd.num is exist - process it [08:38:28]SAM_PROTO_GetFieldsCounters [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 13 00 00 [08:38:28]Write to MH i2c: E2 08 00 DD 07 80 13 00 00 00 00 00 00 60 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 62 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 62 00 DD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8F 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [08:38:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 8F 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:28]wFMCommunicate OK [08:38:28]SAM_PROTO_GetFieldsCounters done [08:38:28]requested_item shift.num is exist - process it [08:38:28]requested_item shift.opened is exist - process it [08:38:28]req_shift_opened [08:38:28]FM_GetShiftState [08:38:28]SAM_PROTO_GetShiftState [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 13 01 00 [08:38:28]Write to MH i2c: E2 08 00 DE 07 80 13 01 00 00 00 00 00 62 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 DE 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AD [08:38:28]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:38:28]wFMCommunicate OK [08:38:28]SAM_PROTO_GetShiftState done [08:38:28]FM_GetShiftState done [08:38:28]req_shift_opened done [08:38:28]requested_item shift.open_date is exist - process it [08:38:28]req_shift_open_date [08:38:28]req_shift_open_date done [08:38:28]produce_requested_data done [08:38:28]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34191,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [08:38:28]process_action_free close_receipt [08:38:28]json_value_free [08:38:28]json_value_free done [08:38:28]process_json_proto returns [08:38:28]Send response to host [08:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34191,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [08:38:28]free response buf [08:38:28]execute_script done [08:38:28]execute_script returns [08:38:28]free content buf [08:38:28]Sock 9.Close socket [08:38:28]Sock 9.Thread stoped [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:55]accept exits with 7 [08:38:55]New connection [08:38:55]New thread 3067293028 created [08:38:55]Thread 3067436388 joined [08:38:55]Waiting for new connection... [08:38:55] Sock 7.Parse request [08:38:55]Sock 7.Check first char [08:38:55]Sock 7.First char is OK [08:38:55]request: POST /json_proto HTTP/1.0 [08:38:55]Method: POST [08:38:55]URL: /json_proto [08:38:55]Method is POST - this is cgi request [08:38:55]url: /json_proto [08:38:55]query_string will be loaded in cgi processing [08:38:55]execute_cgi json_proto POST (null) [08:38:55]execute_cgi path=json_proto method=POST [08:38:55]POST find Content-Length [08:38:55]Host: 172.17.38.134:8080 [08:38:55]Content-Length: 626 [08:38:55]Content-Type: application/json [08:38:55] [08:38:55]POST finish read [08:38:55]Found Content-Length = 626 [08:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183994", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:55]execute_script... [08:38: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 : (3)183994", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:55]POST & json_proto [08:38:55]process_json_proto [08:38:55]json parsed OK: [08:38:55]protocol is kg_v1.0 [08:38:55]action value=close_receipt [08:38:55]process_action close_receipt [08:38:55]cmd_close_receipt [08:38:55]MH_GetDate [08:38:55]Write to MH i2c: F0 00 00 DF 07 D5 [08:38:55]Write i2c OK [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: F0 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: F0 09 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: F0 09 00 DF 07 00 A2 47 71 66 13 9C 7C 64 2D [08:38:55]GetLastDocTimeStamp 1718699907 [08:38:55]current date 1718699938 [08:38:55]FM_GetShiftState [08:38:55]SAM_PROTO_GetShiftState [08:38:55]wFMCommunicate request_size=4 [08:38:55]MH_SAM_APDU [08:38:55]CAPDU: 80 13 01 00 [08:38:55]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [08:38:55]Write i2c OK [08:38:55]MH_I2C_Read... [08:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:55]Read from MH i2c: E2 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 0E 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AF [08:38:55]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:38:55]wFMCommunicate OK [08:38:55]SAM_PROTO_GetShiftState done [08:38:55]FM_GetShiftState done [08:38:55]opened in 1718670230 [08:38:55]opened+sec_in_day 1718756630 [08:38:55]quantity*price = 23000 [08:38:55]sum+1 = 23001 [08:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 14 18.06.2024 08:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34192 ФПД: 185238052753193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T083858&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34192&fm=185238052753193&tin=02508201610067®Number=0000000000092786&sum=23000 0 [08:38:56]StoreToDocumentArchive [08:38:56]shift 323 fd 34192 [08:38:56]save to /storage/0323/doc_00034192 [08:38:56]save last doc name /storage/0323/doc_00034192 to /storage/kkm_last_doc_name [08:38:56]save OK [08:38:56]Clear old archive folders... [08:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:38:56]tlvbuf is 01A107C0 [08:38:56]SAM_PROTO_ClearQueue [08:38:56]wFMCommunicate request_size=4 [08:38:56]MH_SAM_APDU [08:38:56]CAPDU: 80 09 00 00 [08:38:56]Write to MH i2c: E2 08 00 ED 07 80 09 00 00 00 00 00 00 66 [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:56]Read from MH i2c: E2 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 03 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [08:38:56]RAPDU: 90 00 [08:38:56]wFMCommunicate OK [08:38:56]SAM_PROTO_ClearQueue done [08:38:56]KKMCreateOFDPacket [08:38:56]OFDProtocolAddRootSTLVToBuf [08:38:56]FM_MakeSignedData [08:38:56]FM_MakeSignedData [08:38:56]SAM_PROTO_SignData [08:38:56]wFMCommunicate request_size=4 [08:38:56]MH_SAM_APDU [08:38:56]CAPDU: 80 0D 01 02 [08:38:56]Write to MH i2c: E2 08 00 EE 07 80 0D 01 02 00 00 00 00 6E [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:56]Read from MH i2c: E2 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 03 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [08:38:56]RAPDU: 90 00 [08:38:56]wFMCommunicate OK [08:38:56]wFMCommunicate request_size=255 [08:38:56]MH_SAM_APDU [08:38:56]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A2 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [08:38:56]Write to MH i2c: E2 02 01 EF 07 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A2 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 89 [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:56]Read from MH i2c: E2 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 03 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [08:38:56]RAPDU: 90 00 [08:38:56]wFMCommunicate OK [08:38:56]wFMCommunicate request_size=33 [08:38:56]MH_SAM_APDU [08:38:56]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 85 00 00 35 04 06 00 A8 79 18 55 4F 29 [08:38:56]Write to MH i2c: E2 24 00 F0 07 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 85 00 00 35 04 06 00 A8 79 18 55 4F 29 00 00 1D [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 03 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [08:38:57]RAPDU: 90 00 [08:38:57]wFMCommunicate OK [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 0D 03 02 [08:38:57]Write to MH i2c: E2 08 00 F1 07 80 0D 03 02 00 00 00 00 73 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 0B 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 0B 00 F1 07 00 F8 CD E0 B4 66 77 C1 FC 90 00 67 [08:38:57]RAPDU: F8 CD E0 B4 66 77 C1 FC 90 00 [08:38:57]wFMCommunicate OK [08:38:57]SAM_PROTO_SignData done [08:38:57]FM_MakeSignedData done [08:38:57]CreateOFDProtocolMessage [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 11 00 00 [08:38:57]Write to MH i2c: E2 08 00 F2 07 80 11 00 00 00 00 00 00 73 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 17 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 17 00 F2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C8 [08:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:38:57]wFMCommunicate OK [08:38:57]CreateOFDProtocolMessage done [08:38:57]OFDSenderStorePacket 34192 [08:38:57]StoreOFDPacket docnum=34192 [08:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 73 E1 1E 01 61 BF 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A2 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 85 00 00 35 04 06 00 A8 79 18 55 4F 29 F8 CD E0 B4 66 77 C1 FC [08:38:57]CheckFolder [08:38:57]dirname=/storage/ofd_packets [08:38:57]CheckFolder done [08:38:57]ProducePacketName [08:38:57]name=ofd_packets/00034192 [08:38:57]NVStorageSaveData ofd_packets/00034192 [08:38:57]File name is /storage/ofd_packets/00034192 [08:38:57]Write 324 bytes [08:38:57]NVStorageSaveData done [08:38:57]OFDSenderStorePacket done [08:38:57]KKMCreateOFDPacket done [08:38:57]NVStorageSaveData kkm_last_timestamp [08:38:57]File name is /storage/kkm_last_timestamp [08:38:57]Write 4 bytes [08:38:57]NVStorageSaveData done [08:38:57]ExternCall_PrintAddStr [08:38:57]wPrintStart [08:38:57]Write to MH i2c: 01 00 00 F3 07 FA [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 07 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [08:38:57]RasterBufferAndPrint [08:38:57]line Счет N : (3)183994 [08:38:57]line ИНН: 02508201610067 [08:38:57]line Контрольно-Кассовый Чек [08:38:57]line ПРОДАЖА [08:38:57]line Товар: 2000036240010 [08:38:57]line Кофе Латте (GABB TRADE) [08:38:57]line 2.000 * 115.00 [08:38:57]line = 230.00 [08:38:57]line НДС 12% НСП 1% [08:38:57]line > о реализуемом товаре [08:38:57]line ИТОГО: 230.00 [08:38:57]line НСП 1% : 2.03 [08:38:57]line НДС 12% : 24.42 [08:38:57]line Наличными: 230.00 [08:38:57]line Безнал.: 0.00 [08:38:57]line Место: АЗС № 120 "Партнер Нефть" [08:38:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:38:57]line СНО: Общий режим [08:38:57]line Чек 14 18.06.2024 08:38 [08:38:57]line Смена: 323 ФФД: 1.0 [08:38:57]line ЗНМ: 0300000172 [08:38:57]line РНМ: 0000000000092786 [08:38:57]line Версия ККМ: 001 [08:38:57]line ФМ: 0000000000875095 [08:38:57]line ФД: 34192 [08:38:57]line ФПД: 185238052753193 [08:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T083858&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34192&fm=185238052753193&tin=02508201610067®Number=0000000000092786&sum=23000 [08:38:57]line 0 [08:38:57]OFD Sender: Processing packet 34192 [packets to send 8, broken 7] [08:38:57]ProducePacketName [08:38:57]name=ofd_packets/00034192 [08:38:57]OFD Sender: To server: pG, [08:38:57]CommunicateWithHost lk.salyk.kg:30040 [08:38:57]ConnectInit lk.salyk.kg [08:38:57]written 0, free lines is 4095 [08:38:57]Connected sock=10 [08:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 73 E1 1E 01 61 BF 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A2 47 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 85 00 00 35 04 06 00 A8 79 18 55 4F 29 F8 CD E0 B4 66 77 C1 FC [08:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 80 C2 47 00 B2 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 90 85 00 00 F4 03 04 00 72 EE 70 66 B6 04 01 00 00 20 35 69 F5 24 B3 AB 52 [08:38:57]CommunicateWithHost err = 0 [08:38:57]CheckOFDResponse [08:38:57]1017 (14) - 77093643461234 [08:38:57]1041 (16) - 0000000000875095 [08:38:57]1040 (4) - 34192 [08:38:57]1012 (4) - 18.06.2024 02:18 [08:38:57]1206 (1) - 0 [08:38:57]OFD Sender: Remove packet 34192 [08:38:57]ProducePacketName [08:38:57]name=ofd_packets/00034192 [08:38:57]NVStorageDeleteData [08:38:57]Write to MH i2c: 01 00 00 1B 08 23 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 07 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 06 0D 3D [08:38:57]RasterBufferAndPrint [08:38:57]line [08:38:57]line [08:38:57]line [08:38:57]line [08:38:57]line [08:38:57]written 0, free lines is 3340 [08:38:57]MH_Cut [08:38:57]Write to MH i2c: D1 01 00 22 08 01 FC [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: D1 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: D1 01 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: D1 01 00 22 08 00 FB [08:38:57]Write to MH i2c: 01 00 00 23 08 2B [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:58]OFD Sender: No OFD packet to send [08:38:58]*** Cut start [08:38:58]*** Partial cut [08:38:58]*** CUTSNS_PIN = 1 [08:38:58]*** CUTSNS_PIN = 0 [08:38:58]*** Brake cut motor [08:38:59]Read from MH i2c: 01 [08:38:59]MH_I2C_Read... [08:38:59]*** Stop cut motor [08:38:59]*** Cut end [08:38:59]Read from MH i2c: 01 07 00 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [08:38:59]process_action close_receipt done [08:38:59]requested_data is exist [08:38:59]produce_requested_data [08:38:59]requested_item fm.sn is exist - process it [08:38:59]wFMCommunicate request_size=4 [08:38:59]MH_SAM_APDU [08:38:59]CAPDU: 80 11 00 00 [08:38:59]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [08:38:59]Write i2c OK [08:38:59]MH_I2C_Read... [08:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:59]Read from MH i2c: E2 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: E2 17 00 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 FB [08:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [08:38:59]wFMCommunicate OK [08:38:59]requested_item fd.num is exist - process it [08:38:59]SAM_PROTO_GetFieldsCounters [08:38:59]wFMCommunicate request_size=4 [08:38:59]MH_SAM_APDU [08:38:59]CAPDU: 80 13 00 00 [08:38:59]Write to MH i2c: E2 08 00 25 08 80 13 00 00 00 00 00 00 A9 [08:38:59]Write i2c OK [08:38:59]MH_I2C_Read... [08:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:59]Read from MH i2c: E2 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: E2 62 00 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: E2 62 00 25 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 90 85 00 00 0E 04 04 00 43 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 56 [08:38:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 90 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:59]wFMCommunicate OK [08:38:59]SAM_PROTO_GetFieldsCounters done [08:38:59]requested_item shift.num is exist - process it [08:38:59]requested_item shift.opened is exist - process it [08:38:59]req_shift_opened [08:38:59]FM_GetShiftState [08:38:59]SAM_PROTO_GetShiftState [08:38:59]wFMCommunicate request_size=4 [08:38:59]MH_SAM_APDU [08:38:59]CAPDU: 80 13 01 00 [08:38:59]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [08:38:59]Write i2c OK [08:38:59]MH_I2C_Read... [08:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:59]Read from MH i2c: E2 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: E2 0E 00 [08:38:59]MH_I2C_Read... [08:38:59]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F6 [08:38:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [08:38:59]wFMCommunicate OK [08:38:59]SAM_PROTO_GetShiftState done [08:38:59]FM_GetShiftState done [08:38:59]req_shift_opened done [08:38:59]requested_item shift.open_date is exist - process it [08:38:59]req_shift_open_date [08:38:59]req_shift_open_date done [08:38:59]produce_requested_data done [08:38:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34192,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [08:38:59]process_action_free close_receipt [08:38:59]json_value_free [08:38:59]json_value_free done [08:38:59]process_json_proto returns [08:38:59]Send response to host [08:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34192,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [08:38:59]free response buf [08:38:59]execute_script done [08:38:59]execute_script returns [08:38:59]free content buf [08:38:59]Sock 7.Close socket [08:38:59]Sock 7.Thread stoped [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]accept exits with 9 [09:00:54]New connection [09:00:54]New thread 3067436388 created [09:00:54]Thread 3067293028 joined [09:00:54]Waiting for new connection... [09:00:54] Sock 9.Parse request [09:00:54]Sock 9.Check first char [09:00:54]Sock 9.First char is OK [09:00:54]request: POST /json_proto HTTP/1.0 [09:00:54]Method: POST [09:00:54]URL: /json_proto [09:00:54]Method is POST - this is cgi request [09:00:54]url: /json_proto [09:00:54]query_string will be loaded in cgi processing [09:00:54]execute_cgi json_proto POST (null) [09:00:54]execute_cgi path=json_proto method=POST [09:00:54]POST find Content-Length [09:00:54]Host: 172.17.38.134:8080 [09:00:54]Content-Length: 614 [09:00:54]Content-Type: application/json [09:00:54] [09:00:54]POST finish read [09:00:54]Found Content-Length = 614 [09:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183995", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:54]execute_script... [09:00: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 : (3)183995", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:54]POST & json_proto [09:00:54]process_json_proto [09:00:54]json parsed OK: [09:00:54]protocol is kg_v1.0 [09:00:54]action value=close_receipt [09:00:54]process_action close_receipt [09:00:54]cmd_close_receipt [09:00:54]MH_GetDate [09:00:54]Write to MH i2c: F0 00 00 27 08 1E [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: F0 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: F0 09 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: F0 09 00 27 08 00 C9 4C 71 66 13 9C 7C 64 A2 [09:00:54]GetLastDocTimeStamp 1718699938 [09:00:54]current date 1718701257 [09:00:54]FM_GetShiftState [09:00:54]SAM_PROTO_GetShiftState [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 01 00 [09:00:54]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 [09:00:54]MH_I2C_Read... [09:00:54]OFD Sender: No OFD packet to send [09:00:54]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F8 [09:00:54]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetShiftState done [09:00:54]FM_GetShiftState done [09:00:54]opened in 1718670230 [09:00:54]opened+sec_in_day 1718756630 [09:00:54]quantity*price = 11000 [09:00:54]sum+1 = 11001 [09:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 18.06.2024 09:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34193 ФПД: 80526420278218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090057&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34193&fm=80526420278218&tin=02508201610067®Number=0000000000092786&sum=11000 0 [09:00:55]StoreToDocumentArchive [09:00:55]shift 323 fd 34193 [09:00:55]save to /storage/0323/doc_00034193 [09:00:55]save last doc name /storage/0323/doc_00034193 to /storage/kkm_last_doc_name [09:00:55]save OK [09:00:55]Clear old archive folders... [09:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=266 [09:00:55]tlvbuf is 01A12040 [09:00:55]SAM_PROTO_ClearQueue [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 09 00 00 [09:00:55]Write to MH i2c: E2 08 00 35 08 80 09 00 00 00 00 00 00 AF [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]SAM_PROTO_ClearQueue done [09:00:55]KKMCreateOFDPacket [09:00:55]OFDProtocolAddRootSTLVToBuf [09:00:55]FM_MakeSignedData [09:00:55]FM_MakeSignedData [09:00:55]SAM_PROTO_SignData [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 01 02 [09:00:55]Write to MH i2c: E2 08 00 36 08 80 0D 01 02 00 00 00 00 B7 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]wFMCommunicate request_size=255 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 4C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [09:00:55]Write to MH i2c: E2 02 01 37 08 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 4C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 70 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]wFMCommunicate request_size=25 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 02 02 14 39 35 10 04 04 00 91 85 00 00 35 04 06 00 49 3D 04 AC FB CA [09:00:55]Write to MH i2c: E2 1C 00 38 08 80 0D 02 02 14 00 39 35 10 04 04 00 91 85 00 00 35 04 06 00 49 3D 04 AC FB CA 00 00 B8 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 03 02 [09:00:55]Write to MH i2c: E2 08 00 39 08 80 0D 03 02 00 00 00 00 BC [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 0B 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 0B 00 39 08 00 34 BA C7 5D 93 F3 1B 78 90 00 E8 [09:00:55]RAPDU: 34 BA C7 5D 93 F3 1B 78 90 00 [09:00:55]wFMCommunicate OK [09:00:55]SAM_PROTO_SignData done [09:00:55]FM_MakeSignedData done [09:00:55]CreateOFDProtocolMessage [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 11 00 00 [09:00:55]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:56]Read from MH i2c: E2 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: E2 17 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 11 [09:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:00:56]wFMCommunicate OK [09:00:56]CreateOFDProtocolMessage done [09:00:56]OFDSenderStorePacket 34193 [09:00:56]StoreOFDPacket docnum=34193 [09:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 49 83 16 01 A3 AD 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 4C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 85 00 00 35 04 06 00 49 3D 04 AC FB CA 34 BA C7 5D 93 F3 1B 78 [09:00:56]CheckFolder [09:00:56]dirname=/storage/ofd_packets [09:00:56]CheckFolder done [09:00:56]ProducePacketName [09:00:56]name=ofd_packets/00034193 [09:00:56]NVStorageSaveData ofd_packets/00034193 [09:00:56]File name is /storage/ofd_packets/00034193 [09:00:56]Write 316 bytes [09:00:56]NVStorageSaveData done [09:00:56]OFDSenderStorePacket done [09:00:56]KKMCreateOFDPacket done [09:00:56]NVStorageSaveData kkm_last_timestamp [09:00:56]File name is /storage/kkm_last_timestamp [09:00:56]Write 4 bytes [09:00:56]NVStorageSaveData done [09:00:56]ExternCall_PrintAddStr [09:00:56]wPrintStart [09:00:56]Write to MH i2c: 01 00 00 3B 08 43 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 07 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [09:00:56]RasterBufferAndPrint [09:00:56]line Счет N : (3)183995 [09:00:56]line ИНН: 02508201610067 [09:00:56]line Контрольно-Кассовый Чек [09:00:56]line ПРОДАЖА [09:00:56]line Товар: 4870001570071 [09:00:56]line Напиток Pepsi 1л [09:00:56]line 1.000 * 110.00 [09:00:56]line = 110.00 [09:00:56]line НДС 12% НСП 1% [09:00:56]line > о реализуемом товаре [09:00:56]line ИТОГО: 110.00 [09:00:56]line НСП 1% : 0.97 [09:00:56]line НДС 12% : 11.68 [09:00:56]line Наличными: 110.00 [09:00:56]line Безнал.: 0.00 [09:00:56]line Место: АЗС № 120 "Партнер Нефть" [09:00:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:00:56]line СНО: Общий режим [09:00:56]line Чек 15 18.06.2024 09:00 [09:00:56]line Смена: 323 ФФД: 1.0 [09:00:56]line ЗНМ: 0300000172 [09:00:56]line РНМ: 0000000000092786 [09:00:56]line Версия ККМ: 001 [09:00:56]line ФМ: 0000000000875095 [09:00:56]line ФД: 34193 [09:00:56]line ФПД: 80526420278218 [09:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090057&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34193&fm=80526420278218&tin=02508201610067®Number=0000000000092786&sum=11000 [09:00:56]line 0 [09:00:56]OFD Sender: Processing packet 34193 [packets to send 8, broken 7] [09:00:56]ProducePacketName [09:00:56]name=ofd_packets/00034193 [09:00:56]OFD Sender: To server: pG, [09:00:56]CommunicateWithHost lk.salyk.kg:30040 [09:00:56]ConnectInit lk.salyk.kg [09:00:56]written 0, free lines is 4095 [09:00:56]Connected sock=10 [09:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 49 83 16 01 A3 AD 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 4C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 85 00 00 35 04 06 00 49 3D 04 AC FB CA 34 BA C7 5D 93 F3 1B 78 [09:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 46 94 47 00 DD 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 91 85 00 00 F4 03 04 00 99 F3 70 66 B6 04 01 00 00 A7 C3 86 9F BA 8E 1F B3 [09:00:56]CommunicateWithHost err = 0 [09:00:56]CheckOFDResponse [09:00:56]1017 (14) - 77093643461234 [09:00:56]1041 (16) - 0000000000875095 [09:00:56]1040 (4) - 34193 [09:00:56]1012 (4) - 18.06.2024 02:40 [09:00:56]1206 (1) - 0 [09:00:56]OFD Sender: Remove packet 34193 [09:00:56]ProducePacketName [09:00:56]name=ofd_packets/00034193 [09:00:56]NVStorageDeleteData [09:00:56]Write to MH i2c: 01 00 00 63 08 6B [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 07 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 07 00 63 08 00 00 00 00 00 FB 0C 79 [09:00:56]RasterBufferAndPrint [09:00:56]line [09:00:56]line [09:00:56]line [09:00:56]line [09:00:56]line [09:00:56]written 0, free lines is 3329 [09:00:56]MH_Cut [09:00:56]Write to MH i2c: D1 01 00 6A 08 01 44 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: D1 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: D1 01 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: D1 01 00 6A 08 00 43 [09:00:56]Write to MH i2c: 01 00 00 6B 08 73 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:57]OFD Sender: No OFD packet to send [09:00:57]*** Cut start [09:00:57]*** Partial cut [09:00:57]*** CUTSNS_PIN = 1 [09:00:57]*** CUTSNS_PIN = 0 [09:00:57]*** Brake cut motor [09:00:58]Read from MH i2c: 01 [09:00:58]MH_I2C_Read... [09:00:58]*** Stop cut motor [09:00:58]*** Cut end [09:00:58]Read from MH i2c: 01 07 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: 01 07 00 6B 08 00 00 00 00 00 FF 0F 88 [09:00:58]process_action close_receipt done [09:00:58]requested_data is exist [09:00:58]produce_requested_data [09:00:58]requested_item fm.sn is exist - process it [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 11 00 00 [09:00:58]Write to MH i2c: E2 08 00 6C 08 80 11 00 00 00 00 00 00 EE [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 17 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 17 00 6C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 43 [09:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:00:58]wFMCommunicate OK [09:00:58]requested_item fd.num is exist - process it [09:00:58]SAM_PROTO_GetFieldsCounters [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 13 00 00 [09:00:58]Write to MH i2c: E2 08 00 6D 08 80 13 00 00 00 00 00 00 F1 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 62 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 62 00 6D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 91 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [09:00:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 91 85 00 00 0E 04 04 00 43 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 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_GetFieldsCounters done [09:00:58]requested_item shift.num is exist - process it [09:00:58]requested_item shift.opened is exist - process it [09:00:58]req_shift_opened [09:00:58]FM_GetShiftState [09:00:58]SAM_PROTO_GetShiftState [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 13 01 00 [09:00:58]Write to MH i2c: E2 08 00 6E 08 80 13 01 00 00 00 00 00 F3 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 0E 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 0E 00 6E 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3E [09:00:58]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_GetShiftState done [09:00:58]FM_GetShiftState done [09:00:58]req_shift_opened done [09:00:58]requested_item shift.open_date is exist - process it [09:00:58]req_shift_open_date [09:00:58]req_shift_open_date done [09:00:58]produce_requested_data done [09:00:58]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34193,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:00:58]process_action_free close_receipt [09:00:58]json_value_free [09:00:58]json_value_free done [09:00:58]process_json_proto returns [09:00:58]Send response to host [09:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34193,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:00:58]free response buf [09:00:58]execute_script done [09:00:58]execute_script returns [09:00:58]free content buf [09:00:58]Sock 9.Close socket [09:00:58]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:46]accept exits with 7 [09:02:46]New connection [09:02:46]New thread 3067293028 created [09:02:46]Thread 3067436388 joined [09:02:46]Waiting for new connection... [09:02:46] Sock 7.Parse request [09:02:46]Sock 7.Check first char [09:02:46]Sock 7.First char is OK [09:02:46]request: POST /json_proto HTTP/1.0 [09:02:46]Method: POST [09:02:46]URL: /json_proto [09:02:46]Method is POST - this is cgi request [09:02:46]url: /json_proto [09:02:46]query_string will be loaded in cgi processing [09:02:46]execute_cgi json_proto POST (null) [09:02:46]execute_cgi path=json_proto method=POST [09:02:46]POST find Content-Length [09:02:46]Host: 172.17.38.134:8080 [09:02:46]Content-Length: 647 [09:02:46]Content-Type: application/json [09:02:46] [09:02:46]POST finish read [09:02:46]Found Content-Length = 647 [09:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183996", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:46]execute_script... [09:02:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183996", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:46]POST & json_proto [09:02:46]process_json_proto [09:02:46]json parsed OK: [09:02:46]protocol is kg_v1.0 [09:02:46]action value=close_receipt [09:02:46]process_action close_receipt [09:02:46]cmd_close_receipt [09:02:46]MH_GetDate [09:02:46]Write to MH i2c: F0 00 00 6F 08 66 [09:02:46]Write i2c OK [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: F0 [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: F0 09 00 [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: F0 09 00 6F 08 00 39 4D 71 66 13 9C 7C 64 5B [09:02:46]GetLastDocTimeStamp 1718701257 [09:02:46]current date 1718701369 [09:02:46]FM_GetShiftState [09:02:46]SAM_PROTO_GetShiftState [09:02:46]wFMCommunicate request_size=4 [09:02:46]MH_SAM_APDU [09:02:46]CAPDU: 80 13 01 00 [09:02:46]Write to MH i2c: E2 08 00 70 08 80 13 01 00 00 00 00 00 F5 [09:02:46]Write i2c OK [09:02:46]MH_I2C_Read... [09:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:46]Read from MH i2c: E2 [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: E2 0E 00 [09:02:46]MH_I2C_Read... [09:02:46]Read from MH i2c: E2 0E 00 70 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 40 [09:02:46]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:02:46]wFMCommunicate OK [09:02:46]SAM_PROTO_GetShiftState done [09:02:46]FM_GetShiftState done [09:02:46]opened in 1718670230 [09:02:46]opened+sec_in_day 1718756630 [09:02:46]quantity*price = 7500 [09:02:46]sum+1 = 7501 [09:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 16 18.06.2024 09:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34194 ФПД: 135524559440905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090249&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34194&fm=135524559440905&tin=02508201610067®Number=0000000000092786&sum=7500 0 [09:02:47]StoreToDocumentArchive [09:02:47]shift 323 fd 34194 [09:02:47]save to /storage/0323/doc_00034194 [09:02:47]save last doc name /storage/0323/doc_00034194 to /storage/kkm_last_doc_name [09:02:47]save OK [09:02:47]Clear old archive folders... [09:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:02:47]tlvbuf is 01A1E300 [09:02:47]SAM_PROTO_ClearQueue [09:02:47]wFMCommunicate request_size=4 [09:02:47]MH_SAM_APDU [09:02:47]CAPDU: 80 09 00 00 [09:02:47]Write to MH i2c: E2 08 00 7D 08 80 09 00 00 00 00 00 00 F7 [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:47]Read from MH i2c: E2 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: E2 03 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: E2 03 00 7D 08 00 90 00 F9 [09:02:47]RAPDU: 90 00 [09:02:47]wFMCommunicate OK [09:02:47]SAM_PROTO_ClearQueue done [09:02:47]KKMCreateOFDPacket [09:02:47]OFDProtocolAddRootSTLVToBuf [09:02:47]FM_MakeSignedData [09:02:47]FM_MakeSignedData [09:02:47]SAM_PROTO_SignData [09:02:47]wFMCommunicate request_size=4 [09:02:47]MH_SAM_APDU [09:02:47]CAPDU: 80 0D 01 02 [09:02:47]Write to MH i2c: E2 08 00 7E 08 80 0D 01 02 00 00 00 00 FF [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:47]Read from MH i2c: E2 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: E2 03 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: E2 03 00 7E 08 00 90 00 FA [09:02:47]RAPDU: 90 00 [09:02:47]wFMCommunicate OK [09:02:47]wFMCommunicate request_size=255 [09:02:47]MH_SAM_APDU [09:02:47]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 39 4D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [09:02:47]Write to MH i2c: E2 02 01 7F 08 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 39 4D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 14 [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [09:02:48]RAPDU: 90 00 [09:02:48]wFMCommunicate OK [09:02:48]wFMCommunicate request_size=41 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 85 00 00 35 04 06 00 7B 42 45 39 4C 09 [09:02:48]Write to MH i2c: E2 2C 00 80 08 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 85 00 00 35 04 06 00 7B 42 45 39 4C 09 00 00 7A [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [09:02:48]RAPDU: 90 00 [09:02:48]wFMCommunicate OK [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 0D 03 02 [09:02:48]Write to MH i2c: E2 08 00 81 08 80 0D 03 02 00 00 00 00 04 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 0B 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 0B 00 81 08 00 E0 74 D3 6D C0 9C AF 70 90 00 14 [09:02:48]RAPDU: E0 74 D3 6D C0 9C AF 70 90 00 [09:02:48]wFMCommunicate OK [09:02:48]SAM_PROTO_SignData done [09:02:48]FM_MakeSignedData done [09:02:48]CreateOFDProtocolMessage [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 11 00 00 [09:02:48]Write to MH i2c: E2 08 00 82 08 80 11 00 00 00 00 00 00 04 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 17 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 17 00 82 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 59 [09:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:02:48]wFMCommunicate OK [09:02:48]CreateOFDProtocolMessage done [09:02:48]OFDSenderStorePacket 34194 [09:02:48]StoreOFDPacket docnum=34194 [09:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 2D 90 26 01 DB 73 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 39 4D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 85 00 00 35 04 06 00 7B 42 45 39 4C 09 E0 74 D3 6D C0 9C AF 70 [09:02:48]CheckFolder [09:02:48]dirname=/storage/ofd_packets [09:02:48]CheckFolder done [09:02:48]ProducePacketName [09:02:48]name=ofd_packets/00034194 [09:02:48]NVStorageSaveData ofd_packets/00034194 [09:02:48]File name is /storage/ofd_packets/00034194 [09:02:48]Write 332 bytes [09:02:48]NVStorageSaveData done [09:02:48]OFDSenderStorePacket done [09:02:48]KKMCreateOFDPacket done [09:02:48]NVStorageSaveData kkm_last_timestamp [09:02:48]File name is /storage/kkm_last_timestamp [09:02:48]Write 4 bytes [09:02:48]NVStorageSaveData done [09:02:48]ExternCall_PrintAddStr [09:02:48]wPrintStart [09:02:48]Write to MH i2c: 01 00 00 83 08 8B [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 07 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 07 00 83 08 00 00 00 00 00 FF 0F A0 [09:02:48]RasterBufferAndPrint [09:02:48]line Счет N : (3)183996 [09:02:48]line ИНН: 02508201610067 [09:02:48]line Контрольно-Кассовый Чек [09:02:48]line ПРОДАЖА [09:02:48]line Товар: 2000034730018 [09:02:48]line Кофе Американо (GABB TRADE) [09:02:48]line 1.000 * 75.00 [09:02:48]line = 75.00 [09:02:48]line НДС 12% НСП 1% [09:02:48]line > о реализуемом товаре [09:02:48]line ИТОГО: 75.00 [09:02:48]line НСП 1% : 0.66 [09:02:48]line НДС 12% : 7.96 [09:02:48]line Наличными: 75.00 [09:02:48]line Безнал.: 0.00 [09:02:48]line Место: АЗС № 120 "Партнер Нефть" [09:02:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:02:48]line СНО: Общий режим [09:02:48]line Чек 16 18.06.2024 09:02 [09:02:48]line Смена: 323 ФФД: 1.0 [09:02:48]line ЗНМ: 0300000172 [09:02:48]line РНМ: 0000000000092786 [09:02:48]line Версия ККМ: 001 [09:02:48]line ФМ: 0000000000875095 [09:02:48]line ФД: 34194 [09:02:48]line ФПД: 135524559440905 [09:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090249&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34194&fm=135524559440905&tin=02508201610067®Number=0000000000092786&sum=7500 [09:02:48]line 0 [09:02:48]OFD Sender: Processing packet 34194 [packets to send 8, broken 7] [09:02:48]ProducePacketName [09:02:48]name=ofd_packets/00034194 [09:02:48]OFD Sender: To server: pG, [09:02:48]CommunicateWithHost lk.salyk.kg:30040 [09:02:48]ConnectInit lk.salyk.kg [09:02:48]written 0, free lines is 4095 [09:02:48]Connected sock=10 [09:02:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 2D 90 26 01 DB 73 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 39 4D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 85 00 00 35 04 06 00 7B 42 45 39 4C 09 E0 74 D3 6D C0 9C AF 70 [09:02:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 FA 8D 47 00 7D 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 92 85 00 00 F4 03 04 00 09 F4 70 66 B6 04 01 00 00 E6 1F A1 70 92 54 D8 9A [09:02:48]CommunicateWithHost err = 0 [09:02:48]CheckOFDResponse [09:02:48]1017 (14) - 77093643461234 [09:02:48]1041 (16) - 0000000000875095 [09:02:48]1040 (4) - 34194 [09:02:48]1012 (4) - 18.06.2024 02:42 [09:02:48]1206 (1) - 0 [09:02:48]OFD Sender: Remove packet 34194 [09:02:48]ProducePacketName [09:02:48]name=ofd_packets/00034194 [09:02:48]NVStorageDeleteData [09:02:48]Write to MH i2c: 01 00 00 AC 08 B4 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 07 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 07 00 AC 08 00 00 00 00 00 E0 0C A7 [09:02:48]RasterBufferAndPrint [09:02:48]line [09:02:48]line [09:02:48]line [09:02:48]line [09:02:48]line [09:02:48]written 0, free lines is 3302 [09:02:48]MH_Cut [09:02:48]Write to MH i2c: D1 01 00 B3 08 01 8D [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: D1 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: D1 01 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: D1 01 00 B3 08 00 8C [09:02:48]Write to MH i2c: 01 00 00 B4 08 BC [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:49]OFD Sender: No OFD packet to send [09:02:49]*** Cut start [09:02:49]*** Partial cut [09:02:49]*** CUTSNS_PIN = 1 [09:02:49]*** CUTSNS_PIN = 0 [09:02:50]*** Brake cut motor [09:02:50]Read from MH i2c: 01 [09:02:50]MH_I2C_Read... [09:02:50]*** Stop cut motor [09:02:50]*** Cut end [09:02:50]Read from MH i2c: 01 07 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: 01 07 00 B4 08 00 00 00 00 00 FF 0F D1 [09:02:50]process_action close_receipt done [09:02:50]requested_data is exist [09:02:50]produce_requested_data [09:02:50]requested_item fm.sn is exist - process it [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 11 00 00 [09:02:50]Write to MH i2c: E2 08 00 B5 08 80 11 00 00 00 00 00 00 37 [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 17 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 17 00 B5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8C [09:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:02:50]wFMCommunicate OK [09:02:50]requested_item fd.num is exist - process it [09:02:50]SAM_PROTO_GetFieldsCounters [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 13 00 00 [09:02:50]Write to MH i2c: E2 08 00 B6 08 80 13 00 00 00 00 00 00 3A [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 62 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 62 00 B6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 92 85 00 00 0E 04 04 00 43 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 EF [09:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 92 85 00 00 0E 04 04 00 43 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 [09:02:50]wFMCommunicate OK [09:02:50]SAM_PROTO_GetFieldsCounters done [09:02:50]requested_item shift.num is exist - process it [09:02:50]requested_item shift.opened is exist - process it [09:02:50]req_shift_opened [09:02:50]FM_GetShiftState [09:02:50]SAM_PROTO_GetShiftState [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 13 01 00 [09:02:50]Write to MH i2c: E2 08 00 B7 08 80 13 01 00 00 00 00 00 3C [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 0E 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 0E 00 B7 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 87 [09:02:50]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:02:50]wFMCommunicate OK [09:02:50]SAM_PROTO_GetShiftState done [09:02:50]FM_GetShiftState done [09:02:50]req_shift_opened done [09:02:50]requested_item shift.open_date is exist - process it [09:02:50]req_shift_open_date [09:02:50]req_shift_open_date done [09:02:50]produce_requested_data done [09:02:50]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34194,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:02:50]process_action_free close_receipt [09:02:50]json_value_free [09:02:50]json_value_free done [09:02:50]process_json_proto returns [09:02:50]Send response to host [09:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34194,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:02:50]free response buf [09:02:50]execute_script done [09:02:50]execute_script returns [09:02:50]free content buf [09:02:50]Sock 7.Close socket [09:02:50]Sock 7.Thread stoped [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:08]accept exits with 9 [09:08:08]New connection [09:08:08]New thread 3067436388 created [09:08:08]Thread 3067293028 joined [09:08:08]Waiting for new connection... [09:08:08] Sock 9.Parse request [09:08:08]Sock 9.Check first char [09:08:08]Sock 9.First char is OK [09:08:08]request: POST /json_proto HTTP/1.0 [09:08:08]Method: POST [09:08:08]URL: /json_proto [09:08:08]Method is POST - this is cgi request [09:08:08]url: /json_proto [09:08:08]query_string will be loaded in cgi processing [09:08:08]execute_cgi json_proto POST (null) [09:08:08]execute_cgi path=json_proto method=POST [09:08:08]POST find Content-Length [09:08:08]Host: 172.17.38.134:8080 [09:08:08]Content-Length: 1351 [09:08:08]Content-Type: application/json [09:08:08] [09:08:08]POST finish read [09:08:08]Found Content-Length = 1351 [09:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183997", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:08]execute_script... [09:08: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 : (3)183997", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:08]POST & json_proto [09:08:08]process_json_proto [09:08:08]json parsed OK: [09:08:08]protocol is kg_v1.0 [09:08:08]action value=close_receipt [09:08:08]process_action close_receipt [09:08:08]cmd_close_receipt [09:08:08]MH_GetDate [09:08:08]Write to MH i2c: F0 00 00 B8 08 AF [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: F0 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: F0 09 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: F0 09 00 B8 08 00 7B 4E 71 66 13 9C 7C 64 E7 [09:08:08]GetLastDocTimeStamp 1718701369 [09:08:08]current date 1718701691 [09:08:08]FM_GetShiftState [09:08:08]SAM_PROTO_GetShiftState [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 13 01 00 [09:08:08]Write to MH i2c: E2 08 00 B9 08 80 13 01 00 00 00 00 00 3E [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 0E 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 0E 00 B9 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 89 [09:08:08]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:08:08]wFMCommunicate OK [09:08:08]SAM_PROTO_GetShiftState done [09:08:08]FM_GetShiftState done [09:08:08]opened in 1718670230 [09:08:08]opened+sec_in_day 1718756630 [09:08:08]quantity*price = 6000 [09:08:08]sum+1 = 6001 [09:08:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 17 18.06.2024 09:08 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34195 ФПД: 172288344908861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090812&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34195&fm=172288344908861&tin=02508201610067®Number=0000000000092786&sum=28000 0 [09:08:09]StoreToDocumentArchive [09:08:09]shift 323 fd 34195 [09:08:09]save to /storage/0323/doc_00034195 [09:08:09]save last doc name /storage/0323/doc_00034195 to /storage/kkm_last_doc_name [09:08:09]save OK [09:08:09]Clear old archive folders... [09:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=502 [09:08:09]tlvbuf is 01A3BE30 [09:08:09]SAM_PROTO_ClearQueue [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 09 00 00 [09:08:09]Write to MH i2c: E2 08 00 C6 08 80 09 00 00 00 00 00 00 40 [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:09]Read from MH i2c: E2 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 03 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [09:08:09]RAPDU: 90 00 [09:08:09]wFMCommunicate OK [09:08:09]SAM_PROTO_ClearQueue done [09:08:09]KKMCreateOFDPacket [09:08:09]OFDProtocolAddRootSTLVToBuf [09:08:09]FM_MakeSignedData [09:08:09]FM_MakeSignedData [09:08:09]SAM_PROTO_SignData [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 0D 01 02 [09:08:09]Write to MH i2c: E2 08 00 C7 08 80 0D 01 02 00 00 00 00 48 [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 C7 08 00 90 00 43 [09:08:10]RAPDU: 90 00 [09:08:10]wFMCommunicate OK [09:08:10]wFMCommunicate request_size=255 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 [09:08:10]Write to MH i2c: E2 02 01 C8 08 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 00 00 3F [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 C8 08 00 90 00 44 [09:08:10]RAPDU: 90 00 [09:08:10]wFMCommunicate OK [09:08:10]wFMCommunicate request_size=255 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 0D 02 02 FA 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7C 4E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 85 00 00 35 04 06 00 [09:08:10]Write to MH i2c: E2 02 01 C9 08 80 0D 02 02 FA 00 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7C 4E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 85 00 00 35 04 06 00 00 00 9B [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [09:08:10]RAPDU: 90 00 [09:08:10]wFMCommunicate OK [09:08:10]wFMCommunicate request_size=11 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 0D 02 02 06 9C B2 01 98 E4 3D [09:08:10]Write to MH i2c: E2 0E 00 CA 08 80 0D 02 02 06 00 9C B2 01 98 E4 3D 00 00 60 [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:10]Read from MH i2c: E2 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 [09:08:10]MH_I2C_Read... [09:08:10]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [09:08:10]RAPDU: 90 00 [09:08:10]wFMCommunicate OK [09:08:10]wFMCommunicate request_size=4 [09:08:10]MH_SAM_APDU [09:08:10]CAPDU: 80 0D 03 02 [09:08:10]Write to MH i2c: E2 08 00 CB 08 80 0D 03 02 00 00 00 00 4E [09:08:10]Write i2c OK [09:08:10]MH_I2C_Read... [09:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:11]Read from MH i2c: E2 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 0B 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 0B 00 CB 08 00 59 03 D2 48 82 54 7F DB 90 00 F5 [09:08:11]RAPDU: 59 03 D2 48 82 54 7F DB 90 00 [09:08:11]wFMCommunicate OK [09:08:11]SAM_PROTO_SignData done [09:08:11]FM_MakeSignedData done [09:08:11]CreateOFDProtocolMessage [09:08:11]wFMCommunicate request_size=4 [09:08:11]MH_SAM_APDU [09:08:11]CAPDU: 80 11 00 00 [09:08:11]Write to MH i2c: E2 08 00 CC 08 80 11 00 00 00 00 00 00 4E [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:11]Read from MH i2c: E2 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 17 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 17 00 CC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A3 [09:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:08:11]wFMCommunicate OK [09:08:11]CreateOFDProtocolMessage done [09:08:11]OFDSenderStorePacket 34195 [09:08:11]StoreOFDPacket docnum=34195 [09:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0A 02 00 00 11 FC 02 02 C1 1B 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7C 4E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 85 00 00 35 04 06 00 9C B2 01 98 E4 3D 59 03 D2 48 82 54 7F DB [09:08:11]CheckFolder [09:08:11]dirname=/storage/ofd_packets [09:08:11]CheckFolder done [09:08:11]ProducePacketName [09:08:11]name=ofd_packets/00034195 [09:08:11]NVStorageSaveData ofd_packets/00034195 [09:08:11]File name is /storage/ofd_packets/00034195 [09:08:11]Write 552 bytes [09:08:11]NVStorageSaveData done [09:08:11]OFDSenderStorePacket done [09:08:11]KKMCreateOFDPacket done [09:08:11]NVStorageSaveData kkm_last_timestamp [09:08:11]File name is /storage/kkm_last_timestamp [09:08:11]Write 4 bytes [09:08:11]NVStorageSaveData done [09:08:11]ExternCall_PrintAddStr [09:08:11]wPrintStart [09:08:11]Write to MH i2c: 01 00 00 CD 08 D5 [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: 01 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: 01 07 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 FF 0F EA [09:08:11]RasterBufferAndPrint [09:08:11]line Счет N : (3)183997 [09:08:11]line ИНН: 02508201610067 [09:08:11]line Контрольно-Кассовый Чек [09:08:11]line ПРОДАЖА [09:08:11]line Товар: 4700000310043 [09:08:11]line Вода Жалалабат 27 1л [09:08:11]line 1.000 * 60.00 [09:08:11]line = 60.00 [09:08:11]line НДС 12% НСП 1% [09:08:11]line > о реализуемом товаре [09:08:11]line Товар: 2000036220012 [09:08:11]line Кофе Капучино XL(GABB TRADE) [09:08:11]line 1.000 * 125.00 [09:08:11]line = 125.00 [09:08:11]line НДС 12% НСП 1% [09:08:11]line > о реализуемом товаре [09:08:11]line Товар: 2000036190018 [09:08:11]line Кофе Американо XL(GABB TRADE) [09:08:11]line 1.000 * 95.00 [09:08:11]line = 95.00 [09:08:11]line НДС 12% НСП 1% [09:08:11]line > о реализуемом товаре [09:08:11]line ИТОГО: 280.00 [09:08:11]line НСП 1% : 2.48 [09:08:11]line НДС 12% : 29.73 [09:08:11]line Наличными: 0.00 [09:08:11]line Безнал.: 280.00 [09:08:11]line Место: АЗС № 120 "Партнер Нефть" [09:08:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:08:11]line СНО: Общий режим [09:08:11]line Чек 17 18.06.2024 09:08 [09:08:11]line Смена: 323 ФФД: 1.0 [09:08:11]line ЗНМ: 0300000172 [09:08:11]line РНМ: 0000000000092786 [09:08:11]line Версия ККМ: 001 [09:08:11]line Платежная система: Бакай Банк [09:08:11]line ФМ: 0000000000875095 [09:08:11]line ФД: 34195 [09:08:11]line ФПД: 172288344908861 [09:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T090812&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34195&fm=172288344908861&tin=02508201610067®Number=0000000000092786&sum=28000 [09:08:11]OFD Sender: Processing packet 34195 [packets to send 8, broken 7] [09:08:11]ProducePacketName [09:08:11]name=ofd_packets/00034195 [09:08:11]OFD Sender: To server: pG, [09:08:11]CommunicateWithHost lk.salyk.kg:30040 [09:08:11]ConnectInit lk.salyk.kg [09:08:11]line 0 [09:08:11]written 0, free lines is 4095 [09:08:11]Connected sock=10 [09: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 35 30 39 35 0A 02 00 00 11 FC 02 02 C1 1B 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7C 4E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 85 00 00 35 04 06 00 9C B2 01 98 E4 3D 59 03 D2 48 82 54 7F DB [09:08:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 15 3D 47 00 D6 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 93 85 00 00 F4 03 04 00 4C F5 70 66 B6 04 01 00 00 D5 14 FB D6 DC 41 AC 78 [09:08:11]CommunicateWithHost err = 0 [09:08:11]CheckOFDResponse [09:08:11]1017 (14) - 77093643461234 [09:08:11]1041 (16) - 0000000000875095 [09:08:11]1040 (4) - 34195 [09:08:11]1012 (4) - 18.06.2024 02:47 [09:08:11]1206 (1) - 0 [09:08:11]OFD Sender: Remove packet 34195 [09:08:11]ProducePacketName [09:08:11]name=ofd_packets/00034195 [09:08:11]NVStorageDeleteData [09:08:12]Write to MH i2c: 01 00 00 05 09 0E [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 07 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 07 00 05 09 00 00 00 00 00 03 0C 24 [09:08:12]RasterBufferAndPrint [09:08:12]line [09:08:12]line [09:08:12]line [09:08:12]line [09:08:12]line [09:08:12]written 0, free lines is 3082 [09:08:12]MH_Cut [09:08:12]Write to MH i2c: D1 01 00 0C 09 01 E7 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: D1 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: D1 01 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: D1 01 00 0C 09 00 E6 [09:08:12]Write to MH i2c: 01 00 00 0D 09 16 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]OFD Sender: No OFD packet to send [09:08:12]*** Cut start [09:08:12]*** Partial cut [09:08:12]*** CUTSNS_PIN = 1 [09:08:13]*** CUTSNS_PIN = 0 [09:08:13]*** Brake cut motor [09:08:13]Read from MH i2c: 01 [09:08:13]MH_I2C_Read... [09:08:13]*** Stop cut motor [09:08:13]*** Cut end [09:08:13]Read from MH i2c: 01 07 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 07 00 0D 09 00 00 00 00 00 FF 0F 2B [09:08:13]process_action close_receipt done [09:08:13]requested_data is exist [09:08:13]produce_requested_data [09:08:13]requested_item fm.sn is exist - process it [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 11 00 00 [09:08:13]Write to MH i2c: E2 08 00 0E 09 80 11 00 00 00 00 00 00 91 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 17 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 17 00 0E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E6 [09:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:08:13]wFMCommunicate OK [09:08:13]requested_item fd.num is exist - process it [09:08:13]SAM_PROTO_GetFieldsCounters [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 13 00 00 [09:08:13]Write to MH i2c: E2 08 00 0F 09 80 13 00 00 00 00 00 00 94 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 62 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 62 00 0F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 93 85 00 00 0E 04 04 00 43 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 4D [09: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 93 85 00 00 0E 04 04 00 43 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 [09:08:13]wFMCommunicate OK [09:08:13]SAM_PROTO_GetFieldsCounters done [09:08:13]requested_item shift.num is exist - process it [09:08:13]requested_item shift.opened is exist - process it [09:08:13]req_shift_opened [09:08:13]FM_GetShiftState [09:08:13]SAM_PROTO_GetShiftState [09:08:13]wFMCommunicate request_size=4 [09:08:13]MH_SAM_APDU [09:08:13]CAPDU: 80 13 01 00 [09:08:13]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:13]Read from MH i2c: E2 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 0E 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E1 [09:08:13]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:08:13]wFMCommunicate OK [09:08:13]SAM_PROTO_GetShiftState done [09:08:13]FM_GetShiftState done [09:08:13]req_shift_opened done [09:08:13]requested_item shift.open_date is exist - process it [09:08:13]req_shift_open_date [09:08:13]req_shift_open_date done [09:08:13]produce_requested_data done [09:08:13]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34195,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:08:13]process_action_free close_receipt [09:08:13]json_value_free [09:08:13]json_value_free done [09:08:13]process_json_proto returns [09:08:13]Send response to host [09:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34195,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:08:13]free response buf [09:08:13]execute_script done [09:08:13]execute_script returns [09:08:13]free content buf [09:08:13]Sock 9.Close socket [09:08:13]Sock 9.Thread stoped [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:51]accept exits with 7 [09:31:51]New connection [09:31:51]New thread 3067293028 created [09:31:51]Thread 3067436388 joined [09:31:51]Waiting for new connection... [09:31:51] Sock 7.Parse request [09:31:51]Sock 7.Check first char [09:31:51]Sock 7.First char is OK [09:31:51]request: POST /json_proto HTTP/1.0 [09:31:51]Method: POST [09:31:51]URL: /json_proto [09:31:51]Method is POST - this is cgi request [09:31:51]url: /json_proto [09:31:51]query_string will be loaded in cgi processing [09:31:51]execute_cgi json_proto POST (null) [09:31:51]execute_cgi path=json_proto method=POST [09:31:51]POST find Content-Length [09:31:51]Host: 172.17.38.134:8080 [09:31:51]Content-Length: 611 [09:31:51]Content-Type: application/json [09:31:51] [09:31:51]POST finish read [09:31:51]Found Content-Length = 611 [09:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183998", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:51]execute_script... [09:31: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 : (3)183998", "tax_sys" : 0, "items" : [ { "code": "48742078", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:51]POST & json_proto [09:31:51]process_json_proto [09:31:51]json parsed OK: [09:31:51]protocol is kg_v1.0 [09:31:51]action value=close_receipt [09:31:51]process_action close_receipt [09:31:51]cmd_close_receipt [09:31:51]MH_GetDate [09:31:51]Write to MH i2c: F0 00 00 11 09 09 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: F0 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: F0 09 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: F0 09 00 11 09 00 0A 54 71 66 13 9C 7C 64 D6 [09:31:51]GetLastDocTimeStamp 1718701692 [09:31:51]current date 1718703114 [09:31:51]FM_GetShiftState [09:31:51]SAM_PROTO_GetShiftState [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 13 01 00 [09:31:51]Write to MH i2c: E2 08 00 12 09 80 13 01 00 00 00 00 00 98 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0E 00 12 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E3 [09:31:51]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_GetShiftState done [09:31:51]FM_GetShiftState done [09:31:51]opened in 1718670230 [09:31:51]opened+sec_in_day 1718756630 [09:31:51]quantity*price = 13000 [09:31:51]sum+1 = 13001 [09:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 18 18.06.2024 09:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34196 ФПД: 135034398841568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093154&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34196&fm=135034398841568&tin=02508201610067®Number=0000000000092786&sum=13000 0 [09:31:52]StoreToDocumentArchive [09:31:52]shift 323 fd 34196 [09:31:52]save to /storage/0323/doc_00034196 [09:31:52]save last doc name /storage/0323/doc_00034196 to /storage/kkm_last_doc_name [09:31:52]save OK [09:31:52]Clear old archive folders... [09:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=263 [09:31:52]tlvbuf is 01A0D220 [09:31:52]SAM_PROTO_ClearQueue [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 09 00 00 [09:31:52]Write to MH i2c: E2 08 00 1F 09 80 09 00 00 00 00 00 00 9A [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]SAM_PROTO_ClearQueue done [09:31:52]KKMCreateOFDPacket [09:31:52]OFDProtocolAddRootSTLVToBuf [09:31:52]FM_MakeSignedData [09:31:52]FM_MakeSignedData [09:31:52]SAM_PROTO_SignData [09:31:52]wFMCommunicate request_size=4 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 01 02 [09:31:52]Write to MH i2c: E2 08 00 20 09 80 0D 01 02 00 00 00 00 A2 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]wFMCommunicate request_size=255 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 02 02 FA 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0A 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 [09:31:52]Write to MH i2c: E2 02 01 21 09 80 0D 02 02 FA 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0A 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 00 00 CD [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:52]Read from MH i2c: E2 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [09:31:52]RAPDU: 90 00 [09:31:52]wFMCommunicate OK [09:31:52]wFMCommunicate request_size=22 [09:31:52]MH_SAM_APDU [09:31:52]CAPDU: 80 0D 02 02 11 04 04 00 94 85 00 00 35 04 06 00 7A D0 25 60 1A E0 [09:31:52]Write to MH i2c: E2 19 00 22 09 80 0D 02 02 11 00 04 04 00 94 85 00 00 35 04 06 00 7A D0 25 60 1A E0 00 00 F0 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 03 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [09:31:53]RAPDU: 90 00 [09:31:53]wFMCommunicate OK [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 0D 03 02 [09:31:53]Write to MH i2c: E2 08 00 23 09 80 0D 03 02 00 00 00 00 A7 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 0B 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 0B 00 23 09 00 74 64 C5 6E 61 B8 F1 F2 90 00 AF [09:31:53]RAPDU: 74 64 C5 6E 61 B8 F1 F2 90 00 [09:31:53]wFMCommunicate OK [09:31:53]SAM_PROTO_SignData done [09:31:53]FM_MakeSignedData done [09:31:53]CreateOFDProtocolMessage [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 11 00 00 [09:31:53]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 17 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 FC [09:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:31:53]wFMCommunicate OK [09:31:53]CreateOFDProtocolMessage done [09:31:53]OFDSenderStorePacket 34196 [09:31:53]StoreOFDPacket docnum=34196 [09:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1B 01 00 00 DA 37 13 01 BE 80 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0A 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 85 00 00 35 04 06 00 7A D0 25 60 1A E0 74 64 C5 6E 61 B8 F1 F2 [09:31:53]CheckFolder [09:31:53]dirname=/storage/ofd_packets [09:31:53]CheckFolder done [09:31:53]ProducePacketName [09:31:53]name=ofd_packets/00034196 [09:31:53]NVStorageSaveData ofd_packets/00034196 [09:31:53]File name is /storage/ofd_packets/00034196 [09:31:53]Write 313 bytes [09:31:53]NVStorageSaveData done [09:31:53]OFDSenderStorePacket done [09:31:53]KKMCreateOFDPacket done [09:31:53]NVStorageSaveData kkm_last_timestamp [09:31:53]File name is /storage/kkm_last_timestamp [09:31:53]Write 4 bytes [09:31:53]NVStorageSaveData done [09:31:53]ExternCall_PrintAddStr [09:31:53]wPrintStart [09:31:53]Write to MH i2c: 01 00 00 25 09 2E [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [09:31:53]RasterBufferAndPrint [09:31:53]line Счет N : (3)183998 [09:31:53]line ИНН: 02508201610067 [09:31:53]line Контрольно-Кассовый Чек [09:31:53]line ПРОДАЖА [09:31:53]line Товар: 48742078 [09:31:53]line Сигареты LD Silver [09:31:53]line 1.000 * 130.00 [09:31:53]line = 130.00 [09:31:53]line НДС 12% НСП 1% [09:31:53]line > о реализуемом товаре [09:31:53]line ИТОГО: 130.00 [09:31:53]line НСП 1% : 1.15 [09:31:53]line НДС 12% : 13.80 [09:31:53]line Наличными: 130.00 [09:31:53]line Безнал.: 0.00 [09:31:53]line Место: АЗС № 120 "Партнер Нефть" [09:31:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:31:53]line СНО: Общий режим [09:31:53]line Чек 18 18.06.2024 09:31 [09:31:53]line Смена: 323 ФФД: 1.0 [09:31:53]line ЗНМ: 0300000172 [09:31:53]line РНМ: 0000000000092786 [09:31:53]line Версия ККМ: 001 [09:31:53]line ФМ: 0000000000875095 [09:31:53]line ФД: 34196 [09:31:53]line ФПД: 135034398841568 [09:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093154&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34196&fm=135034398841568&tin=02508201610067®Number=0000000000092786&sum=13000 [09:31:53]line 0 [09:31:53]OFD Sender: Processing packet 34196 [packets to send 8, broken 7] [09:31:53]ProducePacketName [09:31:53]name=ofd_packets/00034196 [09:31:53]OFD Sender: To server: pG, [09:31:53]CommunicateWithHost lk.salyk.kg:30040 [09:31:53]ConnectInit lk.salyk.kg [09:31:53]written 0, free lines is 4095 [09:31:53]Connected sock=10 [09:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1B 01 00 00 DA 37 13 01 BE 80 5A 03 01 00 03 00 07 01 1E 04 01 00 01 23 04 59 00 8A 04 08 00 34 38 37 34 32 30 37 38 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0A 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 85 00 00 35 04 06 00 7A D0 25 60 1A E0 74 64 C5 6E 61 B8 F1 F2 [09:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C4 B3 47 00 E3 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 94 85 00 00 F4 03 04 00 DA FA 70 66 B6 04 01 00 00 E5 45 85 79 62 E6 5B AB [09:31:53]CommunicateWithHost err = 0 [09:31:53]CheckOFDResponse [09:31:53]1017 (14) - 77093643461234 [09:31:53]1041 (16) - 0000000000875095 [09:31:53]1040 (4) - 34196 [09:31:53]1012 (4) - 18.06.2024 03:11 [09:31:53]1206 (1) - 0 [09:31:53]OFD Sender: Remove packet 34196 [09:31:53]ProducePacketName [09:31:53]name=ofd_packets/00034196 [09:31:53]NVStorageDeleteData [09:31:53]Write to MH i2c: 01 00 00 4D 09 56 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 14 0D 7E [09:31:53]RasterBufferAndPrint [09:31:53]line [09:31:53]line [09:31:53]line [09:31:53]line [09:31:53]line [09:31:53]written 0, free lines is 3356 [09:31:53]MH_Cut [09:31:53]Write to MH i2c: D1 01 00 54 09 01 2F [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: D1 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: D1 01 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: D1 01 00 54 09 00 2E [09:31:53]Write to MH i2c: 01 00 00 55 09 5E [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:54]OFD Sender: No OFD packet to send [09:31:54]*** Cut start [09:31:54]*** Partial cut [09:31:54]*** CUTSNS_PIN = 1 [09:31:54]*** CUTSNS_PIN = 0 [09:31:54]*** Brake cut motor [09:31:55]Read from MH i2c: 01 [09:31:55]MH_I2C_Read... [09:31:55]*** Stop cut motor [09:31:55]*** Cut end [09:31:55]Read from MH i2c: 01 07 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [09:31:55]process_action close_receipt done [09:31:55]requested_data is exist [09:31:55]produce_requested_data [09:31:55]requested_item fm.sn is exist - process it [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 11 00 00 [09:31:55]Write to MH i2c: E2 08 00 56 09 80 11 00 00 00 00 00 00 D9 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 17 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 17 00 56 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2E [09:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:31:55]wFMCommunicate OK [09:31:55]requested_item fd.num is exist - process it [09:31:55]SAM_PROTO_GetFieldsCounters [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 13 00 00 [09:31:55]Write to MH i2c: E2 08 00 57 09 80 13 00 00 00 00 00 00 DC [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 62 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 62 00 57 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 94 85 00 00 0E 04 04 00 43 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 99 [09:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 94 85 00 00 0E 04 04 00 43 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 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_GetFieldsCounters done [09:31:55]requested_item shift.num is exist - process it [09:31:55]requested_item shift.opened is exist - process it [09:31:55]req_shift_opened [09:31:55]FM_GetShiftState [09:31:55]SAM_PROTO_GetShiftState [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 13 01 00 [09:31:55]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 29 [09:31:55]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_GetShiftState done [09:31:55]FM_GetShiftState done [09:31:55]req_shift_opened done [09:31:55]requested_item shift.open_date is exist - process it [09:31:55]req_shift_open_date [09:31:55]req_shift_open_date done [09:31:55]produce_requested_data done [09:31:55]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34196,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:31:55]process_action_free close_receipt [09:31:55]json_value_free [09:31:55]json_value_free done [09:31:55]process_json_proto returns [09:31:55]Send response to host [09:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34196,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:31:55]free response buf [09:31:55]execute_script done [09:31:55]execute_script returns [09:31:55]free content buf [09:31:55]Sock 7.Close socket [09:31:55]Sock 7.Thread stoped [09:31:55]accept exits with 9 [09:31:55]New connection [09:31:55]New thread 3067436388 created [09:31:55]Thread 3067293028 joined [09:31:55]Waiting for new connection... [09:31:55] Sock 9.Parse request [09:31:55]Sock 9.Check first char [09:31:55]Sock 9.First char is OK [09:31:55]request: POST /json_proto HTTP/1.0 [09:31:55]Method: POST [09:31:55]URL: /json_proto [09:31:55]Method is POST - this is cgi request [09:31:55]url: /json_proto [09:31:55]query_string will be loaded in cgi processing [09:31:55]execute_cgi json_proto POST (null) [09:31:55]execute_cgi path=json_proto method=POST [09:31:55]POST find Content-Length [09:31:55]Host: 172.17.38.134:8080 [09:31:55]Content-Length: 682 [09:31:55]Content-Type: application/json [09:31:55] [09:31:55]POST finish read [09:31:55]Found Content-Length = 682 [09:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:55]execute_script... [09:31: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)672497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:55]POST & json_proto [09:31:55]process_json_proto [09:31:55]json parsed OK: [09:31:55]protocol is kg_v1.0 [09:31:55]action value=close_receipt [09:31:55]process_action close_receipt [09:31:55]cmd_close_receipt [09:31:55]MH_GetDate [09:31:55]Write to MH i2c: F0 00 00 59 09 51 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: F0 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: F0 09 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: F0 09 00 59 09 00 0E 54 71 66 13 9C 7C 64 22 [09:31:55]GetLastDocTimeStamp 1718703114 [09:31:55]current date 1718703118 [09:31:55]FM_GetShiftState [09:31:55]SAM_PROTO_GetShiftState [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 13 01 00 [09:31:55]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:55]Read from MH i2c: E2 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 [09:31:55]MH_I2C_Read... [09:31:55]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 2B [09:31:55]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:31:55]wFMCommunicate OK [09:31:55]SAM_PROTO_GetShiftState done [09:31:55]FM_GetShiftState done [09:31:55]opened in 1718670230 [09:31:55]opened+sec_in_day 1718756630 [09:31:55]quantity*price = 40022 [09:31:55]sum+1 = 40023 [09:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 19 18.06.2024 09:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34197 ФПД: 263038282996895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093158&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34197&fm=263038282996895&tin=02508201610067®Number=0000000000092786&sum=40000 [09:31:57]StoreToDocumentArchive [09:31:57]shift 323 fd 34197 [09:31:57]save to /storage/0323/doc_00034197 [09:31:57]save last doc name /storage/0323/doc_00034197 to /storage/kkm_last_doc_name [09:31:57]save OK [09:31:57]Clear old archive folders... [09:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:31:57]tlvbuf is 01A091D0 [09:31:57]SAM_PROTO_ClearQueue [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 09 00 00 [09:31:57]Write to MH i2c: E2 08 00 67 09 80 09 00 00 00 00 00 00 E2 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [09:31:57]RAPDU: 90 00 [09:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_ClearQueue done [09:31:57]KKMCreateOFDPacket [09:31:57]OFDProtocolAddRootSTLVToBuf [09:31:57]FM_MakeSignedData [09:31:57]FM_MakeSignedData [09:31:57]SAM_PROTO_SignData [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 0D 01 02 [09:31:57]Write to MH i2c: E2 08 00 68 09 80 0D 01 02 00 00 00 00 EA [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [09:31:57]RAPDU: 90 00 [09:31:57]wFMCommunicate OK [09:31:57]wFMCommunicate request_size=255 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0E 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 85 00 00 35 04 06 00 [09:31:57]Write to MH i2c: E2 02 01 69 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0E 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 85 00 00 35 04 06 00 00 00 B6 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [09:31:57]RAPDU: 90 00 [09:31:57]wFMCommunicate OK [09:31:57]wFMCommunicate request_size=11 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 0D 02 02 06 EF 3B 5F 6B 9C 9F [09:31:57]Write to MH i2c: E2 0E 00 6A 09 80 0D 02 02 06 00 EF 3B 5F 6B 9C 9F 00 00 28 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [09:31:57]RAPDU: 90 00 [09:31:57]wFMCommunicate OK [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 0D 03 02 [09:31:57]Write to MH i2c: E2 08 00 6B 09 80 0D 03 02 00 00 00 00 EF [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 0B 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 0B 00 6B 09 00 82 4A 2E 9B 5E 55 BF 13 90 00 0A [09:31:57]RAPDU: 82 4A 2E 9B 5E 55 BF 13 90 00 [09:31:57]wFMCommunicate OK [09:31:57]SAM_PROTO_SignData done [09:31:57]FM_MakeSignedData done [09:31:57]CreateOFDProtocolMessage [09:31:57]wFMCommunicate request_size=4 [09:31:57]MH_SAM_APDU [09:31:57]CAPDU: 80 11 00 00 [09:31:57]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:57]Read from MH i2c: E2 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 17 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 44 [09:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:31:57]wFMCommunicate OK [09:31:57]CreateOFDProtocolMessage done [09:31:57]OFDSenderStorePacket 34197 [09:31:57]StoreOFDPacket docnum=34197 [09:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 B0 AC 08 01 20 B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0E 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 85 00 00 35 04 06 00 EF 3B 5F 6B 9C 9F 82 4A 2E 9B 5E 55 BF 13 [09:31:57]CheckFolder [09:31:57]dirname=/storage/ofd_packets [09:31:57]CheckFolder done [09:31:57]ProducePacketName [09:31:57]name=ofd_packets/00034197 [09:31:57]NVStorageSaveData ofd_packets/00034197 [09:31:57]File name is /storage/ofd_packets/00034197 [09:31:57]Write 302 bytes [09:31:57]NVStorageSaveData done [09:31:57]OFDSenderStorePacket done [09:31:57]KKMCreateOFDPacket done [09:31:57]NVStorageSaveData kkm_last_timestamp [09:31:57]File name is /storage/kkm_last_timestamp [09:31:57]Write 4 bytes [09:31:57]NVStorageSaveData done [09:31:57]ExternCall_PrintAddStr [09:31:57]wPrintStart [09:31:57]Write to MH i2c: 01 00 00 6D 09 76 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [09:31:57]RasterBufferAndPrint [09:31:57]line Счет N : (1)672497 [09:31:57]line ИНН: 02508201610067 [09:31:57]line Контрольно-Кассовый Чек [09:31:57]line ПРОДАЖА [09:31:57]line ТРК (МРК, ГНК) : 11 [09:31:57]line Товар: 2710194210 [09:31:57]line ДТ(л)-К-5 [09:31:57]line 5.490 * 72.90 [09:31:57]line = 400.22 [09:31:57]line НДС 12% НСП 1% [09:31:57]line > о реализуемом товаре [09:31:57]line ОКРУГЛЕНИЕ: -0.22 [09:31:57]line ИТОГО: 400.00 [09:31:57]line Внесено: 400.00 [09:31:57]line СДАЧА: 0.00 [09:31:57]line НСП 1% : 3.54 [09:31:57]line НДС 12% : 42.50 [09:31:57]line Наличными: 400.00 [09:31:57]line Безнал.: 0.00 [09:31:57]line Место: АЗС № 120 "Партнер Нефть" [09:31:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:31:57]line СНО: Общий режим [09:31:57]line Чек 19 18.06.2024 09:31 [09:31:57]line Смена: 323 ФФД: 1.0 [09:31:58]line ЗНМ: 0300000172 [09:31:58]line РНМ: 0000000000092786 [09:31:58]line Версия ККМ: 001 [09:31:58]line ФМ: 0000000000875095 [09:31:58]line ФД: 34197 [09:31:58]line ФПД: 263038282996895 [09:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093158&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34197&fm=263038282996895&tin=02508201610067®Number=0000000000092786&sum=40000 [09:31:58]OFD Sender: Processing packet 34197 [packets to send 8, broken 7] [09:31:58]ProducePacketName [09:31:58]name=ofd_packets/00034197 [09:31:58]OFD Sender: To server: pG, [09:31:58]CommunicateWithHost lk.salyk.kg:30040 [09:31:58]ConnectInit lk.salyk.kg [09:31:58]written 0, free lines is 4095 [09:31:58]Connected sock=10 [09:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 B0 AC 08 01 20 B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 0E 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 85 00 00 35 04 06 00 EF 3B 5F 6B 9C 9F 82 4A 2E 9B 5E 55 BF 13 [09:31:58]Write to MH i2c: 01 00 00 98 09 A1 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 07 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 07 00 98 09 00 00 00 00 00 E7 0C 9B [09:31:58]RasterBufferAndPrint [09:31:58]line [09:31:58]line [09:31:58]line [09:31:58]line [09:31:58]line [09:31:58]written 0, free lines is 3315 [09:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 AD C1 47 00 1D 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 95 85 00 00 F4 03 04 00 DF FA 70 66 B6 04 01 00 00 80 F1 5A F4 B7 E1 3D 13 [09:31:58]CommunicateWithHost err = 0 [09:31:58]CheckOFDResponse [09:31:58]1017 (14) - 77093643461234 [09:31:58]1041 (16) - 0000000000875095 [09:31:58]1040 (4) - 34197 [09:31:58]1012 (4) - 18.06.2024 03:11 [09:31:58]1206 (1) - 0 [09:31:58]OFD Sender: Remove packet 34197 [09:31:58]ProducePacketName [09:31:58]name=ofd_packets/00034197 [09:31:58]NVStorageDeleteData [09:31:58]MH_Cut [09:31:58]Write to MH i2c: D1 01 00 9F 09 01 7A [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: D1 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: D1 01 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: D1 01 00 9F 09 00 79 [09:31:58]Write to MH i2c: 01 00 00 A0 09 A9 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:59]OFD Sender: No OFD packet to send [09:31:59]*** Cut start [09:31:59]*** Partial cut [09:31:59]*** CUTSNS_PIN = 1 [09:31:59]*** CUTSNS_PIN = 0 [09:31:59]*** Brake cut motor [09:32:00]Read from MH i2c: 01 [09:32:00]MH_I2C_Read... [09:32:00]*** Stop cut motor [09:32:00]*** Cut end [09:32:00]Read from MH i2c: 01 07 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 FF 0F BE [09:32:00]process_action close_receipt done [09:32:00]requested_data is exist [09:32:00]produce_requested_data [09:32:00]requested_item fm.sn is exist - process it [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 11 00 00 [09:32:00]Write to MH i2c: E2 08 00 A1 09 80 11 00 00 00 00 00 00 24 [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 17 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 17 00 A1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 79 [09:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:32:00]wFMCommunicate OK [09:32:00]requested_item fd.num is exist - process it [09:32:00]SAM_PROTO_GetFieldsCounters [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 13 00 00 [09:32:00]Write to MH i2c: E2 08 00 A2 09 80 13 00 00 00 00 00 00 27 [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 62 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 62 00 A2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 95 85 00 00 0E 04 04 00 43 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 E8 [09:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 95 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:00]wFMCommunicate OK [09:32:00]SAM_PROTO_GetFieldsCounters done [09:32:00]requested_item shift.num is exist - process it [09:32:00]requested_item shift.opened is exist - process it [09:32:00]req_shift_opened [09:32:00]FM_GetShiftState [09:32:00]SAM_PROTO_GetShiftState [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 13 01 00 [09:32:00]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 0E 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 74 [09:32:00]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:32:00]wFMCommunicate OK [09:32:00]SAM_PROTO_GetShiftState done [09:32:00]FM_GetShiftState done [09:32:00]req_shift_opened done [09:32:00]requested_item shift.open_date is exist - process it [09:32:00]req_shift_open_date [09:32:00]req_shift_open_date done [09:32:00]produce_requested_data done [09:32:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34197,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:32:00]process_action_free close_receipt [09:32:00]json_value_free [09:32:00]json_value_free done [09:32:00]process_json_proto returns [09:32:00]Send response to host [09:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34197,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:32:00]free response buf [09:32:00]execute_script done [09:32:00]execute_script returns [09:32:00]free content buf [09:32:00]Sock 9.Close socket [09:32:00]Sock 9.Thread stoped [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:56]accept exits with 7 [09:32:56]New connection [09:32:56]New thread 3067293028 created [09:32:56]Thread 3067436388 joined [09:32:56]Waiting for new connection... [09:32:56] Sock 7.Parse request [09:32:56]Sock 7.Check first char [09:32:56]Sock 7.First char is OK [09:32:56]request: POST /json_proto HTTP/1.0 [09:32:56]Method: POST [09:32:56]URL: /json_proto [09:32:56]Method is POST - this is cgi request [09:32:56]url: /json_proto [09:32:56]query_string will be loaded in cgi processing [09:32:56]execute_cgi json_proto POST (null) [09:32:56]execute_cgi path=json_proto method=POST [09:32:56]POST find Content-Length [09:32:56]Host: 172.17.38.134:8080 [09:32:56]Content-Length: 682 [09:32:56]Content-Type: application/json [09:32:56] [09:32:56]POST finish read [09:32:56]Found Content-Length = 682 [09:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:56]execute_script... [09:32: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)672498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:56]POST & json_proto [09:32:56]process_json_proto [09:32:56]json parsed OK: [09:32:56]protocol is kg_v1.0 [09:32:56]action value=close_receipt [09:32:56]process_action close_receipt [09:32:56]cmd_close_receipt [09:32:56]MH_GetDate [09:32:56]Write to MH i2c: F0 00 00 A4 09 9C [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: F0 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: F0 09 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: F0 09 00 A4 09 00 4B 54 71 66 13 9C 7C 64 AA [09:32:56]GetLastDocTimeStamp 1718703118 [09:32:56]current date 1718703179 [09:32:56]FM_GetShiftState [09:32:56]SAM_PROTO_GetShiftState [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 13 01 00 [09:32:56]Write to MH i2c: E2 08 00 A5 09 80 13 01 00 00 00 00 00 2B [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 0E 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 0E 00 A5 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 76 [09:32:56]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:32:56]wFMCommunicate OK [09:32:56]SAM_PROTO_GetShiftState done [09:32:56]FM_GetShiftState done [09:32:56]opened in 1718670230 [09:32:56]opened+sec_in_day 1718756630 [09:32:56]quantity*price = 100064 [09:32:56]sum+1 = 100066 [09:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 18.06.2024 09:32 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34198 ФПД: 272888386710088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093259&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34198&fm=272888386710088&tin=02508201610067®Number=0000000000092786&sum=100000 [09:32:57]StoreToDocumentArchive [09:32:57]shift 323 fd 34198 [09:32:57]save to /storage/0323/doc_00034198 [09:32:57]save last doc name /storage/0323/doc_00034198 to /storage/kkm_last_doc_name [09:32:57]save OK [09:32:57]Clear old archive folders... [09:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:57]tlvbuf is 01A2A900 [09:32:57]SAM_PROTO_ClearQueue [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 09 00 00 [09:32:57]Write to MH i2c: E2 08 00 B2 09 80 09 00 00 00 00 00 00 2D [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 03 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [09:32:57]RAPDU: 90 00 [09:32:57]wFMCommunicate OK [09:32:57]SAM_PROTO_ClearQueue done [09:32:57]KKMCreateOFDPacket [09:32:57]OFDProtocolAddRootSTLVToBuf [09:32:57]FM_MakeSignedData [09:32:57]FM_MakeSignedData [09:32:57]SAM_PROTO_SignData [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 0D 01 02 [09:32:57]Write to MH i2c: E2 08 00 B3 09 80 0D 01 02 00 00 00 00 35 [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 03 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [09:32:57]RAPDU: 90 00 [09:32:57]wFMCommunicate OK [09:32:57]wFMCommunicate request_size=255 [09:32:57]MH_SAM_APDU [09:32: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 85 00 00 35 04 06 00 F8 [09:32:57]Write to MH i2c: E2 02 01 B4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 85 00 00 35 04 06 00 F8 00 00 23 [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 03 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [09:32:58]RAPDU: 90 00 [09:32:58]wFMCommunicate OK [09:32:58]wFMCommunicate request_size=10 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 0D 02 02 05 30 C7 5A 6A 48 [09:32:58]Write to MH i2c: E2 0D 00 B5 09 80 0D 02 02 05 00 30 C7 5A 6A 48 00 00 45 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 03 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [09:32:58]RAPDU: 90 00 [09:32:58]wFMCommunicate OK [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 0D 03 02 [09:32:58]Write to MH i2c: E2 08 00 B6 09 80 0D 03 02 00 00 00 00 3A [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 0B 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 0B 00 B6 09 00 3F 7B 54 64 B1 AE 0F 0F 90 00 2A [09:32:58]RAPDU: 3F 7B 54 64 B1 AE 0F 0F 90 00 [09:32:58]wFMCommunicate OK [09:32:58]SAM_PROTO_SignData done [09:32:58]FM_MakeSignedData done [09:32:58]CreateOFDProtocolMessage [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 11 00 00 [09:32:58]Write to MH i2c: E2 08 00 B7 09 80 11 00 00 00 00 00 00 3A [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 17 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 17 00 B7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8F [09:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:32:58]wFMCommunicate OK [09:32:58]CreateOFDProtocolMessage done [09:32:58]OFDSenderStorePacket 34198 [09:32:58]StoreOFDPacket docnum=34198 [09:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 EF 86 07 01 19 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 85 00 00 35 04 06 00 F8 30 C7 5A 6A 48 3F 7B 54 64 B1 AE 0F 0F [09:32:58]CheckFolder [09:32:58]dirname=/storage/ofd_packets [09:32:58]CheckFolder done [09:32:58]ProducePacketName [09:32:58]name=ofd_packets/00034198 [09:32:58]NVStorageSaveData ofd_packets/00034198 [09:32:58]File name is /storage/ofd_packets/00034198 [09:32:58]Write 301 bytes [09:32:58]NVStorageSaveData done [09:32:58]OFDSenderStorePacket done [09:32:58]KKMCreateOFDPacket done [09:32:58]NVStorageSaveData kkm_last_timestamp [09:32:58]File name is /storage/kkm_last_timestamp [09:32:58]Write 4 bytes [09:32:58]NVStorageSaveData done [09:32:58]ExternCall_PrintAddStr [09:32:58]wPrintStart [09:32:58]Write to MH i2c: 01 00 00 B8 09 C1 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 07 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [09:32:58]RasterBufferAndPrint [09:32:58]line Счет N : (1)672498 [09:32:58]line ИНН: 02508201610067 [09:32:58]line Контрольно-Кассовый Чек [09:32:58]line ПРОДАЖА [09:32:58]line ТРК (МРК, ГНК) : 42 [09:32:58]line Товар: 2710124130 [09:32:58]line Аи-92-К-5 [09:32:58]line 15.070 * 66.40 [09:32:58]line = 1000.65 [09:32:58]line НДС 12% НСП 1% [09:32:58]line > о реализуемом товаре [09:32:58]line ОКРУГЛЕНИЕ: -0.65 [09:32:58]line ИТОГО: 1000.00 [09:32:58]line Внесено: 1000.00 [09:32:58]line СДАЧА: 0.00 [09:32:58]line НСП 1% : 8.85 [09:32:58]line НДС 12% : 106.26 [09:32:58]line Наличными: 1000.00 [09:32:58]line Безнал.: 0.00 [09:32:58]line Место: АЗС № 120 "Партнер Нефть" [09:32:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:32:58]line СНО: Общий режим [09:32:58]line Чек 20 18.06.2024 09:32 [09:32:58]line Смена: 323 ФФД: 1.0 [09:32:58]line ЗНМ: 0300000172 [09:32:58]line РНМ: 0000000000092786 [09:32:58]line Версия ККМ: 001 [09:32:58]line ФМ: 0000000000875095 [09:32:58]line ФД: 34198 [09:32:58]line ФПД: 272888386710088 [09:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T093259&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34198&fm=272888386710088&tin=02508201610067®Number=0000000000092786&sum=100000 [09:32:58]OFD Sender: Processing packet 34198 [packets to send 8, broken 7] [09:32:58]ProducePacketName [09:32:58]name=ofd_packets/00034198 [09:32:58]OFD Sender: To server: pG, [09:32:58]CommunicateWithHost lk.salyk.kg:30040 [09:32:58]ConnectInit lk.salyk.kg [09:32:58]written 0, free lines is 4095 [09:32:58]Connected sock=10 [09:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 EF 86 07 01 19 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4B 54 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 85 00 00 35 04 06 00 F8 30 C7 5A 6A 48 3F 7B 54 64 B1 AE 0F 0F [09:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 9C 7B 47 00 D9 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 96 85 00 00 F4 03 04 00 1B FB 70 66 B6 04 01 00 00 DD 8D AF B5 CE 9B 32 BA [09:32:58]CommunicateWithHost err = 0 [09:32:58]CheckOFDResponse [09:32:58]1017 (14) - 77093643461234 [09:32:58]1041 (16) - 0000000000875095 [09:32:58]1040 (4) - 34198 [09:32:58]1012 (4) - 18.06.2024 03:12 [09:32:58]1206 (1) - 0 [09:32:58]OFD Sender: Remove packet 34198 [09:32:58]ProducePacketName [09:32:58]name=ofd_packets/00034198 [09:32:58]NVStorageDeleteData [09:32:58]Write to MH i2c: 01 00 00 E3 09 EC [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 07 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 E4 0C E3 [09:32:58]RasterBufferAndPrint [09:32:58]line [09:32:58]line [09:32:58]line [09:32:58]line [09:32:58]line [09:32:58]written 0, free lines is 3306 [09:32:59]MH_Cut [09:32:59]Write to MH i2c: D1 01 00 EA 09 01 C5 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: D1 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: D1 01 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: D1 01 00 EA 09 00 C4 [09:32:59]Write to MH i2c: 01 00 00 EB 09 F4 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]OFD Sender: No OFD packet to send [09:32:59]*** Cut start [09:32:59]*** Partial cut [09:32:59]*** CUTSNS_PIN = 1 [09:32:59]*** CUTSNS_PIN = 0 [09:33:00]*** Brake cut motor [09:33:00]Read from MH i2c: 01 [09:33:00]MH_I2C_Read... [09:33:00]*** Stop cut motor [09:33:00]*** Cut end [09:33:00]Read from MH i2c: 01 07 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [09:33:00]process_action close_receipt done [09:33:00]requested_data is exist [09:33:00]produce_requested_data [09:33:00]requested_item fm.sn is exist - process it [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 11 00 00 [09:33:00]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 17 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C4 [09:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:33:00]wFMCommunicate OK [09:33:00]requested_item fd.num is exist - process it [09:33:00]SAM_PROTO_GetFieldsCounters [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 13 00 00 [09:33:00]Write to MH i2c: E2 08 00 ED 09 80 13 00 00 00 00 00 00 72 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 62 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 62 00 ED 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 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 37 [09:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:00]wFMCommunicate OK [09:33:00]SAM_PROTO_GetFieldsCounters done [09:33:00]requested_item shift.num is exist - process it [09:33:00]requested_item shift.opened is exist - process it [09:33:00]req_shift_opened [09:33:00]FM_GetShiftState [09:33:00]SAM_PROTO_GetShiftState [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 13 01 00 [09:33:00]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 0E 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 BF [09:33:00]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:33:00]wFMCommunicate OK [09:33:00]SAM_PROTO_GetShiftState done [09:33:00]FM_GetShiftState done [09:33:00]req_shift_opened done [09:33:00]requested_item shift.open_date is exist - process it [09:33:00]req_shift_open_date [09:33:00]req_shift_open_date done [09:33:00]produce_requested_data done [09:33:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:33:00]process_action_free close_receipt [09:33:00]json_value_free [09:33:00]json_value_free done [09:33:00]process_json_proto returns [09:33:00]Send response to host [09:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:33:00]free response buf [09:33:00]execute_script done [09:33:00]execute_script returns [09:33:00]free content buf [09:33:00]Sock 7.Close socket [09:33:00]Sock 7.Thread stoped [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]accept exits with 9 [09:36:59]New connection [09:36:59]New thread 3067436388 created [09:36:59]Thread 3067293028 joined [09:36:59]Waiting for new connection... [09:36:59] Sock 9.Parse request [09:36:59]Sock 9.Check first char [09:36:59]Sock 9.First char is OK [09:36:59]request: POST /json_proto HTTP/1.0 [09:36:59]Method: POST [09:36:59]URL: /json_proto [09:36:59]Method is POST - this is cgi request [09:36:59]url: /json_proto [09:36:59]query_string will be loaded in cgi processing [09:36:59]execute_cgi json_proto POST (null) [09:36:59]execute_cgi path=json_proto method=POST [09:36:59]POST find Content-Length [09:36:59]Host: 172.17.38.134:8080 [09:36:59]Content-Length: 1194 [09:36:59]Content-Type: application/json [09:36:59] [09:36:59]POST finish read [09:36:59]Found Content-Length = 1194 [09:36: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672501\u000A18.06.2024 09:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:59]execute_script... [09:36: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672501\u000A18.06.2024 09:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:59]POST & json_proto [09:36:59]process_json_proto [09:36:59]json parsed OK: [09:36:59]protocol is kg_v1.0 [09:36:59]action value=print_text [09:36:59]process_action print_text [09:36:59]cmd_print_text [09:36:59]ExternCall_PrintAddStr [09:36:59]wPrintStart [09:36:59]Write to MH i2c: 01 00 00 EF 09 F8 [09:36:59]Write i2c OK [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: 01 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: 01 07 00 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: 01 07 00 EF 09 00 00 00 00 00 FF 0F 0D [09:36:59]RasterBufferAndPrint [09:36:59]line *****ТОВАРНЫЙ ЧЕК***** [09:36:59]line АЗС 120 [09:36:59]line Партнер нефть [09:36:59]line 02508201610067 [09:36:59]line Кассир : Асанбаев Н. [09:36:59]line Счет N : (1)672501 [09:36:59]line 18.06.2024 09:15 [09:36:59]line ПРОДАЖА [09:36:59]line ТРК (МРК, ГНК): 42 [09:36:59]line Вид ГСМ : 2710124130 [09:36:59]line Аи-92-К-5 [09:36:59]line 15.000 x 66.40 [09:36:59]line ИТОГ: 996.00 [09:36:59]line Тип оплаты: Талоны: Топливная Карта [09:36:59]line 00562 [09:36:59]line ______________________ [09:36:59]line (подпись) [09:36:59]written 0, free lines is 4095 [09:36:59]OFD Sender: No OFD packet to send [09:36:59]Write to MH i2c: 01 00 00 03 0A 0D [09:36:59]Write i2c OK [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: 01 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: 01 07 00 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 11 0E 33 [09:36:59]RasterBufferAndPrint [09:36:59]line [09:36:59]line [09:36:59]line [09:36:59]line [09:36:59]line [09:36:59]written 0, free lines is 3602 [09:36:59]MH_Cut [09:36:59]Write to MH i2c: D1 01 00 0A 0A 01 E6 [09:36:59]Write i2c OK [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: D1 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: D1 01 00 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: D1 01 00 0A 0A 00 E5 [09:36:59]Write to MH i2c: 01 00 00 0B 0A 15 [09:36:59]Write i2c OK [09:36:59]MH_I2C_Read... [09:37:00]*** Cut start [09:37:00]*** Partial cut [09:37:00]*** CUTSNS_PIN = 1 [09:37:00]*** CUTSNS_PIN = 0 [09:37:00]*** Brake cut motor [09:37:00]Read from MH i2c: 01 [09:37:00]MH_I2C_Read... [09:37:00]*** Stop cut motor [09:37:00]*** Cut end [09:37:00]Read from MH i2c: 01 07 00 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [09:37:00]process_action print_text done [09:37:00]requested_data is exist [09:37:00]produce_requested_data [09:37:00]requested_item fm.sn is exist - process it [09:37:00]wFMCommunicate request_size=4 [09:37:00]MH_SAM_APDU [09:37:00]CAPDU: 80 11 00 00 [09:37:00]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [09:37:00]Write i2c OK [09:37:00]MH_I2C_Read... [09:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:00]Read from MH i2c: E2 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 17 00 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E5 [09:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:37:00]wFMCommunicate OK [09:37:00]requested_item fd.num is exist - process it [09:37:00]SAM_PROTO_GetFieldsCounters [09:37:00]wFMCommunicate request_size=4 [09:37:00]MH_SAM_APDU [09:37:00]CAPDU: 80 13 00 00 [09:37:00]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [09:37:00]Write i2c OK [09:37:00]MH_I2C_Read... [09:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:00]Read from MH i2c: E2 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 62 00 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 62 00 0D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 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 58 [09:37:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:00]wFMCommunicate OK [09:37:00]SAM_PROTO_GetFieldsCounters done [09:37:00]requested_item shift.num is exist - process it [09:37:00]requested_item shift.opened is exist - process it [09:37:00]req_shift_opened [09:37:00]FM_GetShiftState [09:37:00]SAM_PROTO_GetShiftState [09:37:00]wFMCommunicate request_size=4 [09:37:00]MH_SAM_APDU [09:37:00]CAPDU: 80 13 01 00 [09:37:00]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [09:37:00]Write i2c OK [09:37:00]MH_I2C_Read... [09:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:00]Read from MH i2c: E2 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 0E 00 [09:37:00]MH_I2C_Read... [09:37:00]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E0 [09:37:00]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:37:00]wFMCommunicate OK [09:37:00]SAM_PROTO_GetShiftState done [09:37:00]FM_GetShiftState done [09:37:00]req_shift_opened done [09:37:00]requested_item shift.open_date is exist - process it [09:37:00]req_shift_open_date [09:37:00]req_shift_open_date done [09:37:00]produce_requested_data done [09:37:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:37:00]process_action_free print_text [09:37:00]json_value_free [09:37:00]json_value_free done [09:37:00]process_json_proto returns [09:37:00]Send response to host [09:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:37:00]free response buf [09:37:00]execute_script done [09:37:00]execute_script returns [09:37:00]free content buf [09:37:00]Sock 9.Close socket [09:37:00]Sock 9.Thread stoped [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:11]accept exits with 7 [09:38:11]New connection [09:38:11]New thread 3067293028 created [09:38:11]Thread 3067436388 joined [09:38:11]Waiting for new connection... [09:38:11] Sock 7.Parse request [09:38:11]Sock 7.Check first char [09:38:11]Sock 7.First char is OK [09:38:11]request: POST /json_proto HTTP/1.0 [09:38:11]Method: POST [09:38:11]URL: /json_proto [09:38:11]Method is POST - this is cgi request [09:38:11]url: /json_proto [09:38:11]query_string will be loaded in cgi processing [09:38:11]execute_cgi json_proto POST (null) [09:38:11]execute_cgi path=json_proto method=POST [09:38:11]POST find Content-Length [09:38:11]Host: 172.17.38.134:8080 [09:38:11]Content-Length: 1200 [09:38:11]Content-Type: application/json [09:38:11] [09:38:11]POST finish read [09:38:11]Found Content-Length = 1200 [09:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672499\u000A18.06.2024 09:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 56.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4082.40\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:11]execute_script... [09:38:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672499\u000A18.06.2024 09:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 56.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4082.40\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:11]POST & json_proto [09:38:11]process_json_proto [09:38:11]json parsed OK: [09:38:11]protocol is kg_v1.0 [09:38:11]action value=print_text [09:38:11]process_action print_text [09:38:11]cmd_print_text [09:38:11]ExternCall_PrintAddStr [09:38:11]wPrintStart [09:38:11]Write to MH i2c: 01 00 00 0F 0A 19 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [09:38:11]RasterBufferAndPrint [09:38:11]line *****ТОВАРНЫЙ ЧЕК***** [09:38:11]line АЗС 120 [09:38:11]line Партнер нефть [09:38:11]line 02508201610067 [09:38:11]line Кассир : Асанбаев Н. [09:38:11]line Счет N : (1)672499 [09:38:11]line 18.06.2024 09:16 [09:38:11]line ПРОДАЖА [09:38:11]line ТРК (МРК, ГНК): 21 [09:38:11]line Вид ГСМ : 2710194210 [09:38:11]line ДТ(л)-К-5 [09:38:11]line 56.000 x 72.90 [09:38:11]line ИТОГ: 4082.40 [09:38:11]line Тип оплаты: Талоны: Топливная Карта [09:38:11]line 00562 [09:38:11]line ______________________ [09:38:11]line (подпись) [09:38:11]written 0, free lines is 4095 [09:38:11]Write to MH i2c: 01 00 00 23 0A 2D [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 11 0E 53 [09:38:11]RasterBufferAndPrint [09:38:11]line [09:38:11]line [09:38:11]line [09:38:11]line [09:38:11]line [09:38:11]written 0, free lines is 3603 [09:38:11]MH_Cut [09:38:11]Write to MH i2c: D1 01 00 2A 0A 01 06 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: D1 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: D1 01 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: D1 01 00 2A 0A 00 05 [09:38:11]Write to MH i2c: 01 00 00 2B 0A 35 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** Cut start [09:38:11]*** Partial cut [09:38:11]*** CUTSNS_PIN = 1 [09:38:12]*** CUTSNS_PIN = 0 [09:38:12]*** Brake cut motor [09:38:12]Read from MH i2c: 01 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 07 00 [09:38:12]MH_I2C_Read... [09:38:12]*** Stop cut motor [09:38:12]*** Cut end [09:38:12]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 FF 0F 4A [09:38:12]process_action print_text done [09:38:12]requested_data is exist [09:38:12]produce_requested_data [09:38:12]requested_item fm.sn is exist - process it [09:38:12]wFMCommunicate request_size=4 [09:38:12]MH_SAM_APDU [09:38:12]CAPDU: 80 11 00 00 [09:38:12]Write to MH i2c: E2 08 00 2C 0A 80 11 00 00 00 00 00 00 B0 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:12]Read from MH i2c: E2 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 17 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 17 00 2C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 05 [09:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:38:12]wFMCommunicate OK [09:38:12]requested_item fd.num is exist - process it [09:38:12]SAM_PROTO_GetFieldsCounters [09:38:12]wFMCommunicate request_size=4 [09:38:12]MH_SAM_APDU [09:38:12]CAPDU: 80 13 00 00 [09:38:12]Write to MH i2c: E2 08 00 2D 0A 80 13 00 00 00 00 00 00 B3 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:12]Read from MH i2c: E2 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 62 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 62 00 2D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 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 78 [09:38:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:12]wFMCommunicate OK [09:38:12]SAM_PROTO_GetFieldsCounters done [09:38:12]requested_item shift.num is exist - process it [09:38:12]requested_item shift.opened is exist - process it [09:38:12]req_shift_opened [09:38:12]FM_GetShiftState [09:38:12]SAM_PROTO_GetShiftState [09:38:12]wFMCommunicate request_size=4 [09:38:12]MH_SAM_APDU [09:38:12]CAPDU: 80 13 01 00 [09:38:12]Write to MH i2c: E2 08 00 2E 0A 80 13 01 00 00 00 00 00 B5 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:12]Read from MH i2c: E2 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 0E 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: E2 0E 00 2E 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 00 [09:38:12]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:38:12]wFMCommunicate OK [09:38:12]SAM_PROTO_GetShiftState done [09:38:12]FM_GetShiftState done [09:38:12]req_shift_opened done [09:38:12]requested_item shift.open_date is exist - process it [09:38:12]req_shift_open_date [09:38:12]req_shift_open_date done [09:38:12]produce_requested_data done [09:38:12]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:38:12]process_action_free print_text [09:38:12]json_value_free [09:38:12]json_value_free done [09:38:12]process_json_proto returns [09:38:12]Send response to host [09:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:38:12]free response buf [09:38:12]execute_script done [09:38:12]execute_script returns [09:38:12]free content buf [09:38:12]Sock 7.Close socket [09:38:12]Sock 7.Thread stoped [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:16]accept exits with 9 [09:43:16]New connection [09:43:16]New thread 3067436388 created [09:43:16]Thread 3067293028 joined [09:43:16]Waiting for new connection... [09:43:16] Sock 9.Parse request [09:43:16]Sock 9.Check first char [09:43:16]Sock 9.First char is OK [09:43:16]request: POST /json_proto HTTP/1.0 [09:43:16]Method: POST [09:43:16]URL: /json_proto [09:43:16]Method is POST - this is cgi request [09:43:16]url: /json_proto [09:43:16]query_string will be loaded in cgi processing [09:43:16]execute_cgi json_proto POST (null) [09:43:16]execute_cgi path=json_proto method=POST [09:43:16]POST find Content-Length [09:43:16]Host: 172.17.38.134:8080 [09:43:16]Content-Length: 1200 [09:43:16]Content-Type: application/json [09:43:16] [09:43:16]POST finish read [09:43:16]Found Content-Length = 1200 [09:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672504\u000A18.06.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:16]execute_script... [09:43:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672504\u000A18.06.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:16]POST & json_proto [09:43:16]process_json_proto [09:43:16]json parsed OK: [09:43:16]protocol is kg_v1.0 [09:43:16]action value=print_text [09:43:16]process_action print_text [09:43:16]cmd_print_text [09:43:16]ExternCall_PrintAddStr [09:43:16]wPrintStart [09:43:16]Write to MH i2c: 01 00 00 2F 0A 39 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: 01 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: 01 07 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [09:43:16]RasterBufferAndPrint [09:43:16]line *****ТОВАРНЫЙ ЧЕК***** [09:43:16]line АЗС 120 [09:43:16]line Партнер нефть [09:43:16]line 02508201610067 [09:43:16]line Кассир : Асанбаев Н. [09:43:16]line Счет N : (1)672504 [09:43:16]line 18.06.2024 09:21 [09:43:16]line ПРОДАЖА [09:43:16]line ТРК (МРК, ГНК): 21 [09:43:16]line Вид ГСМ : 2710194210 [09:43:16]line ДТ(л)-К-5 [09:43:16]line 30.000 x 72.90 [09:43:16]line ИТОГ: 2187.00 [09:43:16]line Тип оплаты: Талоны: Топливная Карта [09:43:16]line 00562 [09:43:16]line ______________________ [09:43:16]line (подпись) [09:43:16]written 0, free lines is 4095 [09:43:17]Write to MH i2c: 01 00 00 43 0A 4D [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 07 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 07 00 43 0A 00 00 00 00 00 11 0E 73 [09:43:17]RasterBufferAndPrint [09:43:17]line [09:43:17]line [09:43:17]line [09:43:17]line [09:43:17]line [09:43:17]written 0, free lines is 3603 [09:43:17]MH_Cut [09:43:17]Write to MH i2c: D1 01 00 4A 0A 01 26 [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: D1 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: D1 01 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: D1 01 00 4A 0A 00 25 [09:43:17]Write to MH i2c: 01 00 00 4B 0A 55 [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]*** Cut start [09:43:17]*** Partial cut [09:43:17]*** CUTSNS_PIN = 1 [09:43:17]*** CUTSNS_PIN = 0 [09:43:17]*** Brake cut motor [09:43:18]Read from MH i2c: 01 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: 01 07 00 [09:43:18]MH_I2C_Read... [09:43:18]*** Stop cut motor [09:43:18]*** Cut end [09:43:18]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 FF 0F 6A [09:43:18]process_action print_text done [09:43:18]requested_data is exist [09:43:18]produce_requested_data [09:43:18]requested_item fm.sn is exist - process it [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 11 00 00 [09:43:18]Write to MH i2c: E2 08 00 4C 0A 80 11 00 00 00 00 00 00 D0 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 17 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 17 00 4C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 25 [09:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:43:18]wFMCommunicate OK [09:43:18]requested_item fd.num is exist - process it [09:43:18]SAM_PROTO_GetFieldsCounters [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 13 00 00 [09:43:18]Write to MH i2c: E2 08 00 4D 0A 80 13 00 00 00 00 00 00 D3 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 62 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 62 00 4D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 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 98 [09:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:18]wFMCommunicate OK [09:43:18]SAM_PROTO_GetFieldsCounters done [09:43:18]requested_item shift.num is exist - process it [09:43:18]requested_item shift.opened is exist - process it [09:43:18]req_shift_opened [09:43:18]FM_GetShiftState [09:43:18]SAM_PROTO_GetShiftState [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 13 01 00 [09:43:18]Write to MH i2c: E2 08 00 4E 0A 80 13 01 00 00 00 00 00 D5 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 0E 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 0E 00 4E 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 20 [09:43:18]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:43:18]wFMCommunicate OK [09:43:18]SAM_PROTO_GetShiftState done [09:43:18]FM_GetShiftState done [09:43:18]req_shift_opened done [09:43:18]requested_item shift.open_date is exist - process it [09:43:18]req_shift_open_date [09:43:18]req_shift_open_date done [09:43:18]produce_requested_data done [09:43:18]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:43:18]process_action_free print_text [09:43:18]json_value_free [09:43:18]json_value_free done [09:43:18]process_json_proto returns [09:43:18]Send response to host [09:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:43:18]free response buf [09:43:18]execute_script done [09:43:18]execute_script returns [09:43:18]free content buf [09:43:18]Sock 9.Close socket [09:43:18]Sock 9.Thread stoped [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:38]accept exits with 7 [09:43:38]New connection [09:43:38]New thread 3067293028 created [09:43:38]Thread 3067436388 joined [09:43:38]Waiting for new connection... [09:43:38] Sock 7.Parse request [09:43:38]Sock 7.Check first char [09:43:38]Sock 7.First char is OK [09:43:38]request: POST /json_proto HTTP/1.0 [09:43:38]Method: POST [09:43:38]URL: /json_proto [09:43:38]Method is POST - this is cgi request [09:43:38]url: /json_proto [09:43:38]query_string will be loaded in cgi processing [09:43:38]execute_cgi json_proto POST (null) [09:43:38]execute_cgi path=json_proto method=POST [09:43:38]POST find Content-Length [09:43:38]Host: 172.17.38.134:8080 [09:43:38]Content-Length: 1200 [09:43:38]Content-Type: application/json [09:43:38] [09:43:38]POST finish read [09:43:38]Found Content-Length = 1200 [09:43: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672500\u000A18.06.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 81.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5904.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:38]execute_script... [09:43: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672500\u000A18.06.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 81.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5904.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:38]POST & json_proto [09:43:38]process_json_proto [09:43:38]json parsed OK: [09:43:38]protocol is kg_v1.0 [09:43:38]action value=print_text [09:43:38]process_action print_text [09:43:38]cmd_print_text [09:43:38]ExternCall_PrintAddStr [09:43:38]wPrintStart [09:43:38]Write to MH i2c: 01 00 00 4F 0A 59 [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 FF 0F 6E [09:43:38]RasterBufferAndPrint [09:43:38]line *****ТОВАРНЫЙ ЧЕК***** [09:43:38]line АЗС 120 [09:43:38]line Партнер нефть [09:43:38]line 02508201610067 [09:43:38]line Кассир : Асанбаев Н. [09:43:38]line Счет N : (1)672500 [09:43:38]line 18.06.2024 09:22 [09:43:38]line ПРОДАЖА [09:43:38]line ТРК (МРК, ГНК): 11 [09:43:38]line Вид ГСМ : 2710194210 [09:43:38]line ДТ(л)-К-5 [09:43:38]line 81.000 x 72.90 [09:43:38]line ИТОГ: 5904.90 [09:43:38]line Тип оплаты: Талоны: Топливная Карта [09:43:38]line 00562 [09:43:38]line ______________________ [09:43:38]line (подпись) [09:43:38]written 0, free lines is 4095 [09:43:38]Write to MH i2c: 01 00 00 63 0A 6D [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 11 0E 93 [09:43:38]RasterBufferAndPrint [09:43:38]line [09:43:38]line [09:43:38]line [09:43:38]line [09:43:38]line [09:43:38]written 0, free lines is 3602 [09:43:38]MH_Cut [09:43:38]Write to MH i2c: D1 01 00 6A 0A 01 46 [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: D1 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: D1 01 00 [09:43:38]MH_I2C_Read... [09:43:38]Read from MH i2c: D1 01 00 6A 0A 00 45 [09:43:38]Write to MH i2c: 01 00 00 6B 0A 75 [09:43:38]Write i2c OK [09:43:38]MH_I2C_Read... [09:43:38]*** Cut start [09:43:38]*** Partial cut [09:43:38]*** CUTSNS_PIN = 1 [09:43:38]*** CUTSNS_PIN = 0 [09:43:39]*** Brake cut motor [09:43:39]Read from MH i2c: 01 [09:43:39]MH_I2C_Read... [09:43:39]*** Stop cut motor [09:43:39]*** Cut end [09:43:39]Read from MH i2c: 01 07 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [09:43:39]process_action print_text done [09:43:39]requested_data is exist [09:43:39]produce_requested_data [09:43:39]requested_item fm.sn is exist - process it [09:43:39]wFMCommunicate request_size=4 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 11 00 00 [09:43:39]Write to MH i2c: E2 08 00 6C 0A 80 11 00 00 00 00 00 00 F0 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 17 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 17 00 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 45 [09:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:43:39]wFMCommunicate OK [09:43:39]requested_item fd.num is exist - process it [09:43:39]SAM_PROTO_GetFieldsCounters [09:43:39]wFMCommunicate request_size=4 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 13 00 00 [09:43:39]Write to MH i2c: E2 08 00 6D 0A 80 13 00 00 00 00 00 00 F3 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 62 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 62 00 6D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 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 B8 [09:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 96 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:39]wFMCommunicate OK [09:43:39]SAM_PROTO_GetFieldsCounters done [09:43:39]requested_item shift.num is exist - process it [09:43:39]requested_item shift.opened is exist - process it [09:43:39]req_shift_opened [09:43:39]FM_GetShiftState [09:43:39]SAM_PROTO_GetShiftState [09:43:39]wFMCommunicate request_size=4 [09:43:39]MH_SAM_APDU [09:43:39]CAPDU: 80 13 01 00 [09:43:39]Write to MH i2c: E2 08 00 6E 0A 80 13 01 00 00 00 00 00 F5 [09:43:39]Write i2c OK [09:43:39]MH_I2C_Read... [09:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:39]Read from MH i2c: E2 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 0E 00 [09:43:39]MH_I2C_Read... [09:43:39]Read from MH i2c: E2 0E 00 6E 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 40 [09:43:39]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:43:39]wFMCommunicate OK [09:43:39]SAM_PROTO_GetShiftState done [09:43:39]FM_GetShiftState done [09:43:39]req_shift_opened done [09:43:39]requested_item shift.open_date is exist - process it [09:43:39]req_shift_open_date [09:43:39]req_shift_open_date done [09:43:39]produce_requested_data done [09:43:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:43:39]process_action_free print_text [09:43:39]json_value_free [09:43:39]json_value_free done [09:43:39]process_json_proto returns [09:43:39]Send response to host [09:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34198,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:43:39]free response buf [09:43:39]execute_script done [09:43:39]execute_script returns [09:43:39]free content buf [09:43:39]Sock 7.Close socket [09:43:39]Sock 7.Thread stoped [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:14]recv_with_timeout no data received [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:46:56]accept exits with 9 [09:46:56]New connection [09:46:56]New thread 3067436388 created [09:46:56]Thread 3067293028 joined [09:46:56]Waiting for new connection... [09:46:56] Sock 9.Parse request [09:46:56]Sock 9.Check first char [09:46:56]Sock 9.First char is OK [09:46:56]request: POST /json_proto HTTP/1.0 [09:46:56]Method: POST [09:46:56]URL: /json_proto [09:46:56]Method is POST - this is cgi request [09:46:56]url: /json_proto [09:46:56]query_string will be loaded in cgi processing [09:46:56]execute_cgi json_proto POST (null) [09:46:56]execute_cgi path=json_proto method=POST [09:46:56]POST find Content-Length [09:46:56]Host: 172.17.38.134:8080 [09:46:56]Content-Length: 659 [09:46:56]Content-Type: application/json [09:46:56] [09:46:56]POST finish read [09:46:56]Found Content-Length = 659 [09:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183999", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:56]execute_script... [09:46:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)183999", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:56]POST & json_proto [09:46:56]process_json_proto [09:46:56]json parsed OK: [09:46:56]protocol is kg_v1.0 [09:46:56]action value=close_receipt [09:46:56]process_action close_receipt [09:46:56]cmd_close_receipt [09:46:56]MH_GetDate [09:46:56]Write to MH i2c: F0 00 00 6F 0A 68 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: F0 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: F0 09 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: F0 09 00 6F 0A 00 93 57 71 66 13 9C 7C 64 C1 [09:46:56]GetLastDocTimeStamp 1718703179 [09:46:56]current date 1718704019 [09:46:56]FM_GetShiftState [09:46:56]SAM_PROTO_GetShiftState [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 13 01 00 [09:46:56]Write to MH i2c: E2 08 00 70 0A 80 13 01 00 00 00 00 00 F7 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 0E 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 0E 00 70 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 42 [09:46:56]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:46:56]wFMCommunicate OK [09:46:56]SAM_PROTO_GetShiftState done [09:46:56]FM_GetShiftState done [09:46:56]opened in 1718670230 [09:46:56]opened+sec_in_day 1718756630 [09:46:56]quantity*price = 17000 [09:46:56]sum+1 = 17001 [09:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 21 18.06.2024 09:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34199 ФПД: 79331478147300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T094659&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34199&fm=79331478147300&tin=02508201610067®Number=0000000000092786&sum=17000 0 [09:46:57]StoreToDocumentArchive [09:46:57]shift 323 fd 34199 [09:46:57]save to /storage/0323/doc_00034199 [09:46:57]save last doc name /storage/0323/doc_00034199 to /storage/kkm_last_doc_name [09:46:57]save OK [09:46:57]Clear old archive folders... [09:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=288 [09:46:57]tlvbuf is 01A220B0 [09:46:57]SAM_PROTO_ClearQueue [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 09 00 00 [09:46:57]Write to MH i2c: E2 08 00 7D 0A 80 09 00 00 00 00 00 00 F9 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_ClearQueue done [09:46:57]KKMCreateOFDPacket [09:46:57]OFDProtocolAddRootSTLVToBuf [09:46:57]FM_MakeSignedData [09:46:57]FM_MakeSignedData [09:46:57]SAM_PROTO_SignData [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 01 02 [09:46:57]Write to MH i2c: E2 08 00 7E 0A 80 0D 01 02 00 00 00 00 01 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=255 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 93 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [09:46:57]Write to MH i2c: E2 02 01 7F 0A 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 93 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 A3 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 7F 0A 00 90 00 FD [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=47 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 02 02 2A 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 85 00 00 35 04 06 00 48 26 CC 93 10 E4 [09:46:57]Write to MH i2c: E2 32 00 80 0A 80 0D 02 02 2A 00 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 85 00 00 35 04 06 00 48 26 CC 93 10 E4 00 00 AA [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [09:46:57]RAPDU: 90 00 [09:46:57]wFMCommunicate OK [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 0D 03 02 [09:46:57]Write to MH i2c: E2 08 00 81 0A 80 0D 03 02 00 00 00 00 06 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0B 00 81 0A 00 BC 03 78 3C 01 58 BA 3B 90 00 C8 [09:46:57]RAPDU: BC 03 78 3C 01 58 BA 3B 90 00 [09:46:57]wFMCommunicate OK [09:46:57]SAM_PROTO_SignData done [09:46:57]FM_MakeSignedData done [09:46:57]CreateOFDProtocolMessage [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 11 00 00 [09:46:57]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 5B [09:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:46:57]wFMCommunicate OK [09:46:57]CreateOFDProtocolMessage done [09:46:57]OFDSenderStorePacket 34199 [09:46:57]StoreOFDPacket docnum=34199 [09:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 18 A7 2C 01 9C 70 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 93 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 85 00 00 35 04 06 00 48 26 CC 93 10 E4 BC 03 78 3C 01 58 BA 3B [09:46:57]CheckFolder [09:46:57]dirname=/storage/ofd_packets [09:46:57]CheckFolder done [09:46:57]ProducePacketName [09:46:57]name=ofd_packets/00034199 [09:46:57]NVStorageSaveData ofd_packets/00034199 [09:46:57]File name is /storage/ofd_packets/00034199 [09:46:57]Write 338 bytes [09:46:57]NVStorageSaveData done [09:46:57]OFDSenderStorePacket done [09:46:57]KKMCreateOFDPacket done [09:46:57]NVStorageSaveData kkm_last_timestamp [09:46:57]File name is /storage/kkm_last_timestamp [09:46:57]Write 4 bytes [09:46:57]NVStorageSaveData done [09:46:57]ExternCall_PrintAddStr [09:46:57]wPrintStart [09:46:57]Write to MH i2c: 01 00 00 83 0A 8D [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 FF 0F A2 [09:46:57]RasterBufferAndPrint [09:46:57]line Счет N : (3)183999 [09:46:57]line ИНН: 02508201610067 [09:46:57]line Контрольно-Кассовый Чек [09:46:57]line ПРОДАЖА [09:46:57]line Товар: 4700000481453 [09:46:57]line Напиток энерг Nitro Max 0,45 ж/б [09:46:57]line 2.000 * 85.00 [09:46:57]line = 170.00 [09:46:57]line НДС 12% НСП 1% [09:46:57]line > о реализуемом товаре [09:46:57]line ИТОГО: 170.00 [09:46:57]line НСП 1% : 1.50 [09:46:57]line НДС 12% : 18.05 [09:46:57]line Наличными: 170.00 [09:46:57]line Безнал.: 0.00 [09:46:57]line Место: АЗС № 120 "Партнер Нефть" [09:46:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:46:57]line СНО: Общий режим [09:46:57]line Чек 21 18.06.2024 09:46 [09:46:57]line Смена: 323 ФФД: 1.0 [09:46:57]line ЗНМ: 0300000172 [09:46:57]line РНМ: 0000000000092786 [09:46:57]line Версия ККМ: 001 [09:46:57]line ФМ: 0000000000875095 [09:46:57]line ФД: 34199 [09:46:58]line ФПД: 79331478147300 [09:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T094659&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34199&fm=79331478147300&tin=02508201610067®Number=0000000000092786&sum=17000 [09:46:58]line 0 [09:46:58]OFD Sender: Processing packet 34199 [packets to send 8, broken 7] [09:46:58]ProducePacketName [09:46:58]name=ofd_packets/00034199 [09:46:58]OFD Sender: To server: pG, [09:46:58]CommunicateWithHost lk.salyk.kg:30040 [09:46:58]ConnectInit lk.salyk.kg [09:46:58]written 0, free lines is 4095 [09:46:58]Connected sock=11 [09:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 18 A7 2C 01 9C 70 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 93 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 85 00 00 35 04 06 00 48 26 CC 93 10 E4 BC 03 78 3C 01 58 BA 3B [09:46:58]Write to MH i2c: 01 00 00 AC 0A B6 [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: 01 07 00 AC 0A 00 00 00 00 00 DF 0C A8 [09:46:58]RasterBufferAndPrint [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]line [09:46:58]written 0, free lines is 3302 [09:46:58]MH_Cut [09:46:58]Write to MH i2c: D1 01 00 B3 0A 01 8F [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: D1 01 00 B3 0A 00 8E [09:46:58]Write to MH i2c: 01 00 00 B4 0A BE [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0E 5D 47 00 26 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 97 85 00 00 F4 03 04 00 63 FE 70 66 B6 04 01 00 00 63 7B 35 09 E5 D0 E5 40 [09:46:58]CommunicateWithHost err = 0 [09:46:58]CheckOFDResponse [09:46:58]1017 (14) - 77093643461234 [09:46:58]1041 (16) - 0000000000875095 [09:46:58]1040 (4) - 34199 [09:46:58]1012 (4) - 18.06.2024 03:26 [09:46:58]1206 (1) - 0 [09:46:58]OFD Sender: Remove packet 34199 [09:46:58]ProducePacketName [09:46:58]name=ofd_packets/00034199 [09:46:58]NVStorageDeleteData [09:46:59]OFD Sender: No OFD packet to send [09:46:59]*** Cut start [09:46:59]*** Partial cut [09:46:59]*** CUTSNS_PIN = 1 [09:46:59]*** CUTSNS_PIN = 0 [09:46:59]*** Brake cut motor [09:47:00]Read from MH i2c: 01 [09:47:00]MH_I2C_Read... [09:47:00]*** Stop cut motor [09:47:00]*** Cut end [09:47:00]Read from MH i2c: 01 07 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [09:47:00]process_action close_receipt done [09:47:00]requested_data is exist [09:47:00]produce_requested_data [09:47:00]requested_item fm.sn is exist - process it [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 11 00 00 [09:47:00]Write to MH i2c: E2 08 00 B5 0A 80 11 00 00 00 00 00 00 39 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 B5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8E [09:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:47:00]wFMCommunicate OK [09:47:00]requested_item fd.num is exist - process it [09:47:00]SAM_PROTO_GetFieldsCounters [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 13 00 00 [09:47:00]Write to MH i2c: E2 08 00 B6 0A 80 13 00 00 00 00 00 00 3C [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 62 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 62 00 B6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 97 85 00 00 0E 04 04 00 43 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 05 [09:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 97 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetFieldsCounters done [09:47:00]requested_item shift.num is exist - process it [09:47:00]requested_item shift.opened is exist - process it [09:47:00]req_shift_opened [09:47:00]FM_GetShiftState [09:47:00]SAM_PROTO_GetShiftState [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 13 01 00 [09:47:00]Write to MH i2c: E2 08 00 B7 0A 80 13 01 00 00 00 00 00 3E [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 B7 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 89 [09:47:00]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetShiftState done [09:47:00]FM_GetShiftState done [09:47:00]req_shift_opened done [09:47:00]requested_item shift.open_date is exist - process it [09:47:00]req_shift_open_date [09:47:00]req_shift_open_date done [09:47:00]produce_requested_data done [09:47:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34199,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:47:00]process_action_free close_receipt [09:47:00]json_value_free [09:47:00]json_value_free done [09:47:00]process_json_proto returns [09:47:00]Send response to host [09:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34199,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:47:00]free response buf [09:47:00]execute_script done [09:47:00]execute_script returns [09:47:00]free content buf [09:47:00]Sock 9.Close socket [09:47:00]Sock 9.Thread stoped [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:49]accept exits with 7 [09:47:49]New connection [09:47:49]New thread 3067293028 created [09:47:49]Thread 3067436388 joined [09:47:49]Waiting for new connection... [09:47:49] Sock 7.Parse request [09:47:49]Sock 7.Check first char [09:47:49]Sock 7.First char is OK [09:47:49]request: POST /json_proto HTTP/1.0 [09:47:49]Method: POST [09:47:49]URL: /json_proto [09:47:49]Method is POST - this is cgi request [09:47:49]url: /json_proto [09:47:49]query_string will be loaded in cgi processing [09:47:49]execute_cgi json_proto POST (null) [09:47:49]execute_cgi path=json_proto method=POST [09:47:49]POST find Content-Length [09:47:49]Host: 172.17.38.134:8080 [09:47:49]Content-Length: 619 [09:47:49]Content-Type: application/json [09:47:49] [09:47:49]POST finish read [09:47:49]Found Content-Length = 619 [09:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184000", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [09:47:49]execute_script... [09:47: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 : (3)184000", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "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" ] } } [09:47:49]POST & json_proto [09:47:49]process_json_proto [09:47:49]json parsed OK: [09:47:49]protocol is kg_v1.0 [09:47:49]action value=close_receipt [09:47:49]process_action close_receipt [09:47:49]cmd_close_receipt [09:47:49]MH_GetDate [09:47:49]Write to MH i2c: F0 00 00 B8 0A B1 [09:47:49]Write i2c OK [09:47:49]MH_I2C_Read... [09:47:49]Read from MH i2c: F0 [09:47:49]MH_I2C_Read... [09:47:49]Read from MH i2c: F0 09 00 [09:47:49]MH_I2C_Read... [09:47:49]Read from MH i2c: F0 09 00 B8 0A 00 C8 57 71 66 13 9C 7C 64 3F [09:47:49]GetLastDocTimeStamp 1718704019 [09:47:49]current date 1718704072 [09:47:49]FM_GetShiftState [09:47:49]SAM_PROTO_GetShiftState [09:47:49]wFMCommunicate request_size=4 [09:47:49]MH_SAM_APDU [09:47:49]CAPDU: 80 13 01 00 [09:47:49]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [09:47:49]Write i2c OK [09:47:49]MH_I2C_Read... [09:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:49]Read from MH i2c: E2 [09:47:49]MH_I2C_Read... [09:47:49]Read from MH i2c: E2 0E 00 [09:47:49]MH_I2C_Read... [09:47:49]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8B [09:47:49]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:47:49]wFMCommunicate OK [09:47:49]SAM_PROTO_GetShiftState done [09:47:49]FM_GetShiftState done [09:47:49]opened in 1718670230 [09:47:49]opened+sec_in_day 1718756630 [09:47:49]quantity*price = 14000 [09:47:49]sum+1 = 14001 [09:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 22 18.06.2024 09:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34200 ФПД: 57583249425983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T094752&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34200&fm=57583249425983&tin=02508201610067®Number=0000000000092786&sum=14000 0 [09:47:50]StoreToDocumentArchive [09:47:50]shift 323 fd 34200 [09:47:50]save to /storage/0323/doc_00034200 [09:47:50]save last doc name /storage/0323/doc_00034200 to /storage/kkm_last_doc_name [09:47:50]save OK [09:47:50]Clear old archive folders... [09:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=271 [09:47:50]tlvbuf is 019E08C0 [09:47:50]SAM_PROTO_ClearQueue [09:47:50]wFMCommunicate request_size=4 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 09 00 00 [09:47:50]Write to MH i2c: E2 08 00 C6 0A 80 09 00 00 00 00 00 00 42 [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [09:47:50]RAPDU: 90 00 [09:47:50]wFMCommunicate OK [09:47:50]SAM_PROTO_ClearQueue done [09:47:50]KKMCreateOFDPacket [09:47:50]OFDProtocolAddRootSTLVToBuf [09:47:50]FM_MakeSignedData [09:47:50]FM_MakeSignedData [09:47:50]SAM_PROTO_SignData [09:47:50]wFMCommunicate request_size=4 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 0D 01 02 [09:47:50]Write to MH i2c: E2 08 00 C7 0A 80 0D 01 02 00 00 00 00 4A [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 C7 0A 00 90 00 45 [09:47:50]RAPDU: 90 00 [09:47:50]wFMCommunicate OK [09:47:50]wFMCommunicate request_size=255 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 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 16 00 00 00 F4 03 04 00 C8 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [09:47:50]Write to MH i2c: E2 02 01 C8 0A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 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 16 00 00 00 F4 03 04 00 C8 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 25 [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [09:47:50]RAPDU: 90 00 [09:47:50]wFMCommunicate OK [09:47:50]wFMCommunicate request_size=30 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 0D 02 02 19 30 38 37 35 30 39 35 10 04 04 00 98 85 00 00 35 04 06 00 34 5F 25 20 86 3F [09:47:50]Write to MH i2c: E2 21 00 C9 0A 80 0D 02 02 19 00 30 38 37 35 30 39 35 10 04 04 00 98 85 00 00 35 04 06 00 34 5F 25 20 86 3F 00 00 02 [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [09:47:50]RAPDU: 90 00 [09:47:50]wFMCommunicate OK [09:47:50]wFMCommunicate request_size=4 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 0D 03 02 [09:47:50]Write to MH i2c: E2 08 00 CA 0A 80 0D 03 02 00 00 00 00 4F [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:51]Read from MH i2c: E2 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: E2 0B 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: E2 0B 00 CA 0A 00 69 90 88 AC F2 90 B0 C1 90 00 70 [09:47:51]RAPDU: 69 90 88 AC F2 90 B0 C1 90 00 [09:47:51]wFMCommunicate OK [09:47:51]SAM_PROTO_SignData done [09:47:51]FM_MakeSignedData done [09:47:51]CreateOFDProtocolMessage [09:47:51]wFMCommunicate request_size=4 [09:47:51]MH_SAM_APDU [09:47:51]CAPDU: 80 11 00 00 [09:47:51]Write to MH i2c: E2 08 00 CB 0A 80 11 00 00 00 00 00 00 4F [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:51]Read from MH i2c: E2 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: E2 17 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: E2 17 00 CB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A4 [09:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:47:51]wFMCommunicate OK [09:47:51]CreateOFDProtocolMessage done [09:47:51]OFDSenderStorePacket 34200 [09:47:51]StoreOFDPacket docnum=34200 [09:47:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 23 01 00 00 08 EB 1B 01 B2 A7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 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 16 00 00 00 F4 03 04 00 C8 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 85 00 00 35 04 06 00 34 5F 25 20 86 3F 69 90 88 AC F2 90 B0 C1 [09:47:51]CheckFolder [09:47:51]dirname=/storage/ofd_packets [09:47:51]CheckFolder done [09:47:51]ProducePacketName [09:47:51]name=ofd_packets/00034200 [09:47:51]NVStorageSaveData ofd_packets/00034200 [09:47:51]File name is /storage/ofd_packets/00034200 [09:47:51]Write 321 bytes [09:47:51]NVStorageSaveData done [09:47:51]OFDSenderStorePacket done [09:47:51]KKMCreateOFDPacket done [09:47:51]NVStorageSaveData kkm_last_timestamp [09:47:51]File name is /storage/kkm_last_timestamp [09:47:51]Write 4 bytes [09:47:51]NVStorageSaveData done [09:47:51]ExternCall_PrintAddStr [09:47:51]wPrintStart [09:47:51]Write to MH i2c: 01 00 00 CC 0A D6 [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: 01 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: 01 07 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: 01 07 00 CC 0A 00 00 00 00 00 FF 0F EB [09:47:51]RasterBufferAndPrint [09:47:51]line Счет N : (3)184000 [09:47:51]line ИНН: 02508201610067 [09:47:51]line Контрольно-Кассовый Чек [09:47:51]line ПРОДАЖА [09:47:51]line Товар: 47802995 [09:47:51]line Сигареты Winston XS Silver [09:47:51]line 1.000 * 140.00 [09:47:51]line = 140.00 [09:47:51]line НДС 12% НСП 1% [09:47:51]line > о реализуемом товаре [09:47:51]line ИТОГО: 140.00 [09:47:51]line НСП 1% : 1.24 [09:47:51]line НДС 12% : 14.87 [09:47:51]line Наличными: 140.00 [09:47:51]line Безнал.: 0.00 [09:47:51]line Место: АЗС № 120 "Партнер Нефть" [09:47:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:47:51]line СНО: Общий режим [09:47:51]line Чек 22 18.06.2024 09:47 [09:47:51]line Смена: 323 ФФД: 1.0 [09:47:51]line ЗНМ: 0300000172 [09:47:51]line РНМ: 0000000000092786 [09:47:51]line Версия ККМ: 001 [09:47:51]line ФМ: 0000000000875095 [09:47:51]line ФД: 34200 [09:47:51]line ФПД: 57583249425983 [09:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T094752&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34200&fm=57583249425983&tin=02508201610067®Number=0000000000092786&sum=14000 [09:47:51]line 0 [09:47:51]OFD Sender: Processing packet 34200 [packets to send 8, broken 7] [09:47:51]ProducePacketName [09:47:51]name=ofd_packets/00034200 [09:47:51]OFD Sender: To server: pG, [09:47:51]CommunicateWithHost lk.salyk.kg:30040 [09:47:51]ConnectInit lk.salyk.kg [09:47:51]written 0, free lines is 4095 [09:47:51]Connected sock=10 [09:47:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 23 01 00 00 08 EB 1B 01 B2 A7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 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 20 53 69 6C 76 65 72 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 16 00 00 00 F4 03 04 00 C8 57 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 85 00 00 35 04 06 00 34 5F 25 20 86 3F 69 90 88 AC F2 90 B0 C1 [09:47:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 5F D2 47 00 2F E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 98 85 00 00 F4 03 04 00 98 FE 70 66 B6 04 01 00 00 BE AB BA F7 CC 46 8E 5C [09:47:51]CommunicateWithHost err = 0 [09:47:51]CheckOFDResponse [09:47:51]1017 (14) - 77093643461234 [09:47:51]1041 (16) - 0000000000875095 [09:47:51]1040 (4) - 34200 [09:47:51]1012 (4) - 18.06.2024 03:27 [09:47:51]1206 (1) - 0 [09:47:51]OFD Sender: Remove packet 34200 [09:47:51]ProducePacketName [09:47:51]name=ofd_packets/00034200 [09:47:51]NVStorageDeleteData [09:47:51]Write to MH i2c: 01 00 00 F4 0A FE [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: 01 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: 01 07 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: 01 07 00 F4 0A 00 00 00 00 00 03 0D 15 [09:47:51]RasterBufferAndPrint [09:47:51]line [09:47:51]line [09:47:51]line [09:47:51]line [09:47:51]line [09:47:51]written 0, free lines is 3337 [09:47:51]MH_Cut [09:47:51]Write to MH i2c: D1 01 00 FB 0A 01 D7 [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: D1 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: D1 01 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: D1 01 00 FB 0A 00 D6 [09:47:51]Write to MH i2c: 01 00 00 FC 0A 06 [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:52]OFD Sender: No OFD packet to send [09:47:52]*** Cut start [09:47:52]*** Partial cut [09:47:52]*** CUTSNS_PIN = 1 [09:47:52]*** CUTSNS_PIN = 0 [09:47:52]*** Brake cut motor [09:47:53]Read from MH i2c: 01 [09:47:53]MH_I2C_Read... [09:47:53]*** Stop cut motor [09:47:53]*** Cut end [09:47:53]Read from MH i2c: 01 07 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 07 00 FC 0A 00 00 00 00 00 FF 0F 1B [09:47:53]process_action close_receipt done [09:47:53]requested_data is exist [09:47:53]produce_requested_data [09:47:53]requested_item fm.sn is exist - process it [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 11 00 00 [09:47:53]Write to MH i2c: E2 08 00 FD 0A 80 11 00 00 00 00 00 00 81 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 17 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 17 00 FD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D6 [09:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [09:47:53]wFMCommunicate OK [09:47:53]requested_item fd.num is exist - process it [09:47:53]SAM_PROTO_GetFieldsCounters [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 13 00 00 [09:47:53]Write to MH i2c: E2 08 00 FE 0A 80 13 00 00 00 00 00 00 84 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 62 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 62 00 FE 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 98 85 00 00 0E 04 04 00 43 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 51 [09:47:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 98 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_GetFieldsCounters done [09:47:53]requested_item shift.num is exist - process it [09:47:53]requested_item shift.opened is exist - process it [09:47:53]req_shift_opened [09:47:53]FM_GetShiftState [09:47:53]SAM_PROTO_GetShiftState [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 13 01 00 [09:47:53]Write to MH i2c: E2 08 00 FF 0A 80 13 01 00 00 00 00 00 86 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0E 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0E 00 FF 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D1 [09:47:53]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_GetShiftState done [09:47:53]FM_GetShiftState done [09:47:53]req_shift_opened done [09:47:53]requested_item shift.open_date is exist - process it [09:47:53]req_shift_open_date [09:47:53]req_shift_open_date done [09:47:53]produce_requested_data done [09:47:53]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34200,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [09:47:53]process_action_free close_receipt [09:47:53]json_value_free [09:47:53]json_value_free done [09:47:53]process_json_proto returns [09:47:53]Send response to host [09:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34200,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [09:47:53]free response buf [09:47:53]execute_script done [09:47:53]execute_script returns [09:47:53]free content buf [09:47:53]Sock 7.Close socket [09:47:53]Sock 7.Thread stoped [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:12:59]accept exits with 9 [10:12:59]New connection [10:12:59]New thread 3067436388 created [10:12:59]Thread 3067293028 joined [10:12:59]Waiting for new connection... [10:12:59] Sock 9.Parse request [10:12:59]Sock 9.Check first char [10:12:59]Sock 9.First char is OK [10:12:59]request: POST /json_proto HTTP/1.0 [10:12:59]Method: POST [10:12:59]URL: /json_proto [10:12:59]Method is POST - this is cgi request [10:12:59]url: /json_proto [10:12:59]query_string will be loaded in cgi processing [10:12:59]execute_cgi json_proto POST (null) [10:12:59]execute_cgi path=json_proto method=POST [10:12:59]POST find Content-Length [10:12:59]Host: 172.17.38.134:8080 [10:12:59]Content-Length: 639 [10:12:59]Content-Type: application/json [10:12:59] [10:12:59]POST finish read [10:12:59]Found Content-Length = 639 [10:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184001", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:59]execute_script... [10:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184001", "tax_sys" : 0, "items" : [ { "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:59]POST & json_proto [10:12:59]process_json_proto [10:12:59]json parsed OK: [10:12:59]protocol is kg_v1.0 [10:12:59]action value=close_receipt [10:12:59]process_action close_receipt [10:12:59]cmd_close_receipt [10:12:59]MH_GetDate [10:12:59]Write to MH i2c: F0 00 00 00 0B FA [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 09 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: F0 09 00 00 0B 00 AE 5D 71 66 13 9C 7C 64 74 [10:12:59]GetLastDocTimeStamp 1718704072 [10:12:59]current date 1718705582 [10:12:59]FM_GetShiftState [10:12:59]SAM_PROTO_GetShiftState [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 13 01 00 [10:12:59]Write to MH i2c: E2 08 00 01 0B 80 13 01 00 00 00 00 00 89 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0E 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 0E 00 01 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D4 [10:12:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:12:59]wFMCommunicate OK [10:12:59]SAM_PROTO_GetShiftState done [10:12:59]FM_GetShiftState done [10:12:59]opened in 1718670230 [10:12:59]opened+sec_in_day 1718756630 [10:12:59]quantity*price = 16000 [10:12:59]sum+1 = 16001 [10:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 23 18.06.2024 10:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34201 ФПД: 177423875468340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101302&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34201&fm=177423875468340&tin=02508201610067®Number=0000000000092786&sum=16000 0 [10:13:00]StoreToDocumentArchive [10:13:00]shift 323 fd 34201 [10:13:00]save to /storage/0323/doc_00034201 [10:13:00]save last doc name /storage/0323/doc_00034201 to /storage/kkm_last_doc_name [10:13:00]save OK [10:13:00]Clear old archive folders... [10:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=288 [10:13:00]tlvbuf is 019E0770 [10:13:00]SAM_PROTO_ClearQueue [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 09 00 00 [10:13:00]Write to MH i2c: E2 08 00 0E 0B 80 09 00 00 00 00 00 00 8B [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_ClearQueue done [10:13:00]KKMCreateOFDPacket [10:13:00]OFDProtocolAddRootSTLVToBuf [10:13:00]FM_MakeSignedData [10:13:00]FM_MakeSignedData [10:13:00]SAM_PROTO_SignData [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 01 02 [10:13:00]Write to MH i2c: E2 08 00 0F 0B 80 0D 01 02 00 00 00 00 93 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=255 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 AE 5D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [10:13:00]Write to MH i2c: E2 02 01 10 0B 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 AE 5D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 BE [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=47 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 02 02 2A 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 85 00 00 35 04 06 00 A1 5D B7 12 6C 34 [10:13:00]Write to MH i2c: E2 32 00 11 0B 80 0D 02 02 2A 00 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 85 00 00 35 04 06 00 A1 5D B7 12 6C 34 00 00 E4 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 03 02 [10:13:00]Write to MH i2c: E2 08 00 12 0B 80 0D 03 02 00 00 00 00 98 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0B 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0B 00 12 0B 00 02 12 E0 AC C0 0B D2 9C 90 00 72 [10:13:00]RAPDU: 02 12 E0 AC C0 0B D2 9C 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_SignData done [10:13:00]FM_MakeSignedData done [10:13:00]CreateOFDProtocolMessage [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 11 00 00 [10:13:00]Write to MH i2c: E2 08 00 13 0B 80 11 00 00 00 00 00 00 98 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 13 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 ED [10:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:13:01]wFMCommunicate OK [10:13:01]CreateOFDProtocolMessage done [10:13:01]OFDSenderStorePacket 34201 [10:13:01]StoreOFDPacket docnum=34201 [10:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 18 F4 2C 01 E3 CD 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 AE 5D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 85 00 00 35 04 06 00 A1 5D B7 12 6C 34 02 12 E0 AC C0 0B D2 9C [10:13:01]CheckFolder [10:13:01]dirname=/storage/ofd_packets [10:13:01]CheckFolder done [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00034201 [10:13:01]NVStorageSaveData ofd_packets/00034201 [10:13:01]File name is /storage/ofd_packets/00034201 [10:13:01]Write 338 bytes [10:13:01]NVStorageSaveData done [10:13:01]OFDSenderStorePacket done [10:13:01]KKMCreateOFDPacket done [10:13:01]NVStorageSaveData kkm_last_timestamp [10:13:01]File name is /storage/kkm_last_timestamp [10:13:01]Write 4 bytes [10:13:01]NVStorageSaveData done [10:13:01]ExternCall_PrintAddStr [10:13:01]wPrintStart [10:13:01]Write to MH i2c: 01 00 00 14 0B 1F [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 FF 0F 34 [10:13:01]RasterBufferAndPrint [10:13:01]line Счет N : (3)184001 [10:13:01]line ИНН: 02508201610067 [10:13:01]line Контрольно-Кассовый Чек [10:13:01]line ПРОДАЖА [10:13:01]line Товар: 3800020453407 [10:13:01]line Nestle KIT-KAT батончик chunky 36x40г [10:13:01]line 2.000 * 80.00 [10:13:01]line = 160.00 [10:13:01]line НДС 12% НСП 1% [10:13:01]line > о реализуемом товаре [10:13:01]line ИТОГО: 160.00 [10:13:01]line НСП 1% : 1.42 [10:13:01]line НДС 12% : 16.99 [10:13:01]line Наличными: 160.00 [10:13:01]line Безнал.: 0.00 [10:13:01]line Место: АЗС № 120 "Партнер Нефть" [10:13:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:13:01]line СНО: Общий режим [10:13:01]line Чек 23 18.06.2024 10:13 [10:13:01]line Смена: 323 ФФД: 1.0 [10:13:01]line ЗНМ: 0300000172 [10:13:01]line РНМ: 0000000000092786 [10:13:01]line Версия ККМ: 001 [10:13:01]line ФМ: 0000000000875095 [10:13:01]line ФД: 34201 [10:13:01]line ФПД: 177423875468340 [10:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T101302&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34201&fm=177423875468340&tin=02508201610067®Number=0000000000092786&sum=16000 [10:13:01]line 0 [10:13:01]written 0, free lines is 4095 [10:13:01]OFD Sender: Processing packet 34201 [packets to send 8, broken 7] [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00034201 [10:13:01]OFD Sender: To server: pG, [10:13:01]CommunicateWithHost lk.salyk.kg:30040 [10:13:01]ConnectInit lk.salyk.kg [10:13:01]Connected sock=10 [10:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 18 F4 2C 01 E3 CD 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 AE 5D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 85 00 00 35 04 06 00 A1 5D B7 12 6C 34 02 12 E0 AC C0 0B D2 9C [10:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 01 B6 47 00 2E 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 99 85 00 00 F4 03 04 00 7E 04 71 66 B6 04 01 00 00 EA F1 ED D6 2C 13 19 BA [10:13:01]CommunicateWithHost err = 0 [10:13:01]CheckOFDResponse [10:13:01]1017 (14) - 77093643461234 [10:13:01]1041 (16) - 0000000000875095 [10:13:01]1040 (4) - 34201 [10:13:01]1012 (4) - 18.06.2024 03:52 [10:13:01]1206 (1) - 0 [10:13:01]OFD Sender: Remove packet 34201 [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00034201 [10:13:01]NVStorageDeleteData [10:13:01]Write to MH i2c: 01 00 00 3D 0B 48 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 3D 0B 00 00 00 00 00 FB 0C 56 [10:13:01]RasterBufferAndPrint [10:13:01]line [10:13:01]line [10:13:01]line [10:13:01]line [10:13:01]line [10:13:01]written 0, free lines is 3329 [10:13:01]MH_Cut [10:13:01]Write to MH i2c: D1 01 00 44 0B 01 21 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: D1 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: D1 01 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: D1 01 00 44 0B 00 20 [10:13:01]Write to MH i2c: 01 00 00 45 0B 50 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:02]OFD Sender: No OFD packet to send [10:13:02]*** Cut start [10:13:02]*** Partial cut [10:13:02]*** CUTSNS_PIN = 1 [10:13:02]*** CUTSNS_PIN = 0 [10:13:02]*** Brake cut motor [10:13:02]Read from MH i2c: 01 [10:13:02]MH_I2C_Read... [10:13:02]*** Stop cut motor [10:13:02]*** Cut end [10:13:02]Read from MH i2c: 01 07 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 45 0B 00 00 00 00 00 FF 0F 65 [10:13:02]process_action close_receipt done [10:13:02]requested_data is exist [10:13:02]produce_requested_data [10:13:02]requested_item fm.sn is exist - process it [10:13:02]wFMCommunicate request_size=4 [10:13:02]MH_SAM_APDU [10:13:02]CAPDU: 80 11 00 00 [10:13:02]Write to MH i2c: E2 08 00 46 0B 80 11 00 00 00 00 00 00 CB [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:02]Read from MH i2c: E2 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 17 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 17 00 46 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 20 [10:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:13:02]wFMCommunicate OK [10:13:02]requested_item fd.num is exist - process it [10:13:02]SAM_PROTO_GetFieldsCounters [10:13:02]wFMCommunicate request_size=4 [10:13:02]MH_SAM_APDU [10:13:02]CAPDU: 80 13 00 00 [10:13:02]Write to MH i2c: E2 08 00 47 0B 80 13 00 00 00 00 00 00 CE [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 62 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 62 00 47 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 99 85 00 00 0E 04 04 00 43 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 9F [10:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 99 85 00 00 0E 04 04 00 43 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 [10:13:03]wFMCommunicate OK [10:13:03]SAM_PROTO_GetFieldsCounters done [10:13:03]requested_item shift.num is exist - process it [10:13:03]requested_item shift.opened is exist - process it [10:13:03]req_shift_opened [10:13:03]FM_GetShiftState [10:13:03]SAM_PROTO_GetShiftState [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 13 01 00 [10:13:03]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 0E 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 1B [10:13:03]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:13:03]wFMCommunicate OK [10:13:03]SAM_PROTO_GetShiftState done [10:13:03]FM_GetShiftState done [10:13:03]req_shift_opened done [10:13:03]requested_item shift.open_date is exist - process it [10:13:03]req_shift_open_date [10:13:03]req_shift_open_date done [10:13:03]produce_requested_data done [10:13:03]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34201,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:13:03]process_action_free close_receipt [10:13:03]json_value_free [10:13:03]json_value_free done [10:13:03]process_json_proto returns [10:13:03]Send response to host [10:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34201,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:13:03]free response buf [10:13:03]execute_script done [10:13:03]execute_script returns [10:13:03]free content buf [10:13:03]Sock 9.Close socket [10:13:03]Sock 9.Thread stoped [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:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:34]accept exits with 7 [10:36:34]New connection [10:36:34]New thread 3067293028 created [10:36:34]Thread 3067436388 joined [10:36:34]Waiting for new connection... [10:36:34] Sock 7.Parse request [10:36:34]Sock 7.Check first char [10:36:34]Sock 7.First char is OK [10:36:34]request: POST /json_proto HTTP/1.0 [10:36:34]Method: POST [10:36:34]URL: /json_proto [10:36:34]Method is POST - this is cgi request [10:36:34]url: /json_proto [10:36:34]query_string will be loaded in cgi processing [10:36:34]execute_cgi json_proto POST (null) [10:36:34]execute_cgi path=json_proto method=POST [10:36:34]POST find Content-Length [10:36:34]Host: 172.17.38.134:8080 [10:36:34]Content-Length: 682 [10:36:34]Content-Type: application/json [10:36:34] [10:36:34]POST finish read [10:36:34]Found Content-Length = 682 [10:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "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" ] } } [10:36:34]execute_script... [10:36: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)672518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "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" ] } } [10:36:34]POST & json_proto [10:36:34]process_json_proto [10:36:34]json parsed OK: [10:36:34]protocol is kg_v1.0 [10:36:34]action value=close_receipt [10:36:34]process_action close_receipt [10:36:34]cmd_close_receipt [10:36:34]MH_GetDate [10:36:34]Write to MH i2c: F0 00 00 49 0B 43 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: F0 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: F0 09 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: F0 09 00 49 0B 00 35 63 71 66 13 9C 7C 64 4A [10:36:34]GetLastDocTimeStamp 1718705582 [10:36:34]current date 1718706997 [10:36:34]FM_GetShiftState [10:36:34]SAM_PROTO_GetShiftState [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 13 01 00 [10:36:34]Write to MH i2c: E2 08 00 4A 0B 80 13 01 00 00 00 00 00 D2 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 0E 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 0E 00 4A 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 1D [10:36:34]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:36:34]wFMCommunicate OK [10:36:34]SAM_PROTO_GetShiftState done [10:36:34]FM_GetShiftState done [10:36:34]opened in 1718670230 [10:36:34]opened+sec_in_day 1718756630 [10:36:34]quantity*price = 300034 [10:36:34]sum+1 = 300035 [10:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 24 18.06.2024 10:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34202 ФПД: 91267925683744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103637&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34202&fm=91267925683744&tin=02508201610067®Number=0000000000092786&sum=300000 [10:36:35]StoreToDocumentArchive [10:36:35]shift 323 fd 34202 [10:36:35]save to /storage/0323/doc_00034202 [10:36:35]save last doc name /storage/0323/doc_00034202 to /storage/kkm_last_doc_name [10:36:35]save OK [10:36:35]Clear old archive folders... [10:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:35]tlvbuf is 01A29BD0 [10:36:35]SAM_PROTO_ClearQueue [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 09 00 00 [10:36:35]Write to MH i2c: E2 08 00 57 0B 80 09 00 00 00 00 00 00 D4 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]SAM_PROTO_ClearQueue done [10:36:35]KKMCreateOFDPacket [10:36:35]OFDProtocolAddRootSTLVToBuf [10:36:35]FM_MakeSignedData [10:36:35]FM_MakeSignedData [10:36:35]SAM_PROTO_SignData [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 01 02 [10:36:35]Write to MH i2c: E2 08 00 58 0B 80 0D 01 02 00 00 00 00 DC [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=255 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 35 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 85 00 00 35 04 06 00 53 [10:36:35]Write to MH i2c: E2 02 01 59 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 35 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 85 00 00 35 04 06 00 53 00 00 43 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 59 0B 00 90 00 D8 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=10 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 02 02 05 01 F8 4A 2E 20 [10:36:35]Write to MH i2c: E2 0D 00 5A 0B 80 0D 02 02 05 00 01 F8 4A 2E 20 00 00 7A [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 03 00 5A 0B 00 90 00 D9 [10:36:35]RAPDU: 90 00 [10:36:35]wFMCommunicate OK [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 0D 03 02 [10:36:35]Write to MH i2c: E2 08 00 5B 0B 80 0D 03 02 00 00 00 00 E1 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 0B 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 0B 00 5B 0B 00 75 7B 2F FE 69 75 DA 38 90 00 EF [10:36:36]RAPDU: 75 7B 2F FE 69 75 DA 38 90 00 [10:36:36]wFMCommunicate OK [10:36:36]SAM_PROTO_SignData done [10:36:36]FM_MakeSignedData done [10:36:36]CreateOFDProtocolMessage [10:36:36]wFMCommunicate request_size=4 [10:36:36]MH_SAM_APDU [10:36:36]CAPDU: 80 11 00 00 [10:36:36]Write to MH i2c: E2 08 00 5C 0B 80 11 00 00 00 00 00 00 E1 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 17 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 17 00 5C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 36 [10:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:36:36]wFMCommunicate OK [10:36:36]CreateOFDProtocolMessage done [10:36:36]OFDSenderStorePacket 34202 [10:36:36]StoreOFDPacket docnum=34202 [10:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 FF A6 07 01 07 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 35 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 85 00 00 35 04 06 00 53 01 F8 4A 2E 20 75 7B 2F FE 69 75 DA 38 [10:36:36]CheckFolder [10:36:36]dirname=/storage/ofd_packets [10:36:36]CheckFolder done [10:36:36]ProducePacketName [10:36:36]name=ofd_packets/00034202 [10:36:36]NVStorageSaveData ofd_packets/00034202 [10:36:36]File name is /storage/ofd_packets/00034202 [10:36:36]Write 301 bytes [10:36:36]NVStorageSaveData done [10:36:36]OFDSenderStorePacket done [10:36:36]KKMCreateOFDPacket done [10:36:36]NVStorageSaveData kkm_last_timestamp [10:36:36]File name is /storage/kkm_last_timestamp [10:36:36]Write 4 bytes [10:36:36]NVStorageSaveData done [10:36:36]ExternCall_PrintAddStr [10:36:36]wPrintStart [10:36:36]Write to MH i2c: 01 00 00 5D 0B 68 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 5D 0B 00 00 00 00 00 FF 0F 7D [10:36:36]RasterBufferAndPrint [10:36:36]line Счет N : (1)672518 [10:36:36]line ИНН: 02508201610067 [10:36:36]line Контрольно-Кассовый Чек [10:36:36]line ПРОДАЖА [10:36:36]line ТРК (МРК, ГНК) : 41 [10:36:36]line Товар: 2710124500 [10:36:36]line Аи-95-К-5 [10:36:36]line 40.600 * 73.90 [10:36:36]line = 3000.34 [10:36:36]line НДС 12% НСП 1% [10:36:36]line > о реализуемом товаре [10:36:36]line ОКРУГЛЕНИЕ: -0.34 [10:36:36]line ИТОГО: 3000.00 [10:36:36]line Внесено: 3000.00 [10:36:36]line СДАЧА: 0.00 [10:36:36]line НСП 1% : 26.55 [10:36:36]line НДС 12% : 318.62 [10:36:36]line Наличными: 3000.00 [10:36:36]line Безнал.: 0.00 [10:36:36]line Место: АЗС № 120 "Партнер Нефть" [10:36:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:36:36]line СНО: Общий режим [10:36:36]line Чек 24 18.06.2024 10:36 [10:36:36]line Смена: 323 ФФД: 1.0 [10:36:36]line ЗНМ: 0300000172 [10:36:36]line РНМ: 0000000000092786 [10:36:36]line Версия ККМ: 001 [10:36:36]line ФМ: 0000000000875095 [10:36:36]line ФД: 34202 [10:36:36]line ФПД: 91267925683744 [10:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103637&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34202&fm=91267925683744&tin=02508201610067®Number=0000000000092786&sum=300000 [10:36:36]written 0, free lines is 4095 [10:36:36]OFD Sender: Processing packet 34202 [packets to send 8, broken 7] [10:36:36]ProducePacketName [10:36:36]name=ofd_packets/00034202 [10:36:36]OFD Sender: To server: pG, [10:36:36]CommunicateWithHost lk.salyk.kg:30040 [10:36:36]ConnectInit lk.salyk.kg [10:36:36]Connected sock=10 [10:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 FF A6 07 01 07 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 35 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 85 00 00 35 04 06 00 53 01 F8 4A 2E 20 75 7B 2F FE 69 75 DA 38 [10:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0F D1 47 00 5D 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9A 85 00 00 F4 03 04 00 05 0A 71 66 B6 04 01 00 00 BD 78 98 F5 D3 C3 74 8A [10:36:36]CommunicateWithHost err = 0 [10:36:36]CheckOFDResponse [10:36:36]1017 (14) - 77093643461234 [10:36:36]1041 (16) - 0000000000875095 [10:36:36]1040 (4) - 34202 [10:36:36]1012 (4) - 18.06.2024 04:16 [10:36:36]1206 (1) - 0 [10:36:36]OFD Sender: Remove packet 34202 [10:36:36]ProducePacketName [10:36:36]name=ofd_packets/00034202 [10:36:36]NVStorageDeleteData [10:36:36]Write to MH i2c: 01 00 00 88 0B 93 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 88 0B 00 00 00 00 00 E1 0C 87 [10:36:36]RasterBufferAndPrint [10:36:36]line [10:36:36]line [10:36:36]line [10:36:36]line [10:36:36]line [10:36:36]written 0, free lines is 3302 [10:36:36]MH_Cut [10:36:36]Write to MH i2c: D1 01 00 8F 0B 01 6C [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: D1 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: D1 01 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: D1 01 00 8F 0B 00 6B [10:36:36]Write to MH i2c: 01 00 00 90 0B 9B [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:37]OFD Sender: No OFD packet to send [10:36:37]*** Cut start [10:36:37]*** Partial cut [10:36:37]*** CUTSNS_PIN = 1 [10:36:37]*** CUTSNS_PIN = 0 [10:36:37]*** Brake cut motor [10:36:38]Read from MH i2c: 01 [10:36:38]MH_I2C_Read... [10:36:38]*** Stop cut motor [10:36:38]*** Cut end [10:36:38]Read from MH i2c: 01 07 00 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: 01 07 00 90 0B 00 00 00 00 00 FF 0F B0 [10:36:38]process_action close_receipt done [10:36:38]requested_data is exist [10:36:38]produce_requested_data [10:36:38]requested_item fm.sn is exist - process it [10:36:38]wFMCommunicate request_size=4 [10:36:38]MH_SAM_APDU [10:36:38]CAPDU: 80 11 00 00 [10:36:38]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [10:36:38]Write i2c OK [10:36:38]MH_I2C_Read... [10:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:38]Read from MH i2c: E2 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 17 00 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6B [10:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:36:38]wFMCommunicate OK [10:36:38]requested_item fd.num is exist - process it [10:36:38]SAM_PROTO_GetFieldsCounters [10:36:38]wFMCommunicate request_size=4 [10:36:38]MH_SAM_APDU [10:36:38]CAPDU: 80 13 00 00 [10:36:38]Write to MH i2c: E2 08 00 92 0B 80 13 00 00 00 00 00 00 19 [10:36:38]Write i2c OK [10:36:38]MH_I2C_Read... [10:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:38]Read from MH i2c: E2 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 62 00 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 62 00 92 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9A 85 00 00 0E 04 04 00 43 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 EE [10:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9A 85 00 00 0E 04 04 00 43 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 [10:36:38]wFMCommunicate OK [10:36:38]SAM_PROTO_GetFieldsCounters done [10:36:38]requested_item shift.num is exist - process it [10:36:38]requested_item shift.opened is exist - process it [10:36:38]req_shift_opened [10:36:38]FM_GetShiftState [10:36:38]SAM_PROTO_GetShiftState [10:36:38]wFMCommunicate request_size=4 [10:36:38]MH_SAM_APDU [10:36:38]CAPDU: 80 13 01 00 [10:36:38]Write to MH i2c: E2 08 00 93 0B 80 13 01 00 00 00 00 00 1B [10:36:38]Write i2c OK [10:36:38]MH_I2C_Read... [10:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:38]Read from MH i2c: E2 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 0E 00 [10:36:38]MH_I2C_Read... [10:36:38]Read from MH i2c: E2 0E 00 93 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 66 [10:36:38]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:36:38]wFMCommunicate OK [10:36:38]SAM_PROTO_GetShiftState done [10:36:38]FM_GetShiftState done [10:36:38]req_shift_opened done [10:36:38]requested_item shift.open_date is exist - process it [10:36:38]req_shift_open_date [10:36:38]req_shift_open_date done [10:36:38]produce_requested_data done [10:36:38]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34202,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:36:38]process_action_free close_receipt [10:36:38]json_value_free [10:36:38]json_value_free done [10:36:38]process_json_proto returns [10:36:38]Send response to host [10:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34202,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:36:38]free response buf [10:36:38]execute_script done [10:36:38]execute_script returns [10:36:38]free content buf [10:36:38]Sock 7.Close socket [10:36:38]Sock 7.Thread stoped [10:36:40]accept exits with 9 [10:36:40]New connection [10:36:40]New thread 3067436388 created [10:36:40]Thread 3067293028 joined [10:36:40]Waiting for new connection... [10:36:40] Sock 9.Parse request [10:36:40]Sock 9.Check first char [10:36:40]Sock 9.First char is OK [10:36:40]request: POST /json_proto HTTP/1.0 [10:36:40]Method: POST [10:36:40]URL: /json_proto [10:36:40]Method is POST - this is cgi request [10:36:40]url: /json_proto [10:36:40]query_string will be loaded in cgi processing [10:36:40]execute_cgi json_proto POST (null) [10:36:40]execute_cgi path=json_proto method=POST [10:36:40]POST find Content-Length [10:36:40]Host: 172.17.38.134:8080 [10:36:40]Content-Length: 738 [10:36:40]Content-Type: application/json [10:36:40] [10:36:40]POST finish read [10:36:40]Found Content-Length = 738 [10:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 34202, "base_FM": "0000000000875095", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "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" ] } } [10:36:40]execute_script... [10:36:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 34202, "base_FM": "0000000000875095", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "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" ] } } [10:36:40]POST & json_proto [10:36:40]process_json_proto [10:36:40]json parsed OK: [10:36:40]protocol is kg_v1.0 [10:36:40]action value=close_receipt [10:36:40]process_action close_receipt [10:36:40]cmd_close_receipt [10:36:40]MH_GetDate [10:36:40]Write to MH i2c: F0 00 00 94 0B 8E [10:36:40]Write i2c OK [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: F0 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: F0 09 00 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: F0 09 00 94 0B 00 3C 63 71 66 13 9C 7C 64 9C [10:36:40]GetLastDocTimeStamp 1718706997 [10:36:40]current date 1718707004 [10:36:40]FM_GetShiftState [10:36:40]SAM_PROTO_GetShiftState [10:36:40]wFMCommunicate request_size=4 [10:36:40]MH_SAM_APDU [10:36:40]CAPDU: 80 13 01 00 [10:36:40]Write to MH i2c: E2 08 00 95 0B 80 13 01 00 00 00 00 00 1D [10:36:40]Write i2c OK [10:36:40]MH_I2C_Read... [10:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:40]Read from MH i2c: E2 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: E2 0E 00 [10:36:40]MH_I2C_Read... [10:36:40]Read from MH i2c: E2 0E 00 95 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 68 [10:36:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:36:40]wFMCommunicate OK [10:36:40]SAM_PROTO_GetShiftState done [10:36:40]FM_GetShiftState done [10:36:40]opened in 1718670230 [10:36:40]opened+sec_in_day 1718756630 [10:36:40]quantity*price = 300034 [10:36:40]sum+1 = 300035 [10:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 25 18.06.2024 10:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФД осн.: 34202 ФМ осн.: 0000000000875095 ФМ: 0000000000875095 ФД: 34203 ФПД: 34489953781940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103644&type=2&operation_type=1&fn_number=0000000000875095&fd_number=34203&fm=34489953781940&tin=02508201610067®Number=0000000000092786&sum=300000 [10:36:42]StoreToDocumentArchive [10:36:42]shift 323 fd 34203 [10:36:42]save to /storage/0323/doc_00034203 [10:36:42]save last doc name /storage/0323/doc_00034203 to /storage/kkm_last_doc_name [10:36:42]save OK [10:36:42]Clear old archive folders... [10:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:36:42]tlvbuf is 01A23820 [10:36:42]SAM_PROTO_ClearQueue [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 09 00 00 [10:36:42]Write to MH i2c: E2 08 00 A4 0B 80 09 00 00 00 00 00 00 21 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 A4 0B 00 90 00 23 [10:36:42]RAPDU: 90 00 [10:36:42]wFMCommunicate OK [10:36:42]SAM_PROTO_ClearQueue done [10:36:42]KKMCreateOFDPacket [10:36:42]OFDProtocolAddRootSTLVToBuf [10:36:42]FM_MakeSignedData [10:36:42]FM_MakeSignedData [10:36:42]SAM_PROTO_SignData [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 0D 01 02 [10:36:42]Write to MH i2c: E2 08 00 A5 0B 80 0D 01 02 00 00 00 00 29 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [10:36:42]RAPDU: 90 00 [10:36:42]wFMCommunicate OK [10:36:42]wFMCommunicate request_size=255 [10:36:42]MH_SAM_APDU [10:36:42]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3C 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 9A 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 [10:36:42]Write to MH i2c: E2 02 01 A6 0B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3C 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 9A 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 00 00 A7 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]OFD Sender: No OFD packet to send [10:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [10:36:42]RAPDU: 90 00 [10:36:42]wFMCommunicate OK [10:36:42]wFMCommunicate request_size=38 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 85 00 00 35 04 06 00 1F 5E 51 71 88 B4 [10:36:42]Write to MH i2c: E2 29 00 A7 0B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 85 00 00 35 04 06 00 1F 5E 51 71 88 B4 00 00 52 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [10:36:42]RAPDU: 90 00 [10:36:42]wFMCommunicate OK [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 0D 03 02 [10:36:42]Write to MH i2c: E2 08 00 A8 0B 80 0D 03 02 00 00 00 00 2E [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 0B 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 0B 00 A8 0B 00 26 53 A2 31 BE D5 5B FF 90 00 68 [10:36:42]RAPDU: 26 53 A2 31 BE D5 5B FF 90 00 [10:36:42]wFMCommunicate OK [10:36:42]SAM_PROTO_SignData done [10:36:42]FM_MakeSignedData done [10:36:42]CreateOFDProtocolMessage [10:36:42]wFMCommunicate request_size=4 [10:36:42]MH_SAM_APDU [10:36:42]CAPDU: 80 11 00 00 [10:36:42]Write to MH i2c: E2 08 00 A9 0B 80 11 00 00 00 00 00 00 2E [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:42]Read from MH i2c: E2 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 17 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: E2 17 00 A9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 83 [10:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:36:42]wFMCommunicate OK [10:36:42]CreateOFDProtocolMessage done [10:36:42]OFDSenderStorePacket 34203 [10:36:42]StoreOFDPacket docnum=34203 [10:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2B 01 00 00 30 90 23 01 02 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3C 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 9A 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 85 00 00 35 04 06 00 1F 5E 51 71 88 B4 26 53 A2 31 BE D5 5B FF [10:36:42]CheckFolder [10:36:42]dirname=/storage/ofd_packets [10:36:42]CheckFolder done [10:36:42]ProducePacketName [10:36:42]name=ofd_packets/00034203 [10:36:42]NVStorageSaveData ofd_packets/00034203 [10:36:42]File name is /storage/ofd_packets/00034203 [10:36:42]Write 329 bytes [10:36:42]NVStorageSaveData done [10:36:42]OFDSenderStorePacket done [10:36:42]KKMCreateOFDPacket done [10:36:42]NVStorageSaveData kkm_last_timestamp [10:36:42]File name is /storage/kkm_last_timestamp [10:36:42]Write 4 bytes [10:36:42]NVStorageSaveData done [10:36:42]ExternCall_PrintAddStr [10:36:42]wPrintStart [10:36:42]Write to MH i2c: 01 00 00 AA 0B B5 [10:36:42]Write i2c OK [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: 01 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: 01 07 00 [10:36:42]MH_I2C_Read... [10:36:42]Read from MH i2c: 01 07 00 AA 0B 00 00 00 00 00 FF 0F CA [10:36:42]RasterBufferAndPrint [10:36:42]line Счет N : (1)672518 [10:36:42]line ИНН: 02508201610067 [10:36:42]line Контрольно-Кассовый Чек [10:36:42]line ВОЗВРАТ ПРОДАЖИ [10:36:42]line ТРК (МРК, ГНК) : 41 [10:36:42]line Товар: 2710124500 [10:36:42]line Аи-95-К-5 [10:36:42]line 40.600 * 73.90 [10:36:42]line = 3000.34 [10:36:42]line НДС 12% НСП 1% [10:36:42]line > о реализуемом товаре [10:36:42]line ОКРУГЛЕНИЕ: -0.34 [10:36:42]line ИТОГО: 3000.00 [10:36:42]line НСП 1% : 26.55 [10:36:42]line НДС 12% : 318.62 [10:36:42]line Наличными: 3000.00 [10:36:42]line Безнал.: 0.00 [10:36:42]line Место: АЗС № 120 "Партнер Нефть" [10:36:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:36:42]line СНО: Общий режим [10:36:42]line Чек 25 18.06.2024 10:36 [10:36:42]line Смена: 323 ФФД: 1.0 [10:36:42]line ЗНМ: 0300000172 [10:36:42]line РНМ: 0000000000092786 [10:36:42]line Версия ККМ: 001 [10:36:42]line ФД осн.: 34202 [10:36:42]line ФМ осн.: 0000000000875095 [10:36:42]line ФМ: 0000000000875095 [10:36:42]line ФД: 34203 [10:36:42]line ФПД: 34489953781940 [10:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T103644&type=2&operation_type=1&fn_number=0000000000875095&fd_number=34203&fm=34489953781940&tin=02508201610067®Number=0000000000092786&sum=300000 [10:36:42]written 0, free lines is 4095 [10:36:42]OFD Sender: Processing packet 34203 [packets to send 8, broken 7] [10:36:42]ProducePacketName [10:36:42]name=ofd_packets/00034203 [10:36:42]OFD Sender: To server: pG, [10:36:42]CommunicateWithHost lk.salyk.kg:30040 [10:36:42]ConnectInit lk.salyk.kg [10:36:42]Connected sock=10 [10:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2B 01 00 00 30 90 23 01 02 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3C 63 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 9A 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 85 00 00 35 04 06 00 1F 5E 51 71 88 B4 26 53 A2 31 BE D5 5B FF [10:36:43]Write to MH i2c: 01 00 00 D5 0B E0 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 07 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: 01 07 00 D5 0B 00 00 00 00 00 E1 0C D4 [10:36:43]RasterBufferAndPrint [10:36:43]line [10:36:43]line [10:36:43]line [10:36:43]line [10:36:43]line [10:36:43]written 0, free lines is 3306 [10:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 EA A4 47 00 E6 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9B 85 00 00 F4 03 04 00 0C 0A 71 66 B6 04 01 00 00 B2 FB EB 2A 11 D9 81 D6 [10:36:43]CommunicateWithHost err = 0 [10:36:43]CheckOFDResponse [10:36:43]1017 (14) - 77093643461234 [10:36:43]1041 (16) - 0000000000875095 [10:36:43]1040 (4) - 34203 [10:36:43]1012 (4) - 18.06.2024 04:16 [10:36:43]1206 (1) - 0 [10:36:43]OFD Sender: Remove packet 34203 [10:36:43]ProducePacketName [10:36:43]name=ofd_packets/00034203 [10:36:43]NVStorageDeleteData [10:36:43]MH_Cut [10:36:43]Write to MH i2c: D1 01 00 DC 0B 01 B9 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: D1 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: D1 01 00 [10:36:43]MH_I2C_Read... [10:36:43]Read from MH i2c: D1 01 00 DC 0B 00 B8 [10:36:43]Write to MH i2c: 01 00 00 DD 0B E8 [10:36:43]Write i2c OK [10:36:43]MH_I2C_Read... [10:36:43]OFD Sender: No OFD packet to send [10:36:43]*** Cut start [10:36:43]*** Partial cut [10:36:43]*** CUTSNS_PIN = 1 [10:36:44]*** CUTSNS_PIN = 0 [10:36:44]*** Brake cut motor [10:36:44]Read from MH i2c: 01 [10:36:44]MH_I2C_Read... [10:36:44]*** Stop cut motor [10:36:44]*** Cut end [10:36:44]Read from MH i2c: 01 07 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: 01 07 00 DD 0B 00 00 00 00 00 FF 0F FD [10:36:44]process_action close_receipt done [10:36:44]requested_data is exist [10:36:44]produce_requested_data [10:36:44]requested_item fm.sn is exist - process it [10:36:44]wFMCommunicate request_size=4 [10:36:44]MH_SAM_APDU [10:36:44]CAPDU: 80 11 00 00 [10:36:44]Write to MH i2c: E2 08 00 DE 0B 80 11 00 00 00 00 00 00 63 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:44]Read from MH i2c: E2 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 17 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 17 00 DE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B8 [10:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:36:44]wFMCommunicate OK [10:36:44]requested_item fd.num is exist - process it [10:36:44]SAM_PROTO_GetFieldsCounters [10:36:44]wFMCommunicate request_size=4 [10:36:44]MH_SAM_APDU [10:36:44]CAPDU: 80 13 00 00 [10:36:44]Write to MH i2c: E2 08 00 DF 0B 80 13 00 00 00 00 00 00 66 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:44]Read from MH i2c: E2 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 62 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 62 00 DF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9B 85 00 00 0E 04 04 00 43 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 3F [10:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9B 85 00 00 0E 04 04 00 43 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 [10:36:44]wFMCommunicate OK [10:36:44]SAM_PROTO_GetFieldsCounters done [10:36:44]requested_item shift.num is exist - process it [10:36:44]requested_item shift.opened is exist - process it [10:36:44]req_shift_opened [10:36:44]FM_GetShiftState [10:36:44]SAM_PROTO_GetShiftState [10:36:44]wFMCommunicate request_size=4 [10:36:44]MH_SAM_APDU [10:36:44]CAPDU: 80 13 01 00 [10:36:44]Write to MH i2c: E2 08 00 E0 0B 80 13 01 00 00 00 00 00 68 [10:36:44]Write i2c OK [10:36:44]MH_I2C_Read... [10:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:44]Read from MH i2c: E2 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 0E 00 [10:36:44]MH_I2C_Read... [10:36:44]Read from MH i2c: E2 0E 00 E0 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B3 [10:36:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:36:44]wFMCommunicate OK [10:36:44]SAM_PROTO_GetShiftState done [10:36:44]FM_GetShiftState done [10:36:44]req_shift_opened done [10:36:44]requested_item shift.open_date is exist - process it [10:36:44]req_shift_open_date [10:36:44]req_shift_open_date done [10:36:44]produce_requested_data done [10:36:44]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34203,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:36:44]process_action_free close_receipt [10:36:44]json_value_free [10:36:44]json_value_free done [10:36:44]process_json_proto returns [10:36:44]Send response to host [10:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34203,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:36:44]free response buf [10:36:44]execute_script done [10:36:44]execute_script returns [10:36:44]free content buf [10:36:44]Sock 9.Close socket [10:36:44]Sock 9.Thread stoped [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]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:13]accept exits with 7 [10:46:13]New connection [10:46:13]New thread 3067293028 created [10:46:13]Thread 3067436388 joined [10:46:13]Waiting for new connection... [10:46:13] Sock 7.Parse request [10:46:13]Sock 7.Check first char [10:46:13]Sock 7.First char is OK [10:46:13]request: POST /json_proto HTTP/1.0 [10:46:13]Method: POST [10:46:13]URL: /json_proto [10:46:13]Method is POST - this is cgi request [10:46:13]url: /json_proto [10:46:13]query_string will be loaded in cgi processing [10:46:13]execute_cgi json_proto POST (null) [10:46:13]execute_cgi path=json_proto method=POST [10:46:13]POST find Content-Length [10:46:13]Host: 172.17.38.134:8080 [10:46:13]Content-Length: 895 [10:46:13]Content-Type: application/json [10:46:13] [10:46:13]POST finish read [10:46:13]Found Content-Length = 895 [10:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184002", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:13]execute_script... [10:46:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184002", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:13]POST & json_proto [10:46:13]process_json_proto [10:46:13]json parsed OK: [10:46:13]protocol is kg_v1.0 [10:46:13]action value=close_receipt [10:46:13]process_action close_receipt [10:46:13]cmd_close_receipt [10:46:13]MH_GetDate [10:46:13]Write to MH i2c: F0 00 00 E1 0B DB [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 09 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 09 00 E1 0B 00 78 65 71 66 13 9C 7C 64 27 [10:46:13]GetLastDocTimeStamp 1718707004 [10:46:13]current date 1718707576 [10:46:13]FM_GetShiftState [10:46:13]SAM_PROTO_GetShiftState [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 13 01 00 [10:46:13]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B5 [10:46:13]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_GetShiftState done [10:46:13]FM_GetShiftState done [10:46:13]opened in 1718670230 [10:46:13]opened+sec_in_day 1718756630 [10:46:13]quantity*price = 14500 [10:46:13]sum+1 = 14501 [10:46:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.40 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 26 18.06.2024 10:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34204 ФПД: 9159442960422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104616&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34204&fm=9159442960422&tin=02508201610067®Number=0000000000092786&sum=25800 0 [10:46:14]StoreToDocumentArchive [10:46:14]shift 323 fd 34204 [10:46:14]save to /storage/0323/doc_00034204 [10:46:14]save last doc name /storage/0323/doc_00034204 to /storage/kkm_last_doc_name [10:46:14]save OK [10:46:14]Clear old archive folders... [10:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=381 [10:46:14]tlvbuf is 019BA250 [10:46:14]SAM_PROTO_ClearQueue [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 09 00 00 [10:46:14]Write to MH i2c: E2 08 00 EF 0B 80 09 00 00 00 00 00 00 6C [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_ClearQueue done [10:46:14]KKMCreateOFDPacket [10:46:14]OFDProtocolAddRootSTLVToBuf [10:46:14]FM_MakeSignedData [10:46:14]FM_MakeSignedData [10:46:14]SAM_PROTO_SignData [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 0D 01 02 [10:46:14]Write to MH i2c: E2 08 00 F0 0B 80 0D 01 02 00 00 00 00 74 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 F0 0B 00 90 00 6F [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]wFMCommunicate request_size=255 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 [10:46:14]Write to MH i2c: E2 02 01 F1 0B 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 06 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]wFMCommunicate request_size=140 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 85 00 00 35 04 06 00 08 54 99 58 10 26 [10:46:14]Write to MH i2c: E2 8F 00 F2 0B 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 85 00 00 35 04 06 00 08 54 99 58 10 26 00 00 5B [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 03 02 [10:46:15]Write to MH i2c: E2 08 00 F3 0B 80 0D 03 02 00 00 00 00 79 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 F3 0B 00 12 38 67 7A 07 6C 18 B1 90 00 E1 [10:46:15]RAPDU: 12 38 67 7A 07 6C 18 B1 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_SignData done [10:46:15]FM_MakeSignedData done [10:46:15]CreateOFDProtocolMessage [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 11 00 00 [10:46:15]Write to MH i2c: E2 08 00 F4 0B 80 11 00 00 00 00 00 00 79 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 F4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CE [10:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:46:15]wFMCommunicate OK [10:46:15]CreateOFDProtocolMessage done [10:46:15]OFDSenderStorePacket 34204 [10:46:15]StoreOFDPacket docnum=34204 [10:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 91 01 00 00 91 B1 89 01 29 09 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 85 00 00 35 04 06 00 08 54 99 58 10 26 12 38 67 7A 07 6C 18 B1 [10:46:15]CheckFolder [10:46:15]dirname=/storage/ofd_packets [10:46:15]CheckFolder done [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00034204 [10:46:15]NVStorageSaveData ofd_packets/00034204 [10:46:15]File name is /storage/ofd_packets/00034204 [10:46:15]Write 431 bytes [10:46:15]NVStorageSaveData done [10:46:15]OFDSenderStorePacket done [10:46:15]KKMCreateOFDPacket done [10:46:15]NVStorageSaveData kkm_last_timestamp [10:46:15]File name is /storage/kkm_last_timestamp [10:46:15]Write 4 bytes [10:46:15]NVStorageSaveData done [10:46:15]ExternCall_PrintAddStr [10:46:15]wPrintStart [10:46:15]Write to MH i2c: 01 00 00 F5 0B 00 [10:46:15]OFD Sender: Processing packet 34204 [packets to send 8, broken 7] [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00034204 [10:46:15]OFD Sender: To server: pG, [10:46:15]CommunicateWithHost lk.salyk.kg:30040 [10:46:15]ConnectInit lk.salyk.kg [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 FF 0F 15 [10:46:15]RasterBufferAndPrint [10:46:15]line Счет N : (3)184002 [10:46:15]line ИНН: 02508201610067 [10:46:15]line Контрольно-Кассовый Чек [10:46:15]line ПРОДАЖА [10:46:15]line Товар: 48744119 [10:46:15]line Сигареты Winston Xstyle Dual [10:46:15]line 1.000 * 145.00 [10:46:15]line = 145.00 [10:46:15]line НДС 12% НСП 1% [10:46:15]line > о реализуемом товаре [10:46:15]line Товар: 5449000054227 [10:46:15]line Напиток Кока-Кола 1л [10:46:15]line 1.000 * 113.00 [10:46:15]line = 113.00 [10:46:15]line НДС 12% НСП 1% [10:46:15]line > о реализуемом товаре [10:46:15]line ИТОГО: 258.00 [10:46:15]line НСП 1% : 2.28 [10:46:15]line НДС 12% : 27.40 [10:46:15]line Наличными: 258.00 [10:46:15]line Безнал.: 0.00 [10:46:15]line Место: АЗС № 120 "Партнер Нефть" [10:46:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:46:15]line СНО: Общий режим [10:46:15]line Чек 26 18.06.2024 10:46 [10:46:15]line Смена: 323 ФФД: 1.0 [10:46:15]line ЗНМ: 0300000172 [10:46:15]line РНМ: 0000000000092786 [10:46:15]line Версия ККМ: 001 [10:46:15]line ФМ: 0000000000875095 [10:46:15]line ФД: 34204 [10:46:15]line ФПД: 9159442960422 [10:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104616&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34204&fm=9159442960422&tin=02508201610067®Number=0000000000092786&sum=25800 [10:46:15]line 0 [10:46:15]written 0, free lines is 4095 [10:46:15]Connected sock=10 [10:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 91 01 00 00 91 B1 89 01 29 09 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 85 00 00 35 04 06 00 08 54 99 58 10 26 12 38 67 7A 07 6C 18 B1 [10:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D8 84 47 00 14 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9C 85 00 00 F4 03 04 00 49 0C 71 66 B6 04 01 00 00 D4 85 29 E3 1B D9 DE 14 [10:46:15]CommunicateWithHost err = 0 [10:46:15]CheckOFDResponse [10:46:15]1017 (14) - 77093643461234 [10:46:15]1041 (16) - 0000000000875095 [10:46:15]1040 (4) - 34204 [10:46:15]1012 (4) - 18.06.2024 04:25 [10:46:15]1206 (1) - 0 [10:46:15]OFD Sender: Remove packet 34204 [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00034204 [10:46:15]NVStorageDeleteData [10:46:16]Write to MH i2c: 01 00 00 23 0C 2F [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 07 00 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 8D 0C CF [10:46:16]RasterBufferAndPrint [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]written 0, free lines is 3220 [10:46:16]MH_Cut [10:46:16]Write to MH i2c: D1 01 00 2A 0C 01 08 [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 01 00 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 01 00 2A 0C 00 07 [10:46:16]Write to MH i2c: 01 00 00 2B 0C 37 [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]OFD Sender: No OFD packet to send [10:46:16]*** Cut start [10:46:16]*** Partial cut [10:46:16]*** CUTSNS_PIN = 1 [10:46:16]*** CUTSNS_PIN = 0 [10:46:17]*** Brake cut motor [10:46:17]Read from MH i2c: 01 [10:46:17]MH_I2C_Read... [10:46:17]*** Stop cut motor [10:46:17]*** Cut end [10:46:17]Read from MH i2c: 01 07 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: 01 07 00 2B 0C 00 00 00 00 00 FF 0F 4C [10:46:17]process_action close_receipt done [10:46:17]requested_data is exist [10:46:17]produce_requested_data [10:46:17]requested_item fm.sn is exist - process it [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 11 00 00 [10:46:17]Write to MH i2c: E2 08 00 2C 0C 80 11 00 00 00 00 00 00 B2 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 2C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 07 [10:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:46:17]wFMCommunicate OK [10:46:17]requested_item fd.num is exist - process it [10:46:17]SAM_PROTO_GetFieldsCounters [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 00 00 [10:46:17]Write to MH i2c: E2 08 00 2D 0C 80 13 00 00 00 00 00 00 B5 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 2D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9C 85 00 00 0E 04 04 00 43 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 92 [10:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9C 85 00 00 0E 04 04 00 43 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 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetFieldsCounters done [10:46:17]requested_item shift.num is exist - process it [10:46:17]requested_item shift.opened is exist - process it [10:46:17]req_shift_opened [10:46:17]FM_GetShiftState [10:46:17]SAM_PROTO_GetShiftState [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 01 00 [10:46:17]Write to MH i2c: E2 08 00 2E 0C 80 13 01 00 00 00 00 00 B7 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 2E 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 02 [10:46:17]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetShiftState done [10:46:17]FM_GetShiftState done [10:46:17]req_shift_opened done [10:46:17]requested_item shift.open_date is exist - process it [10:46:17]req_shift_open_date [10:46:17]req_shift_open_date done [10:46:17]produce_requested_data done [10:46:17]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34204,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:46:17]process_action_free close_receipt [10:46:17]json_value_free [10:46:17]json_value_free done [10:46:17]process_json_proto returns [10:46:17]Send response to host [10:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34204,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:46:17]free response buf [10:46:17]execute_script done [10:46:17]execute_script returns [10:46:17]free content buf [10:46:17]Sock 7.Close socket [10:46:17]Sock 7.Thread stoped [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]accept exits with 9 [10:47:36]New connection [10:47:36]New thread 3067436388 created [10:47:36]Thread 3067293028 joined [10:47:36]Waiting for new connection... [10:47:36] Sock 9.Parse request [10:47:36]Sock 9.Check first char [10:47:36]Sock 9.First char is OK [10:47:36]request: POST /json_proto HTTP/1.0 [10:47:36]Method: POST [10:47:36]URL: /json_proto [10:47:36]Method is POST - this is cgi request [10:47:36]url: /json_proto [10:47:36]query_string will be loaded in cgi processing [10:47:36]execute_cgi json_proto POST (null) [10:47:36]execute_cgi path=json_proto method=POST [10:47:36]POST find Content-Length [10:47:36]Host: 172.17.38.134:8080 [10:47:36]Content-Length: 838 [10:47:36]Content-Type: application/json [10:47:36] [10:47:36]POST finish read [10:47:36]Found Content-Length = 838 [10:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184003", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.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" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:36]execute_script... [10:47: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 : (3)184003", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.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" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:36]POST & json_proto [10:47:36]process_json_proto [10:47:36]json parsed OK: [10:47:36]protocol is kg_v1.0 [10:47:36]action value=close_receipt [10:47:36]process_action close_receipt [10:47:36]cmd_close_receipt [10:47:36]MH_GetDate [10:47:36]Write to MH i2c: F0 00 00 2F 0C 2A [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: F0 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: F0 09 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: F0 09 00 2F 0C 00 CB 65 71 66 13 9C 7C 64 C9 [10:47:36]GetLastDocTimeStamp 1718707576 [10:47:36]current date 1718707659 [10:47:36]FM_GetShiftState [10:47:36]SAM_PROTO_GetShiftState [10:47:36]wFMCommunicate request_size=4 [10:47:36]MH_SAM_APDU [10:47:36]CAPDU: 80 13 01 00 [10:47:36]Write to MH i2c: E2 08 00 30 0C 80 13 01 00 00 00 00 00 B9 [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:36]Read from MH i2c: E2 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 0E 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 0E 00 30 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 04 [10:47:36]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:47:36]wFMCommunicate OK [10:47:36]SAM_PROTO_GetShiftState done [10:47:36]FM_GetShiftState done [10:47:36]opened in 1718670230 [10:47:36]opened+sec_in_day 1718756630 [10:47:36]quantity*price = 6700 [10:47:36]sum+1 = 6701 [10:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 0.00 Безнал.: 67.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 27 18.06.2024 10:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34205 ФПД: 19599747418119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104739&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34205&fm=19599747418119&tin=02508201610067®Number=0000000000092786&sum=6700 0 [10:47:37]StoreToDocumentArchive [10:47:37]shift 323 fd 34205 [10:47:37]save to /storage/0323/doc_00034205 [10:47:37]save last doc name /storage/0323/doc_00034205 to /storage/kkm_last_doc_name [10:47:37]save OK [10:47:37]Clear old archive folders... [10:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=284 [10:47:37]tlvbuf is 019B9DD0 [10:47:37]SAM_PROTO_ClearQueue [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 09 00 00 [10:47:37]Write to MH i2c: E2 08 00 3D 0C 80 09 00 00 00 00 00 00 BB [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_ClearQueue done [10:47:37]KKMCreateOFDPacket [10:47:37]OFDProtocolAddRootSTLVToBuf [10:47:37]FM_MakeSignedData [10:47:37]FM_MakeSignedData [10:47:37]SAM_PROTO_SignData [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 01 02 [10:47:37]Write to MH i2c: E2 08 00 3E 0C 80 0D 01 02 00 00 00 00 C3 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=255 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [10:47:37]Write to MH i2c: E2 02 01 3F 0C 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 51 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=43 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 85 00 00 35 04 06 00 11 D3 6B FB 88 07 [10:47:37]Write to MH i2c: E2 2E 00 40 0C 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 85 00 00 35 04 06 00 11 D3 6B FB 88 07 00 00 AB [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 40 0C 00 90 00 C0 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 03 02 [10:47:37]Write to MH i2c: E2 08 00 41 0C 80 0D 03 02 00 00 00 00 C8 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 41 0C 00 E0 44 8E 5B C6 88 C6 C5 90 00 AF [10:47:37]RAPDU: E0 44 8E 5B C6 88 C6 C5 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_SignData done [10:47:37]FM_MakeSignedData done [10:47:37]CreateOFDProtocolMessage [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 11 00 00 [10:47:37]Write to MH i2c: E2 08 00 42 0C 80 11 00 00 00 00 00 00 C8 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 17 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 17 00 42 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1D [10:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:47:37]wFMCommunicate OK [10:47:37]CreateOFDProtocolMessage done [10:47:37]OFDSenderStorePacket 34205 [10:47:37]StoreOFDPacket docnum=34205 [10:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 CE 9B 28 01 95 A0 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 85 00 00 35 04 06 00 11 D3 6B FB 88 07 E0 44 8E 5B C6 88 C6 C5 [10:47:37]CheckFolder [10:47:37]dirname=/storage/ofd_packets [10:47:37]CheckFolder done [10:47:37]ProducePacketName [10:47:37]name=ofd_packets/00034205 [10:47:37]NVStorageSaveData ofd_packets/00034205 [10:47:37]File name is /storage/ofd_packets/00034205 [10:47:37]Write 334 bytes [10:47:37]NVStorageSaveData done [10:47:37]OFDSenderStorePacket done [10:47:37]KKMCreateOFDPacket done [10:47:37]NVStorageSaveData kkm_last_timestamp [10:47:37]File name is /storage/kkm_last_timestamp [10:47:37]Write 4 bytes [10:47:37]NVStorageSaveData done [10:47:37]ExternCall_PrintAddStr [10:47:37]wPrintStart [10:47:37]Write to MH i2c: 01 00 00 43 0C 4F [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 07 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FF 0F 64 [10:47:37]RasterBufferAndPrint [10:47:37]line Счет N : (3)184003 [10:47:37]line ИНН: 02508201610067 [10:47:37]line Контрольно-Кассовый Чек [10:47:37]line ПРОДАЖА [10:47:37]line Товар: 6931280300549 [10:47:37]line Зажигалка Cricket ПН пьезо [10:47:37]line 1.000 * 67.00 [10:47:37]line = 67.00 [10:47:37]line НДС 12% НСП 1% [10:47:37]line > о реализуемом товаре [10:47:37]line ИТОГО: 67.00 [10:47:37]line НСП 1% : 0.59 [10:47:37]line НДС 12% : 7.11 [10:47:37]line Наличными: 0.00 [10:47:37]line Безнал.: 67.00 [10:47:37]line Место: АЗС № 120 "Партнер Нефть" [10:47:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:47:37]line СНО: Общий режим [10:47:37]line Чек 27 18.06.2024 10:47 [10:47:37]line Смена: 323 ФФД: 1.0 [10:47:37]line ЗНМ: 0300000172 [10:47:37]line РНМ: 0000000000092786 [10:47:37]line Версия ККМ: 001 [10:47:37]line Платежная система: Бакай Банк [10:47:37]line ФМ: 0000000000875095 [10:47:37]line ФД: 34205 [10:47:37]line ФПД: 19599747418119 [10:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T104739&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34205&fm=19599747418119&tin=02508201610067®Number=0000000000092786&sum=6700 [10:47:38]line 0 [10:47:38]OFD Sender: Processing packet 34205 [packets to send 8, broken 7] [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00034205 [10:47:38]OFD Sender: To server: pG, [10:47:38]CommunicateWithHost lk.salyk.kg:30040 [10:47:38]ConnectInit lk.salyk.kg [10:47:38]written 0, free lines is 4095 [10:47:38]Connected sock=10 [10:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 CE 9B 28 01 95 A0 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 CB 65 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 85 00 00 35 04 06 00 11 D3 6B FB 88 07 E0 44 8E 5B C6 88 C6 C5 [10:47:38]Write to MH i2c: 01 00 00 6D 0C 79 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 6D 0C 00 00 00 00 00 D4 0C 60 [10:47:38]RasterBufferAndPrint [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]written 0, free lines is 3290 [10:47:38]MH_Cut [10:47:38]Write to MH i2c: D1 01 00 74 0C 01 52 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 74 0C 00 51 [10:47:38]Write to MH i2c: 01 00 00 75 0C 81 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 41 7E 47 00 98 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9D 85 00 00 F4 03 04 00 9B 0C 71 66 B6 04 01 00 00 97 82 53 9B 59 E0 E9 13 [10:47:38]CommunicateWithHost err = 0 [10:47:38]CheckOFDResponse [10:47:38]1017 (14) - 77093643461234 [10:47:38]1041 (16) - 0000000000875095 [10:47:38]1040 (4) - 34205 [10:47:38]1012 (4) - 18.06.2024 04:27 [10:47:38]1206 (1) - 0 [10:47:38]OFD Sender: Remove packet 34205 [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00034205 [10:47:38]NVStorageDeleteData [10:47:39]OFD Sender: No OFD packet to send [10:47:39]*** Cut start [10:47:39]*** Partial cut [10:47:39]*** CUTSNS_PIN = 1 [10:47:39]*** CUTSNS_PIN = 0 [10:47:39]*** Brake cut motor [10:47:40]Read from MH i2c: 01 [10:47:40]MH_I2C_Read... [10:47:40]*** Stop cut motor [10:47:40]*** Cut end [10:47:40]Read from MH i2c: 01 07 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 07 00 75 0C 00 00 00 00 00 FF 0F 96 [10:47:40]process_action close_receipt done [10:47:40]requested_data is exist [10:47:40]produce_requested_data [10:47:40]requested_item fm.sn is exist - process it [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 11 00 00 [10:47:40]Write to MH i2c: E2 08 00 76 0C 80 11 00 00 00 00 00 00 FC [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 76 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 51 [10:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:47:40]wFMCommunicate OK [10:47:40]requested_item fd.num is exist - process it [10:47:40]SAM_PROTO_GetFieldsCounters [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 13 00 00 [10:47:40]Write to MH i2c: E2 08 00 77 0C 80 13 00 00 00 00 00 00 FF [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 62 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 62 00 77 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9D 85 00 00 0E 04 04 00 43 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 E0 [10:47:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9D 85 00 00 0E 04 04 00 43 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 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_GetFieldsCounters done [10:47:40]requested_item shift.num is exist - process it [10:47:40]requested_item shift.opened is exist - process it [10:47:40]req_shift_opened [10:47:40]FM_GetShiftState [10:47:40]SAM_PROTO_GetShiftState [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 13 01 00 [10:47:40]Write to MH i2c: E2 08 00 78 0C 80 13 01 00 00 00 00 00 01 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0E 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0E 00 78 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 4C [10:47:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_GetShiftState done [10:47:40]FM_GetShiftState done [10:47:40]req_shift_opened done [10:47:40]requested_item shift.open_date is exist - process it [10:47:40]req_shift_open_date [10:47:40]req_shift_open_date done [10:47:40]produce_requested_data done [10:47:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34205,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:47:40]process_action_free close_receipt [10:47:40]json_value_free [10:47:40]json_value_free done [10:47:40]process_json_proto returns [10:47:40]Send response to host [10:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34205,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:47:40]free response buf [10:47:40]execute_script done [10:47:40]execute_script returns [10:47:40]free content buf [10:47:40]Sock 9.Close socket [10:47:40]Sock 9.Thread stoped [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:57]accept exits with 7 [10:54:57]New connection [10:54:57]New thread 3067293028 created [10:54:57]Thread 3067436388 joined [10:54:57]Waiting for new connection... [10:54:57] Sock 7.Parse request [10:54:57]Sock 7.Check first char [10:54:57]Sock 7.First char is OK [10:54:57]request: POST /json_proto HTTP/1.0 [10:54:57]Method: POST [10:54:57]URL: /json_proto [10:54:57]Method is POST - this is cgi request [10:54:57]url: /json_proto [10:54:57]query_string will be loaded in cgi processing [10:54:57]execute_cgi json_proto POST (null) [10:54:57]execute_cgi path=json_proto method=POST [10:54:57]POST find Content-Length [10:54:57]Host: 172.17.38.134:8080 [10:54:57]Content-Length: 614 [10:54:57]Content-Type: application/json [10:54:57] [10:54:57]POST finish read [10:54:57]Found Content-Length = 614 [10:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184004", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:57]execute_script... [10:54:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184004", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:57]POST & json_proto [10:54:57]process_json_proto [10:54:57]json parsed OK: [10:54:57]protocol is kg_v1.0 [10:54:57]action value=close_receipt [10:54:57]process_action close_receipt [10:54:57]cmd_close_receipt [10:54:57]MH_GetDate [10:54:57]Write to MH i2c: F0 00 00 79 0C 74 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: F0 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: F0 09 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: F0 09 00 79 0C 00 84 67 71 66 13 9C 7C 64 CE [10:54:57]GetLastDocTimeStamp 1718707659 [10:54:57]current date 1718708100 [10:54:57]FM_GetShiftState [10:54:57]SAM_PROTO_GetShiftState [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 13 01 00 [10:54:57]Write to MH i2c: E2 08 00 7A 0C 80 13 01 00 00 00 00 00 03 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0E 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0E 00 7A 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 4E [10:54:57]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:54:57]wFMCommunicate OK [10:54:57]SAM_PROTO_GetShiftState done [10:54:57]FM_GetShiftState done [10:54:57]opened in 1718670230 [10:54:57]opened+sec_in_day 1718756630 [10:54:57]quantity*price = 11000 [10:54:57]sum+1 = 11001 [10:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 18.06.2024 10:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34206 ФПД: 141965325146265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T105500&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34206&fm=141965325146265&tin=02508201610067®Number=0000000000092786&sum=11000 0 [10:54:58]StoreToDocumentArchive [10:54:58]shift 323 fd 34206 [10:54:58]save to /storage/0323/doc_00034206 [10:54:58]save last doc name /storage/0323/doc_00034206 to /storage/kkm_last_doc_name [10:54:58]save OK [10:54:58]Clear old archive folders... [10:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=266 [10:54:58]tlvbuf is 01A10D50 [10:54:58]SAM_PROTO_ClearQueue [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 09 00 00 [10:54:58]Write to MH i2c: E2 08 00 87 0C 80 09 00 00 00 00 00 00 05 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_ClearQueue done [10:54:58]KKMCreateOFDPacket [10:54:58]OFDProtocolAddRootSTLVToBuf [10:54:58]FM_MakeSignedData [10:54:58]FM_MakeSignedData [10:54:58]SAM_PROTO_SignData [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 01 02 [10:54:58]Write to MH i2c: E2 08 00 88 0C 80 0D 01 02 00 00 00 00 0D [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=255 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 84 67 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [10:54:58]Write to MH i2c: E2 02 01 89 0C 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 84 67 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 A9 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 89 0C 00 90 00 09 [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=25 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 02 02 14 39 35 10 04 04 00 9E 85 00 00 35 04 06 00 81 1D E0 C6 98 99 [10:54:58]Write to MH i2c: E2 1C 00 8A 0C 80 0D 02 02 14 00 39 35 10 04 04 00 9E 85 00 00 35 04 06 00 81 1D E0 C6 98 99 00 00 95 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 03 00 8A 0C 00 90 00 0A [10:54:58]RAPDU: 90 00 [10:54:58]wFMCommunicate OK [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 0D 03 02 [10:54:58]Write to MH i2c: E2 08 00 8B 0C 80 0D 03 02 00 00 00 00 12 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0B 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0B 00 8B 0C 00 FF 55 97 96 32 2F 26 DE 90 00 F9 [10:54:58]RAPDU: FF 55 97 96 32 2F 26 DE 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_SignData done [10:54:58]FM_MakeSignedData done [10:54:58]CreateOFDProtocolMessage [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 11 00 00 [10:54:58]Write to MH i2c: E2 08 00 8C 0C 80 11 00 00 00 00 00 00 12 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 17 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 17 00 8C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 67 [10:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:54:58]wFMCommunicate OK [10:54:58]CreateOFDProtocolMessage done [10:54:58]OFDSenderStorePacket 34206 [10:54:58]StoreOFDPacket docnum=34206 [10:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 F2 EC 16 01 ED B2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 84 67 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 85 00 00 35 04 06 00 81 1D E0 C6 98 99 FF 55 97 96 32 2F 26 DE [10:54:58]CheckFolder [10:54:58]dirname=/storage/ofd_packets [10:54:58]CheckFolder done [10:54:58]ProducePacketName [10:54:58]name=ofd_packets/00034206 [10:54:58]NVStorageSaveData ofd_packets/00034206 [10:54:58]File name is /storage/ofd_packets/00034206 [10:54:58]Write 316 bytes [10:54:58]NVStorageSaveData done [10:54:58]OFDSenderStorePacket done [10:54:58]KKMCreateOFDPacket done [10:54:58]NVStorageSaveData kkm_last_timestamp [10:54:58]File name is /storage/kkm_last_timestamp [10:54:58]Write 4 bytes [10:54:58]NVStorageSaveData done [10:54:58]ExternCall_PrintAddStr [10:54:58]wPrintStart [10:54:58]Write to MH i2c: 01 00 00 8D 0C 99 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 FF 0F AE [10:54:58]RasterBufferAndPrint [10:54:58]line Счет N : (3)184004 [10:54:58]line ИНН: 02508201610067 [10:54:58]line Контрольно-Кассовый Чек [10:54:58]line ПРОДАЖА [10:54:58]line Товар: 4870001570071 [10:54:58]line Напиток Pepsi 1л [10:54:58]line 1.000 * 110.00 [10:54:58]line = 110.00 [10:54:58]line НДС 12% НСП 1% [10:54:58]line > о реализуемом товаре [10:54:58]line ИТОГО: 110.00 [10:54:58]line НСП 1% : 0.97 [10:54:58]line НДС 12% : 11.68 [10:54:58]line Наличными: 110.00 [10:54:58]line Безнал.: 0.00 [10:54:58]line Место: АЗС № 120 "Партнер Нефть" [10:54:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:54:58]line СНО: Общий режим [10:54:58]line Чек 28 18.06.2024 10:55 [10:54:58]line Смена: 323 ФФД: 1.0 [10:54:58]line ЗНМ: 0300000172 [10:54:58]line РНМ: 0000000000092786 [10:54:58]line Версия ККМ: 001 [10:54:58]line ФМ: 0000000000875095 [10:54:58]line ФД: 34206 [10:54:58]line ФПД: 141965325146265 [10:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T105500&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34206&fm=141965325146265&tin=02508201610067®Number=0000000000092786&sum=11000 [10:54:59]line 0 [10:54:59]OFD Sender: Processing packet 34206 [packets to send 8, broken 7] [10:54:59]ProducePacketName [10:54:59]name=ofd_packets/00034206 [10:54:59]OFD Sender: To server: pG, [10:54:59]CommunicateWithHost lk.salyk.kg:30040 [10:54:59]ConnectInit lk.salyk.kg [10:54:59]written 0, free lines is 4095 [10:54:59]Connected sock=10 [10:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 F2 EC 16 01 ED B2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 84 67 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 85 00 00 35 04 06 00 81 1D E0 C6 98 99 FF 55 97 96 32 2F 26 DE [10:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 38 80 47 00 EC AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9E 85 00 00 F4 03 04 00 54 0E 71 66 B6 04 01 00 00 DD AC 8B 75 8F 50 3C DB [10:54:59]CommunicateWithHost err = 0 [10:54:59]CheckOFDResponse [10:54:59]1017 (14) - 77093643461234 [10:54:59]1041 (16) - 0000000000875095 [10:54:59]1040 (4) - 34206 [10:54:59]1012 (4) - 18.06.2024 04:34 [10:54:59]1206 (1) - 0 [10:54:59]OFD Sender: Remove packet 34206 [10:54:59]ProducePacketName [10:54:59]name=ofd_packets/00034206 [10:54:59]NVStorageDeleteData [10:54:59]Write to MH i2c: 01 00 00 B5 0C C1 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 F1 0C C5 [10:54:59]RasterBufferAndPrint [10:54:59]line [10:54:59]line [10:54:59]line [10:54:59]line [10:54:59]line [10:54:59]written 0, free lines is 3319 [10:54:59]MH_Cut [10:54:59]Write to MH i2c: D1 01 00 BC 0C 01 9A [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: D1 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: D1 01 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: D1 01 00 BC 0C 00 99 [10:54:59]Write to MH i2c: 01 00 00 BD 0C C9 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:55:00]OFD Sender: No OFD packet to send [10:55:00]*** Cut start [10:55:00]*** Partial cut [10:55:00]*** CUTSNS_PIN = 1 [10:55:00]*** CUTSNS_PIN = 0 [10:55:00]*** Brake cut motor [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]*** Stop cut motor [10:55:00]*** Cut end [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [10:55:00]process_action close_receipt done [10:55:00]requested_data is exist [10:55:00]produce_requested_data [10:55:00]requested_item fm.sn is exist - process it [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 BE 0C 80 11 00 00 00 00 00 00 44 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 BE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 99 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:55:00]wFMCommunicate OK [10:55:00]requested_item fd.num is exist - process it [10:55:00]SAM_PROTO_GetFieldsCounters [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 00 00 [10:55:00]Write to MH i2c: E2 08 00 BF 0C 80 13 00 00 00 00 00 00 47 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 62 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 62 00 BF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9E 85 00 00 0E 04 04 00 43 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 2C [10:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9E 85 00 00 0E 04 04 00 43 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 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_GetFieldsCounters done [10:55:01]requested_item shift.num is exist - process it [10:55:01]requested_item shift.opened is exist - process it [10:55:01]req_shift_opened [10:55:01]FM_GetShiftState [10:55:01]SAM_PROTO_GetShiftState [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 13 01 00 [10:55:01]Write to MH i2c: E2 08 00 C0 0C 80 13 01 00 00 00 00 00 49 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0E 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0E 00 C0 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 94 [10:55:01]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_GetShiftState done [10:55:01]FM_GetShiftState done [10:55:01]req_shift_opened done [10:55:01]requested_item shift.open_date is exist - process it [10:55:01]req_shift_open_date [10:55:01]req_shift_open_date done [10:55:01]produce_requested_data done [10:55:01]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34206,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:55:01]process_action_free close_receipt [10:55:01]json_value_free [10:55:01]json_value_free done [10:55:01]process_json_proto returns [10:55:01]Send response to host [10:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34206,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:55:01]free response buf [10:55:01]execute_script done [10:55:01]execute_script returns [10:55:01]free content buf [10:55:01]Sock 7.Close socket [10:55:01]Sock 7.Thread stoped [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:40]accept exits with 9 [10:55:40]New connection [10:55:40]New thread 3067436388 created [10:55:40]Thread 3067293028 joined [10:55:40]Waiting for new connection... [10:55:40] Sock 9.Parse request [10:55:40]Sock 9.Check first char [10:55:40]Sock 9.First char is OK [10:55:40]request: POST /json_proto HTTP/1.0 [10:55:40]Method: POST [10:55:40]URL: /json_proto [10:55:40]Method is POST - this is cgi request [10:55:40]url: /json_proto [10:55:40]query_string will be loaded in cgi processing [10:55:40]execute_cgi json_proto POST (null) [10:55:40]execute_cgi path=json_proto method=POST [10:55:40]POST find Content-Length [10:55:40]Host: 172.17.38.134:8080 [10:55:40]Content-Length: 1200 [10:55:40]Content-Type: application/json [10:55:40] [10:55:40]POST finish read [10:55:40]Found Content-Length = 1200 [10:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672525\u000A18.06.2024 10:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\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\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:40]execute_script... [10:55:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672525\u000A18.06.2024 10:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\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\u000A24058\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:40]POST & json_proto [10:55:40]process_json_proto [10:55:40]json parsed OK: [10:55:40]protocol is kg_v1.0 [10:55:40]action value=print_text [10:55:40]process_action print_text [10:55:40]cmd_print_text [10:55:40]ExternCall_PrintAddStr [10:55:40]wPrintStart [10:55:40]Write to MH i2c: 01 00 00 C1 0C CD [10:55:40]Write i2c OK [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: 01 [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: 01 07 00 [10:55:40]MH_I2C_Read... [10:55:40]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 FF 0F E2 [10:55:40]RasterBufferAndPrint [10:55:40]line *****ТОВАРНЫЙ ЧЕК***** [10:55:40]line АЗС 120 [10:55:40]line Партнер нефть [10:55:40]line 02508201610067 [10:55:40]line Кассир : Асанбаев Н. [10:55:40]line Счет N : (1)672525 [10:55:40]line 18.06.2024 10:34 [10:55:40]line ПРОДАЖА [10:55:40]line ТРК (МРК, ГНК): 11 [10:55:40]line Вид ГСМ : 2710194210 [10:55:40]line ДТ(л)-К-5 [10:55:40]line 41.160 x 72.90 [10:55:40]line ИТОГ: 3000.56 [10:55:40]line Тип оплаты: Талоны: Топливная Карта [10:55:40]line 24058 [10:55:40]line ______________________ [10:55:40]line (подпись) [10:55:40]written 0, free lines is 4095 [10:55:41]Write to MH i2c: 01 00 00 D5 0C E1 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 07 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 0F 0E 05 [10:55:41]RasterBufferAndPrint [10:55:41]line [10:55:41]line [10:55:41]line [10:55:41]line [10:55:41]line [10:55:41]written 0, free lines is 3601 [10:55:41]MH_Cut [10:55:41]Write to MH i2c: D1 01 00 DC 0C 01 BA [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: D1 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: D1 01 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: D1 01 00 DC 0C 00 B9 [10:55:41]Write to MH i2c: 01 00 00 DD 0C E9 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]*** Cut start [10:55:41]*** Partial cut [10:55:41]*** CUTSNS_PIN = 1 [10:55:41]*** CUTSNS_PIN = 0 [10:55:41]*** Brake cut motor [10:55:42]Read from MH i2c: 01 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: 01 07 00 [10:55:42]MH_I2C_Read... [10:55:42]*** Stop cut motor [10:55:42]*** Cut end [10:55:42]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 FF 0F FE [10:55:42]process_action print_text done [10:55:42]requested_data is exist [10:55:42]produce_requested_data [10:55:42]requested_item fm.sn is exist - process it [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 11 00 00 [10:55:42]Write to MH i2c: E2 08 00 DE 0C 80 11 00 00 00 00 00 00 64 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 DE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B9 [10:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [10:55:42]wFMCommunicate OK [10:55:42]requested_item fd.num is exist - process it [10:55:42]SAM_PROTO_GetFieldsCounters [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 00 00 [10:55:42]Write to MH i2c: E2 08 00 DF 0C 80 13 00 00 00 00 00 00 67 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 62 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 62 00 DF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9E 85 00 00 0E 04 04 00 43 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 4C [10:55:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9E 85 00 00 0E 04 04 00 43 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 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_GetFieldsCounters done [10:55:42]requested_item shift.num is exist - process it [10:55:42]requested_item shift.opened is exist - process it [10:55:42]req_shift_opened [10:55:42]FM_GetShiftState [10:55:42]SAM_PROTO_GetShiftState [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 01 00 [10:55:42]Write to MH i2c: E2 08 00 E0 0C 80 13 01 00 00 00 00 00 69 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0E 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0E 00 E0 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B4 [10:55:42]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_GetShiftState done [10:55:42]FM_GetShiftState done [10:55:42]req_shift_opened done [10:55:42]requested_item shift.open_date is exist - process it [10:55:42]req_shift_open_date [10:55:42]req_shift_open_date done [10:55:42]produce_requested_data done [10:55:42]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34206,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [10:55:42]process_action_free print_text [10:55:42]json_value_free [10:55:42]json_value_free done [10:55:42]process_json_proto returns [10:55:42]Send response to host [10:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34206,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [10:55:42]free response buf [10:55:42]execute_script done [10:55:42]execute_script returns [10:55:42]free content buf [10:55:42]Sock 9.Close socket [10:55:42]Sock 9.Thread stoped [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00: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:38]accept exits with 10 [11:02:38]New connection [11:02:38]New thread 3067293028 created [11:02:38]Thread 3067436388 joined [11:02:38]Waiting for new connection... [11:02:38] Sock 10.Parse request [11:02:38]Sock 10.Check first char [11:02:38]Sock 10.First char is OK [11:02:38]request: POST /json_proto HTTP/1.0 [11:02:38]Method: POST [11:02:38]URL: /json_proto [11:02:38]Method is POST - this is cgi request [11:02:38]url: /json_proto [11:02:38]query_string will be loaded in cgi processing [11:02:38]execute_cgi json_proto POST (null) [11:02:38]execute_cgi path=json_proto method=POST [11:02:38]POST find Content-Length [11:02:38]Host: 172.17.38.134:8080 [11:02:38]Content-Length: 668 [11:02:38]Content-Type: application/json [11:02:38] [11:02:38]POST finish read [11:02:38]Found Content-Length = 668 [11:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184005", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:38]execute_script... [11:02:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184005", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:38]POST & json_proto [11:02:38]process_json_proto [11:02:38]json parsed OK: [11:02:38]protocol is kg_v1.0 [11:02:38]action value=close_receipt [11:02:38]process_action close_receipt [11:02:38]cmd_close_receipt [11:02:38]MH_GetDate [11:02:38]Write to MH i2c: F0 00 00 E1 0C DC [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: F0 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: F0 09 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: F0 09 00 E1 0C 00 51 69 71 66 13 9C 7C 64 05 [11:02:38]GetLastDocTimeStamp 1718708100 [11:02:38]current date 1718708561 [11:02:38]FM_GetShiftState [11:02:38]SAM_PROTO_GetShiftState [11:02:38]wFMCommunicate request_size=4 [11:02:38]MH_SAM_APDU [11:02:38]CAPDU: 80 13 01 00 [11:02:38]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:38]Read from MH i2c: E2 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: E2 0E 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B6 [11:02:38]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:02:38]wFMCommunicate OK [11:02:38]SAM_PROTO_GetShiftState done [11:02:38]FM_GetShiftState done [11:02:38]opened in 1718670230 [11:02:38]opened+sec_in_day 1718756630 [11:02:38]quantity*price = 22500 [11:02:38]sum+1 = 22501 [11:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 29 18.06.2024 11:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34207 ФПД: 243924038772546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110241&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34207&fm=243924038772546&tin=02508201610067®Number=0000000000092786&sum=22500 0 [11:02:39]StoreToDocumentArchive [11:02:39]shift 323 fd 34207 [11:02:39]save to /storage/0323/doc_00034207 [11:02:39]save last doc name /storage/0323/doc_00034207 to /storage/kkm_last_doc_name [11:02:39]save OK [11:02:39]Clear old archive folders... [11:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=296 [11:02:39]tlvbuf is 019F8810 [11:02:39]SAM_PROTO_ClearQueue [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 09 00 00 [11:02:39]Write to MH i2c: E2 08 00 EF 0C 80 09 00 00 00 00 00 00 6D [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]SAM_PROTO_ClearQueue done [11:02:39]KKMCreateOFDPacket [11:02:39]OFDProtocolAddRootSTLVToBuf [11:02:39]FM_MakeSignedData [11:02:39]FM_MakeSignedData [11:02:39]SAM_PROTO_SignData [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 01 02 [11:02:39]Write to MH i2c: E2 08 00 F0 0C 80 0D 01 02 00 00 00 00 75 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]wFMCommunicate request_size=255 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 51 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [11:02:39]Write to MH i2c: E2 02 01 F1 0C 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 51 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 E8 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]wFMCommunicate request_size=55 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 85 00 00 35 04 06 00 DD D8 FD AE E7 42 [11:02:39]Write to MH i2c: E2 3A 00 F2 0C 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 85 00 00 35 04 06 00 DD D8 FD AE E7 42 00 00 87 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [11:02:39]RAPDU: 90 00 [11:02:39]wFMCommunicate OK [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 0D 03 02 [11:02:39]Write to MH i2c: E2 08 00 F3 0C 80 0D 03 02 00 00 00 00 7A [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 0B 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 0B 00 F3 0C 00 8C 19 5B CB 49 34 7A 02 90 00 3F [11:02:39]RAPDU: 8C 19 5B CB 49 34 7A 02 90 00 [11:02:39]wFMCommunicate OK [11:02:39]SAM_PROTO_SignData done [11:02:39]FM_MakeSignedData done [11:02:39]CreateOFDProtocolMessage [11:02:39]wFMCommunicate request_size=4 [11:02:39]MH_SAM_APDU [11:02:39]CAPDU: 80 11 00 00 [11:02:39]Write to MH i2c: E2 08 00 F4 0C 80 11 00 00 00 00 00 00 7A [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:39]Read from MH i2c: E2 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 17 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: E2 17 00 F4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CF [11:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:02:39]wFMCommunicate OK [11:02:39]CreateOFDProtocolMessage done [11:02:39]OFDSenderStorePacket 34207 [11:02:39]StoreOFDPacket docnum=34207 [11:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 EA 8F 34 01 55 42 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 51 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 85 00 00 35 04 06 00 DD D8 FD AE E7 42 8C 19 5B CB 49 34 7A 02 [11:02:39]CheckFolder [11:02:39]dirname=/storage/ofd_packets [11:02:39]CheckFolder done [11:02:39]ProducePacketName [11:02:39]name=ofd_packets/00034207 [11:02:39]NVStorageSaveData ofd_packets/00034207 [11:02:39]File name is /storage/ofd_packets/00034207 [11:02:39]Write 346 bytes [11:02:39]NVStorageSaveData done [11:02:39]OFDSenderStorePacket done [11:02:39]KKMCreateOFDPacket done [11:02:39]NVStorageSaveData kkm_last_timestamp [11:02:39]File name is /storage/kkm_last_timestamp [11:02:39]Write 4 bytes [11:02:39]NVStorageSaveData done [11:02:39]ExternCall_PrintAddStr [11:02:39]wPrintStart [11:02:39]Write to MH i2c: 01 00 00 F5 0C 01 [11:02:39]Write i2c OK [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: 01 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: 01 07 00 [11:02:39]MH_I2C_Read... [11:02:39]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [11:02:39]RasterBufferAndPrint [11:02:39]line Счет N : (3)184005 [11:02:39]line ИНН: 02508201610067 [11:02:39]line Контрольно-Кассовый Чек [11:02:39]line ПРОДАЖА [11:02:39]line Товар: 4670003190013 [11:02:39]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [11:02:39]line 1.000 * 225.00 [11:02:39]line = 225.00 [11:02:39]line НДС 12% НСП 1% [11:02:39]line > о реализуемом товаре [11:02:39]line ИТОГО: 225.00 [11:02:39]line НСП 1% : 1.99 [11:02:39]line НДС 12% : 23.89 [11:02:39]line Наличными: 225.00 [11:02:39]line Безнал.: 0.00 [11:02:39]line Место: АЗС № 120 "Партнер Нефть" [11:02:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:02:39]line СНО: Общий режим [11:02:39]line Чек 29 18.06.2024 11:02 [11:02:39]line Смена: 323 ФФД: 1.0 [11:02:39]line ЗНМ: 0300000172 [11:02:39]line РНМ: 0000000000092786 [11:02:39]line Версия ККМ: 001 [11:02:39]line ФМ: 0000000000875095 [11:02:39]line ФД: 34207 [11:02:39]line ФПД: 243924038772546 [11:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110241&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34207&fm=243924038772546&tin=02508201610067®Number=0000000000092786&sum=22500 [11:02:40]line 0 [11:02:40]OFD Sender: Processing packet 34207 [packets to send 8, broken 7] [11:02:40]ProducePacketName [11:02:40]name=ofd_packets/00034207 [11:02:40]OFD Sender: To server: pG, [11:02:40]CommunicateWithHost lk.salyk.kg:30040 [11:02:40]ConnectInit lk.salyk.kg [11:02:40]written 0, free lines is 4095 [11:02:40]Connected sock=9 [11:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 EA 8F 34 01 55 42 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 51 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 85 00 00 35 04 06 00 DD D8 FD AE E7 42 8C 19 5B CB 49 34 7A 02 [11:02:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 CA 56 47 00 72 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 9F 85 00 00 F4 03 04 00 21 10 71 66 B6 04 01 00 00 92 6E 13 18 E3 8C ED 8A [11:02:40]CommunicateWithHost err = 0 [11:02:40]CheckOFDResponse [11:02:40]1017 (14) - 77093643461234 [11:02:40]1041 (16) - 0000000000875095 [11:02:40]1040 (4) - 34207 [11:02:40]1012 (4) - 18.06.2024 04:42 [11:02:40]1206 (1) - 0 [11:02:40]OFD Sender: Remove packet 34207 [11:02:40]ProducePacketName [11:02:40]name=ofd_packets/00034207 [11:02:40]NVStorageDeleteData [11:02:40]Write to MH i2c: 01 00 00 1E 0D 2B [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 07 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 07 00 1E 0D 00 00 00 00 00 EB 0C 29 [11:02:40]RasterBufferAndPrint [11:02:40]line [11:02:40]line [11:02:40]line [11:02:40]line [11:02:40]line [11:02:40]written 0, free lines is 3316 [11:02:40]MH_Cut [11:02:40]Write to MH i2c: D1 01 00 25 0D 01 04 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: D1 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: D1 01 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: D1 01 00 25 0D 00 03 [11:02:40]Write to MH i2c: 01 00 00 26 0D 33 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:41]OFD Sender: No OFD packet to send [11:02:41]*** Cut start [11:02:41]*** Partial cut [11:02:41]*** CUTSNS_PIN = 1 [11:02:41]*** CUTSNS_PIN = 0 [11:02:41]*** Brake cut motor [11:02:41]Read from MH i2c: 01 [11:02:41]MH_I2C_Read... [11:02:41]*** Stop cut motor [11:02:41]*** Cut end [11:02:41]Read from MH i2c: 01 07 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 FF 0F 48 [11:02:41]process_action close_receipt done [11:02:41]requested_data is exist [11:02:41]produce_requested_data [11:02:41]requested_item fm.sn is exist - process it [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 11 00 00 [11:02:41]Write to MH i2c: E2 08 00 27 0D 80 11 00 00 00 00 00 00 AE [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 27 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 03 [11:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:02:41]wFMCommunicate OK [11:02:41]requested_item fd.num is exist - process it [11:02:41]SAM_PROTO_GetFieldsCounters [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 13 00 00 [11:02:41]Write to MH i2c: E2 08 00 28 0D 80 13 00 00 00 00 00 00 B1 [11:02:42]Write i2c OK [11:02:42]MH_I2C_Read... [11:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:42]Read from MH i2c: E2 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 62 00 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 62 00 28 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9F 85 00 00 0E 04 04 00 43 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 9A [11:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 9F 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:42]wFMCommunicate OK [11:02:42]SAM_PROTO_GetFieldsCounters done [11:02:42]requested_item shift.num is exist - process it [11:02:42]requested_item shift.opened is exist - process it [11:02:42]req_shift_opened [11:02:42]FM_GetShiftState [11:02:42]SAM_PROTO_GetShiftState [11:02:42]wFMCommunicate request_size=4 [11:02:42]MH_SAM_APDU [11:02:42]CAPDU: 80 13 01 00 [11:02:42]Write to MH i2c: E2 08 00 29 0D 80 13 01 00 00 00 00 00 B3 [11:02:42]Write i2c OK [11:02:42]MH_I2C_Read... [11:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:42]Read from MH i2c: E2 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 0E 00 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: E2 0E 00 29 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 FE [11:02:42]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:02:42]wFMCommunicate OK [11:02:42]SAM_PROTO_GetShiftState done [11:02:42]FM_GetShiftState done [11:02:42]req_shift_opened done [11:02:42]requested_item shift.open_date is exist - process it [11:02:42]req_shift_open_date [11:02:42]req_shift_open_date done [11:02:42]produce_requested_data done [11:02:42]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34207,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [11:02:42]process_action_free close_receipt [11:02:42]json_value_free [11:02:42]json_value_free done [11:02:42]process_json_proto returns [11:02:42]Send response to host [11:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34207,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [11:02:42]free response buf [11:02:42]execute_script done [11:02:42]execute_script returns [11:02:42]free content buf [11:02:42]Sock 10.Close socket [11:02:42]Sock 10.Thread stoped [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:35]accept exits with 7 [11:04:35]New connection [11:04:35]New thread 3067436388 created [11:04:35]Thread 3067293028 joined [11:04:35]Waiting for new connection... [11:04:35] Sock 7.Parse request [11:04:35]Sock 7.Check first char [11:04:35]Sock 7.First char is OK [11:04:35]request: POST /json_proto HTTP/1.0 [11:04:35]Method: POST [11:04:35]URL: /json_proto [11:04:35]Method is POST - this is cgi request [11:04:35]url: /json_proto [11:04:35]query_string will be loaded in cgi processing [11:04:35]execute_cgi json_proto POST (null) [11:04:35]execute_cgi path=json_proto method=POST [11:04:35]POST find Content-Length [11:04:35]Host: 172.17.38.134:8080 [11:04:35]Content-Length: 1183 [11:04:35]Content-Type: application/json [11:04:35] [11:04:35]POST finish read [11:04:35]Found Content-Length = 1183 [11:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184006", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441018192", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u0421\u044B\u0440 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 388.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:35]execute_script... [11:04:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184006", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441018192", "name": "\u0427\u0438\u043F\u0441\u044B FRY`S \u0421\u044B\u0440 1/70", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 388.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:35]POST & json_proto [11:04:35]process_json_proto [11:04:35]json parsed OK: [11:04:35]protocol is kg_v1.0 [11:04:35]action value=close_receipt [11:04:35]process_action close_receipt [11:04:35]cmd_close_receipt [11:04:35]MH_GetDate [11:04:35]Write to MH i2c: F0 00 00 2A 0D 26 [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: F0 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: F0 09 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: F0 09 00 2A 0D 00 C7 69 71 66 13 9C 7C 64 C5 [11:04:35]GetLastDocTimeStamp 1718708561 [11:04:35]current date 1718708679 [11:04:35]FM_GetShiftState [11:04:35]SAM_PROTO_GetShiftState [11:04:35]wFMCommunicate request_size=4 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 13 01 00 [11:04:35]Write to MH i2c: E2 08 00 2B 0D 80 13 01 00 00 00 00 00 B5 [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0E 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0E 00 2B 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 00 [11:04:35]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:04:35]wFMCommunicate OK [11:04:35]SAM_PROTO_GetShiftState done [11:04:35]FM_GetShiftState done [11:04:35]opened in 1718670230 [11:04:35]opened+sec_in_day 1718756630 [11:04:35]quantity*price = 20500 [11:04:35]sum+1 = 20501 [11:04:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602441018192 Чипсы FRY`S Сыр 1/70 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 388.00 НСП 1% : 3.43 НДС 12% : 41.21 Наличными: 388.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 18.06.2024 11:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34208 ФПД: 171601706872950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110439&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34208&fm=171601706872950&tin=02508201610067®Number=0000000000092786&sum=38800 0 [11:04:36]StoreToDocumentArchive [11:04:36]shift 323 fd 34208 [11:04:36]save to /storage/0323/doc_00034208 [11:04:36]save last doc name /storage/0323/doc_00034208 to /storage/kkm_last_doc_name [11:04:36]save OK [11:04:36]Clear old archive folders... [11:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=499 [11:04:36]tlvbuf is 01A106A0 [11:04:36]SAM_PROTO_ClearQueue [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 09 00 00 [11:04:36]Write to MH i2c: E2 08 00 38 0D 80 09 00 00 00 00 00 00 B7 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 38 0D 00 90 00 B9 [11:04:36]RAPDU: 90 00 [11:04:36]wFMCommunicate OK [11:04:36]SAM_PROTO_ClearQueue done [11:04:36]KKMCreateOFDPacket [11:04:36]OFDProtocolAddRootSTLVToBuf [11:04:36]FM_MakeSignedData [11:04:36]FM_MakeSignedData [11:04:36]SAM_PROTO_SignData [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 0D 01 02 [11:04:36]Write to MH i2c: E2 08 00 39 0D 80 0D 01 02 00 00 00 00 BF [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 03 00 39 0D 00 90 00 BA [11:04:36]RAPDU: 90 00 [11:04:36]wFMCommunicate OK [11:04:36]wFMCommunicate request_size=255 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 [11:04:37]Write to MH i2c: E2 02 01 3A 0D 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 00 00 89 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 3A 0D 00 90 00 BB [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=255 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 02 02 FA 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 85 00 00 35 04 06 00 9C 12 22 [11:04:37]Write to MH i2c: E2 02 01 3B 0D 80 0D 02 02 FA 00 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 85 00 00 35 04 06 00 9C 12 22 00 00 E8 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=8 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 02 02 03 C7 F0 76 [11:04:37]Write to MH i2c: E2 0B 00 3C 0D 80 0D 02 02 03 00 C7 F0 76 00 00 F6 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [11:04:37]RAPDU: 90 00 [11:04:37]wFMCommunicate OK [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 0D 03 02 [11:04:37]Write to MH i2c: E2 08 00 3D 0D 80 0D 03 02 00 00 00 00 C5 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0B 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 0B 00 3D 0D 00 E7 07 02 29 9D 1A 6B B7 90 00 B8 [11:04:37]RAPDU: E7 07 02 29 9D 1A 6B B7 90 00 [11:04:37]wFMCommunicate OK [11:04:37]SAM_PROTO_SignData done [11:04:37]FM_MakeSignedData done [11:04:37]CreateOFDProtocolMessage [11:04:37]wFMCommunicate request_size=4 [11:04:37]MH_SAM_APDU [11:04:37]CAPDU: 80 11 00 00 [11:04:37]Write to MH i2c: E2 08 00 3E 0D 80 11 00 00 00 00 00 00 C5 [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:37]Read from MH i2c: E2 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 17 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: E2 17 00 3E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1A [11:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:04:37]wFMCommunicate OK [11:04:37]CreateOFDProtocolMessage done [11:04:37]OFDSenderStorePacket 34208 [11:04:37]StoreOFDPacket docnum=34208 [11:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 07 02 00 00 9C 8A FF 01 FD A7 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 85 00 00 35 04 06 00 9C 12 22 C7 F0 76 E7 07 02 29 9D 1A 6B B7 [11:04:37]CheckFolder [11:04:37]dirname=/storage/ofd_packets [11:04:37]CheckFolder done [11:04:37]ProducePacketName [11:04:37]name=ofd_packets/00034208 [11:04:37]NVStorageSaveData ofd_packets/00034208 [11:04:37]File name is /storage/ofd_packets/00034208 [11:04:37]Write 549 bytes [11:04:37]NVStorageSaveData done [11:04:37]OFDSenderStorePacket done [11:04:37]KKMCreateOFDPacket done [11:04:37]NVStorageSaveData kkm_last_timestamp [11:04:37]File name is /storage/kkm_last_timestamp [11:04:37]Write 4 bytes [11:04:37]NVStorageSaveData done [11:04:37]ExternCall_PrintAddStr [11:04:37]wPrintStart [11:04:37]Write to MH i2c: 01 00 00 3F 0D 4C [11:04:37]Write i2c OK [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 07 00 [11:04:37]MH_I2C_Read... [11:04:37]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 FF 0F 61 [11:04:37]RasterBufferAndPrint [11:04:37]line Счет N : (3)184006 [11:04:37]line ИНН: 02508201610067 [11:04:37]line Контрольно-Кассовый Чек [11:04:37]line ПРОДАЖА [11:04:37]line Товар: 4602441000609 [11:04:37]line Напит Дюшес 1л стекло [11:04:37]line 1.000 * 205.00 [11:04:37]line = 205.00 [11:04:37]line НДС 12% НСП 1% [11:04:37]line > о реализуемом товаре [11:04:37]line Товар: 4603290004862 [11:04:37]line Печ.сах.FORSITE Сэнд.шок-ор.вк [11:04:37]line 1.000 * 93.00 [11:04:37]line = 93.00 [11:04:37]line НДС 12% НСП 1% [11:04:37]line > о реализуемом товаре [11:04:37]line Товар: 4602441018192 [11:04:37]line Чипсы FRY`S Сыр 1/70 [11:04:37]line 1.000 * 90.00 [11:04:37]line = 90.00 [11:04:37]line НДС 12% НСП 1% [11:04:37]line > о реализуемом товаре [11:04:37]line ИТОГО: 388.00 [11:04:37]line НСП 1% : 3.43 [11:04:37]line НДС 12% : 41.21 [11:04:37]line Наличными: 388.00 [11:04:37]line Безнал.: 0.00 [11:04:37]line Место: АЗС № 120 "Партнер Нефть" [11:04:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:04:37]line СНО: Общий режим [11:04:37]line Чек 30 18.06.2024 11:04 [11:04:37]line Смена: 323 ФФД: 1.0 [11:04:37]line ЗНМ: 0300000172 [11:04:37]line РНМ: 0000000000092786 [11:04:37]line Версия ККМ: 001 [11:04:37]line ФМ: 0000000000875095 [11:04:37]line ФД: 34208 [11:04:37]line ФПД: 171601706872950 [11:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T110439&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34208&fm=171601706872950&tin=02508201610067®Number=0000000000092786&sum=38800 [11:04:37]line 0 [11:04:38]written 0, free lines is 4095 [11:04:38]OFD Sender: Processing packet 34208 [packets to send 8, broken 7] [11:04:38]ProducePacketName [11:04:38]name=ofd_packets/00034208 [11:04:38]OFD Sender: To server: pG, [11:04:38]CommunicateWithHost lk.salyk.kg:30040 [11:04:38]ConnectInit lk.salyk.kg [11:04:38]Connected sock=10 [11:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 07 02 00 00 9C 8A FF 01 FD A7 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 38 31 39 32 06 04 1C 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 46 52 59 60 53 20 D0 A1 D1 8B D1 80 20 31 2F 37 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C7 69 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 85 00 00 35 04 06 00 9C 12 22 C7 F0 76 E7 07 02 29 9D 1A 6B B7 [11:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C2 37 47 00 E7 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A0 85 00 00 F4 03 04 00 97 10 71 66 B6 04 01 00 00 DC 7A 56 A4 B4 4B B9 CD [11:04:38]CommunicateWithHost err = 0 [11:04:38]CheckOFDResponse [11:04:38]1017 (14) - 77093643461234 [11:04:38]1041 (16) - 0000000000875095 [11:04:38]1040 (4) - 34208 [11:04:38]1012 (4) - 18.06.2024 04:44 [11:04:38]1206 (1) - 0 [11:04:38]OFD Sender: Remove packet 34208 [11:04:38]ProducePacketName [11:04:38]name=ofd_packets/00034208 [11:04:38]NVStorageDeleteData [11:04:38]Write to MH i2c: 01 00 00 74 0D 81 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 29 0C BD [11:04:38]RasterBufferAndPrint [11:04:38]line [11:04:38]line [11:04:38]line [11:04:38]line [11:04:38]line [11:04:38]written 0, free lines is 3121 [11:04:38]MH_Cut [11:04:38]Write to MH i2c: D1 01 00 7B 0D 01 5A [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: D1 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: D1 01 00 [11:04:38]MH_I2C_Read... [11:04:38]Read from MH i2c: D1 01 00 7B 0D 00 59 [11:04:38]Write to MH i2c: 01 00 00 7C 0D 89 [11:04:38]Write i2c OK [11:04:38]MH_I2C_Read... [11:04:39]OFD Sender: No OFD packet to send [11:04:39]*** Cut start [11:04:39]*** Partial cut [11:04:39]*** CUTSNS_PIN = 1 [11:04:39]*** CUTSNS_PIN = 0 [11:04:39]*** Brake cut motor [11:04:40]Read from MH i2c: 01 [11:04:40]MH_I2C_Read... [11:04:40]*** Stop cut motor [11:04:40]*** Cut end [11:04:40]Read from MH i2c: 01 07 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [11:04:40]process_action close_receipt done [11:04:40]requested_data is exist [11:04:40]produce_requested_data [11:04:40]requested_item fm.sn is exist - process it [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 11 00 00 [11:04:40]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 17 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 59 [11:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:04:40]wFMCommunicate OK [11:04:40]requested_item fd.num is exist - process it [11:04:40]SAM_PROTO_GetFieldsCounters [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 13 00 00 [11:04:40]Write to MH i2c: E2 08 00 7E 0D 80 13 00 00 00 00 00 00 07 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 62 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 62 00 7E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A0 85 00 00 0E 04 04 00 43 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 F4 [11:04:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A0 85 00 00 0E 04 04 00 43 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 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_GetFieldsCounters done [11:04:40]requested_item shift.num is exist - process it [11:04:40]requested_item shift.opened is exist - process it [11:04:40]req_shift_opened [11:04:40]FM_GetShiftState [11:04:40]SAM_PROTO_GetShiftState [11:04:40]wFMCommunicate request_size=4 [11:04:40]MH_SAM_APDU [11:04:40]CAPDU: 80 13 01 00 [11:04:40]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:40]Read from MH i2c: E2 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 0E 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 54 [11:04:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:04:40]wFMCommunicate OK [11:04:40]SAM_PROTO_GetShiftState done [11:04:40]FM_GetShiftState done [11:04:40]req_shift_opened done [11:04:40]requested_item shift.open_date is exist - process it [11:04:40]req_shift_open_date [11:04:40]req_shift_open_date done [11:04:40]produce_requested_data done [11:04:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34208,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [11:04:40]process_action_free close_receipt [11:04:40]json_value_free [11:04:40]json_value_free done [11:04:40]process_json_proto returns [11:04:40]Send response to host [11:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34208,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [11:04:40]free response buf [11:04:40]execute_script done [11:04:40]execute_script returns [11:04:40]free content buf [11:04:40]Sock 7.Close socket [11:04:40]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:33]accept exits with 9 [11:13:33]New connection [11:13:33]New thread 3067293028 created [11:13:33]Thread 3067436388 joined [11:13:33]Waiting for new connection... [11:13:33] Sock 9.Parse request [11:13:33]Sock 9.Check first char [11:13:33]Sock 9.First char is OK [11:13:33]request: POST /json_proto HTTP/1.0 [11:13:33]Method: POST [11:13:33]URL: /json_proto [11:13:33]Method is POST - this is cgi request [11:13:33]url: /json_proto [11:13:33]query_string will be loaded in cgi processing [11:13:33]execute_cgi json_proto POST (null) [11:13:33]execute_cgi path=json_proto method=POST [11:13:33]POST find Content-Length [11:13:33]Host: 172.17.38.134:8080 [11:13:33]Content-Length: 620 [11:13:33]Content-Type: application/json [11:13:33] [11:13:33]POST finish read [11:13:33]Found Content-Length = 620 [11:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184007", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:33]execute_script... [11:13: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 : (3)184007", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:33]POST & json_proto [11:13:33]process_json_proto [11:13:33]json parsed OK: [11:13:33]protocol is kg_v1.0 [11:13:33]action value=close_receipt [11:13:33]process_action close_receipt [11:13:33]cmd_close_receipt [11:13:33]MH_GetDate [11:13:33]Write to MH i2c: F0 00 00 80 0D 7C [11:13:33]Write i2c OK [11:13:33]MH_I2C_Read... [11:13:33]Read from MH i2c: F0 [11:13:33]MH_I2C_Read... [11:13:33]Read from MH i2c: F0 09 00 [11:13:33]MH_I2C_Read... [11:13:33]Read from MH i2c: F0 09 00 80 0D 00 E0 6B 71 66 13 9C 7C 64 36 [11:13:33]GetLastDocTimeStamp 1718708679 [11:13:33]current date 1718709216 [11:13:33]FM_GetShiftState [11:13:33]SAM_PROTO_GetShiftState [11:13:33]wFMCommunicate request_size=4 [11:13:33]MH_SAM_APDU [11:13:33]CAPDU: 80 13 01 00 [11:13:33]Write to MH i2c: E2 08 00 81 0D 80 13 01 00 00 00 00 00 0B [11:13:33]Write i2c OK [11:13:33]MH_I2C_Read... [11:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:33]Read from MH i2c: E2 [11:13:33]MH_I2C_Read... [11:13:33]Read from MH i2c: E2 0E 00 [11:13:33]MH_I2C_Read... [11:13:33]Read from MH i2c: E2 0E 00 81 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 56 [11:13:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:13:33]wFMCommunicate OK [11:13:33]SAM_PROTO_GetShiftState done [11:13:33]FM_GetShiftState done [11:13:33]opened in 1718670230 [11:13:33]opened+sec_in_day 1718756630 [11:13:33]quantity*price = 13500 [11:13:33]sum+1 = 13501 [11:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 31 18.06.2024 11:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34209 ФПД: 151237461671404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111336&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34209&fm=151237461671404&tin=02508201610067®Number=0000000000092786&sum=13500 0 [11:13:34]StoreToDocumentArchive [11:13:34]shift 323 fd 34209 [11:13:34]save to /storage/0323/doc_00034209 [11:13:34]save last doc name /storage/0323/doc_00034209 to /storage/kkm_last_doc_name [11:13:34]save OK [11:13:34]Clear old archive folders... [11:13:34]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:13:34]tlvbuf is 019E2E50 [11:13:34]SAM_PROTO_ClearQueue [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 09 00 00 [11:13:34]Write to MH i2c: E2 08 00 8E 0D 80 09 00 00 00 00 00 00 0D [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [11:13:34]RAPDU: 90 00 [11:13:34]wFMCommunicate OK [11:13:34]SAM_PROTO_ClearQueue done [11:13:34]KKMCreateOFDPacket [11:13:34]OFDProtocolAddRootSTLVToBuf [11:13:34]FM_MakeSignedData [11:13:34]FM_MakeSignedData [11:13:34]SAM_PROTO_SignData [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 0D 01 02 [11:13:34]Write to MH i2c: E2 08 00 8F 0D 80 0D 01 02 00 00 00 00 15 [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]OFD Sender: No OFD packet to send [11:13:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [11:13:34]RAPDU: 90 00 [11:13:34]wFMCommunicate OK [11:13:34]wFMCommunicate request_size=255 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 E0 6B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 [11:13:34]Write to MH i2c: E2 02 01 90 0D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 E0 6B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5C [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [11:13:34]RAPDU: 90 00 [11:13:34]wFMCommunicate OK [11:13:34]wFMCommunicate request_size=31 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 39 35 10 04 04 00 A1 85 00 00 35 04 06 00 89 8C B7 2D FD EC [11:13:34]Write to MH i2c: E2 22 00 91 0D 80 0D 02 02 1A 00 30 30 38 37 35 30 39 35 10 04 04 00 A1 85 00 00 35 04 06 00 89 8C B7 2D FD EC 00 00 4D [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [11:13:34]RAPDU: 90 00 [11:13:34]wFMCommunicate OK [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 0D 03 02 [11:13:34]Write to MH i2c: E2 08 00 92 0D 80 0D 03 02 00 00 00 00 1A [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 0B 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 0B 00 92 0D 00 8E AF 74 70 14 71 7D 3B 90 00 79 [11:13:34]RAPDU: 8E AF 74 70 14 71 7D 3B 90 00 [11:13:34]wFMCommunicate OK [11:13:34]SAM_PROTO_SignData done [11:13:34]FM_MakeSignedData done [11:13:34]CreateOFDProtocolMessage [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 11 00 00 [11:13:34]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 17 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6F [11:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:13:34]wFMCommunicate OK [11:13:34]CreateOFDProtocolMessage done [11:13:34]OFDSenderStorePacket 34209 [11:13:34]StoreOFDPacket docnum=34209 [11:13:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 FB 32 1C 01 2C 15 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 E0 6B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 85 00 00 35 04 06 00 89 8C B7 2D FD EC 8E AF 74 70 14 71 7D 3B [11:13:34]CheckFolder [11:13:34]dirname=/storage/ofd_packets [11:13:34]CheckFolder done [11:13:34]ProducePacketName [11:13:34]name=ofd_packets/00034209 [11:13:34]NVStorageSaveData ofd_packets/00034209 [11:13:34]File name is /storage/ofd_packets/00034209 [11:13:34]Write 322 bytes [11:13:34]NVStorageSaveData done [11:13:34]OFDSenderStorePacket done [11:13:34]KKMCreateOFDPacket done [11:13:34]NVStorageSaveData kkm_last_timestamp [11:13:34]File name is /storage/kkm_last_timestamp [11:13:34]Write 4 bytes [11:13:34]NVStorageSaveData done [11:13:34]ExternCall_PrintAddStr [11:13:34]wPrintStart [11:13:34]Write to MH i2c: 01 00 00 94 0D A1 [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: 01 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: 01 07 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 FF 0F B6 [11:13:34]RasterBufferAndPrint [11:13:34]line Счет N : (3)184007 [11:13:34]line ИНН: 02508201610067 [11:13:34]line Контрольно-Кассовый Чек [11:13:34]line ПРОДАЖА [11:13:34]line Товар: 48745000 [11:13:34]line Сигареты Winston Purple Mix [11:13:34]line 1.000 * 135.00 [11:13:34]line = 135.00 [11:13:34]line НДС 12% НСП 1% [11:13:34]line > о реализуемом товаре [11:13:34]line ИТОГО: 135.00 [11:13:34]line НСП 1% : 1.19 [11:13:34]line НДС 12% : 14.34 [11:13:34]line Наличными: 135.00 [11:13:34]line Безнал.: 0.00 [11:13:34]line Место: АЗС № 120 "Партнер Нефть" [11:13:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:13:34]line СНО: Общий режим [11:13:34]line Чек 31 18.06.2024 11:13 [11:13:34]line Смена: 323 ФФД: 1.0 [11:13:34]line ЗНМ: 0300000172 [11:13:34]line РНМ: 0000000000092786 [11:13:34]line Версия ККМ: 001 [11:13:34]line ФМ: 0000000000875095 [11:13:34]line ФД: 34209 [11:13:34]line ФПД: 151237461671404 [11:13:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T111336&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34209&fm=151237461671404&tin=02508201610067®Number=0000000000092786&sum=13500 [11:13:35]line 0 [11:13:35]OFD Sender: Processing packet 34209 [packets to send 8, broken 7] [11:13:35]ProducePacketName [11:13:35]name=ofd_packets/00034209 [11:13:35]OFD Sender: To server: pG, [11:13:35]CommunicateWithHost lk.salyk.kg:30040 [11:13:35]ConnectInit lk.salyk.kg [11:13:35]written 0, free lines is 4095 [11:13:35]Connected sock=10 [11:13:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 FB 32 1C 01 2C 15 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 E0 6B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 85 00 00 35 04 06 00 89 8C B7 2D FD EC 8E AF 74 70 14 71 7D 3B [11:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 30 14 47 00 DC BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A1 85 00 00 F4 03 04 00 B0 12 71 66 B6 04 01 00 00 18 28 BA 87 9B 27 4F FC [11:13:35]CommunicateWithHost err = 0 [11:13:35]CheckOFDResponse [11:13:35]1017 (14) - 77093643461234 [11:13:35]1041 (16) - 0000000000875095 [11:13:35]1040 (4) - 34209 [11:13:35]1012 (4) - 18.06.2024 04:53 [11:13:35]1206 (1) - 0 [11:13:35]OFD Sender: Remove packet 34209 [11:13:35]ProducePacketName [11:13:35]name=ofd_packets/00034209 [11:13:35]NVStorageDeleteData [11:13:35]Write to MH i2c: 01 00 00 BC 0D C9 [11:13:35]Write i2c OK [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: 01 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: 01 07 00 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: 01 07 00 BC 0D 00 00 00 00 00 F1 0C CD [11:13:35]RasterBufferAndPrint [11:13:35]line [11:13:35]line [11:13:35]line [11:13:35]line [11:13:35]line [11:13:35]written 0, free lines is 3319 [11:13:35]MH_Cut [11:13:35]Write to MH i2c: D1 01 00 C3 0D 01 A2 [11:13:35]Write i2c OK [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: D1 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: D1 01 00 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: D1 01 00 C3 0D 00 A1 [11:13:35]Write to MH i2c: 01 00 00 C4 0D D1 [11:13:35]Write i2c OK [11:13:35]MH_I2C_Read... [11:13:36]OFD Sender: No OFD packet to send [11:13:36]*** Cut start [11:13:36]*** Partial cut [11:13:36]*** CUTSNS_PIN = 1 [11:13:36]*** CUTSNS_PIN = 0 [11:13:36]*** Brake cut motor [11:13:37]Read from MH i2c: 01 [11:13:37]MH_I2C_Read... [11:13:37]*** Stop cut motor [11:13:37]*** Cut end [11:13:37]Read from MH i2c: 01 07 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [11:13:37]process_action close_receipt done [11:13:37]requested_data is exist [11:13:37]produce_requested_data [11:13:37]requested_item fm.sn is exist - process it [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 11 00 00 [11:13:37]Write to MH i2c: E2 08 00 C5 0D 80 11 00 00 00 00 00 00 4C [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 17 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 17 00 C5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A1 [11:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:13:37]wFMCommunicate OK [11:13:37]requested_item fd.num is exist - process it [11:13:37]SAM_PROTO_GetFieldsCounters [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 13 00 00 [11:13:37]Write to MH i2c: E2 08 00 C6 0D 80 13 00 00 00 00 00 00 4F [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 62 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 62 00 C6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A1 85 00 00 0E 04 04 00 43 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 40 [11:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:37]wFMCommunicate OK [11:13:37]SAM_PROTO_GetFieldsCounters done [11:13:37]requested_item shift.num is exist - process it [11:13:37]requested_item shift.opened is exist - process it [11:13:37]req_shift_opened [11:13:37]FM_GetShiftState [11:13:37]SAM_PROTO_GetShiftState [11:13:37]wFMCommunicate request_size=4 [11:13:37]MH_SAM_APDU [11:13:37]CAPDU: 80 13 01 00 [11:13:37]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:37]Read from MH i2c: E2 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 0E 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 9C [11:13:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:13:37]wFMCommunicate OK [11:13:37]SAM_PROTO_GetShiftState done [11:13:37]FM_GetShiftState done [11:13:37]req_shift_opened done [11:13:37]requested_item shift.open_date is exist - process it [11:13:37]req_shift_open_date [11:13:37]req_shift_open_date done [11:13:37]produce_requested_data done [11:13:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34209,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [11:13:37]process_action_free close_receipt [11:13:37]json_value_free [11:13:37]json_value_free done [11:13:37]process_json_proto returns [11:13:37]Send response to host [11:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34209,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [11:13:37]free response buf [11:13:37]execute_script done [11:13:37]execute_script returns [11:13:37]free content buf [11:13:37]Sock 9.Close socket [11:13:37]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]accept exits with 7 [11:25:56]New connection [11:25:56]New thread 3067436388 created [11:25:56]Thread 3067293028 joined [11:25:56]Waiting for new connection... [11:25:56] Sock 7.Parse request [11:25:56]Sock 7.Check first char [11:25:56]Sock 7.First char is OK [11:25:56]request: POST /json_proto HTTP/1.0 [11:25:56]Method: POST [11:25:56]URL: /json_proto [11:25:56]Method is POST - this is cgi request [11:25:56]url: /json_proto [11:25:56]query_string will be loaded in cgi processing [11:25:56]execute_cgi json_proto POST (null) [11:25:56]execute_cgi path=json_proto method=POST [11:25:56]POST find Content-Length [11:25:56]Host: 172.17.38.134:8080 [11:25:56]Content-Length: 745 [11:25:56]Content-Type: application/json [11:25:56] [11:25:56]POST finish read [11:25:56]Found Content-Length = 745 [11:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184008", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:56]execute_script... [11:25:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184008", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:56]POST & json_proto [11:25:56]process_json_proto [11:25:56]json parsed OK: [11:25:56]protocol is kg_v1.0 [11:25:56]action value=close_receipt [11:25:56]process_action close_receipt [11:25:56]cmd_close_receipt [11:25:56]MH_GetDate [11:25:56]Write to MH i2c: F0 00 00 C8 0D C4 [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: F0 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: F0 09 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: F0 09 00 C8 0D 00 C7 6E 71 66 13 9C 7C 64 68 [11:25:56]GetLastDocTimeStamp 1718709216 [11:25:56]current date 1718709959 [11:25:56]FM_GetShiftState [11:25:56]SAM_PROTO_GetShiftState [11:25:56]wFMCommunicate request_size=4 [11:25:56]MH_SAM_APDU [11:25:56]CAPDU: 80 13 01 00 [11:25:56]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [11:25:56]Write i2c OK [11:25:56]MH_I2C_Read... [11:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:56]Read from MH i2c: E2 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 0E 00 [11:25:56]MH_I2C_Read... [11:25:56]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 9E [11:25:56]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:25:56]wFMCommunicate OK [11:25:56]SAM_PROTO_GetShiftState done [11:25:56]FM_GetShiftState done [11:25:56]opened in 1718670230 [11:25:56]opened+sec_in_day 1718756630 [11:25:56]quantity*price = 7000 [11:25:56]sum+1 = 7001 [11:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 32 18.06.2024 11:25 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34210 ФПД: 6448287557661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T112559&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34210&fm=6448287557661&tin=02508201610067®Number=0000000000092786&sum=7000 0 [11:25:57]StoreToDocumentArchive [11:25:57]shift 323 fd 34210 [11:25:57]save to /storage/0323/doc_00034210 [11:25:57]save last doc name /storage/0323/doc_00034210 to /storage/kkm_last_doc_name [11:25:57]save OK [11:25:57]Clear old archive folders... [11:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=312 [11:25:57]tlvbuf is 01A14CD0 [11:25:57]SAM_PROTO_ClearQueue [11:25:57]wFMCommunicate request_size=4 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 09 00 00 [11:25:57]Write to MH i2c: E2 08 00 D6 0D 80 09 00 00 00 00 00 00 55 [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [11:25:57]RAPDU: 90 00 [11:25:57]wFMCommunicate OK [11:25:57]SAM_PROTO_ClearQueue done [11:25:57]KKMCreateOFDPacket [11:25:57]OFDProtocolAddRootSTLVToBuf [11:25:57]FM_MakeSignedData [11:25:57]FM_MakeSignedData [11:25:57]SAM_PROTO_SignData [11:25:57]wFMCommunicate request_size=4 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 0D 01 02 [11:25:57]Write to MH i2c: E2 08 00 D7 0D 80 0D 01 02 00 00 00 00 5D [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [11:25:57]RAPDU: 90 00 [11:25:57]wFMCommunicate OK [11:25:57]wFMCommunicate request_size=255 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 C7 6E 71 66 0E 04 04 00 43 [11:25:57]Write to MH i2c: E2 02 01 D8 0D 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 C7 6E 71 66 0E 04 04 00 43 00 00 2C [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [11:25:57]RAPDU: 90 00 [11:25:57]wFMCommunicate OK [11:25:57]wFMCommunicate request_size=71 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 85 00 00 35 04 06 00 05 DD 5B E3 A8 1D [11:25:57]Write to MH i2c: E2 4A 00 D9 0D 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 85 00 00 35 04 06 00 05 DD 5B E3 A8 1D 00 00 8F [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [11:25:57]RAPDU: 90 00 [11:25:57]wFMCommunicate OK [11:25:57]wFMCommunicate request_size=4 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 0D 03 02 [11:25:57]Write to MH i2c: E2 08 00 DA 0D 80 0D 03 02 00 00 00 00 62 [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 0B 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 0B 00 DA 0D 00 80 DC 65 DE 6B C5 94 C9 90 00 8F [11:25:57]RAPDU: 80 DC 65 DE 6B C5 94 C9 90 00 [11:25:57]wFMCommunicate OK [11:25:57]SAM_PROTO_SignData done [11:25:57]FM_MakeSignedData done [11:25:57]CreateOFDProtocolMessage [11:25:57]wFMCommunicate request_size=4 [11:25:57]MH_SAM_APDU [11:25:57]CAPDU: 80 11 00 00 [11:25:57]Write to MH i2c: E2 08 00 DB 0D 80 11 00 00 00 00 00 00 62 [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:57]Read from MH i2c: E2 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 17 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: E2 17 00 DB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B7 [11:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:25:57]wFMCommunicate OK [11:25:57]CreateOFDProtocolMessage done [11:25:57]OFDSenderStorePacket 34210 [11:25:57]StoreOFDPacket docnum=34210 [11:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4C 01 00 00 7D 76 44 01 55 F3 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 C7 6E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 85 00 00 35 04 06 00 05 DD 5B E3 A8 1D 80 DC 65 DE 6B C5 94 C9 [11:25:57]CheckFolder [11:25:57]dirname=/storage/ofd_packets [11:25:57]CheckFolder done [11:25:57]ProducePacketName [11:25:57]name=ofd_packets/00034210 [11:25:57]NVStorageSaveData ofd_packets/00034210 [11:25:57]File name is /storage/ofd_packets/00034210 [11:25:57]Write 362 bytes [11:25:57]NVStorageSaveData done [11:25:57]OFDSenderStorePacket done [11:25:57]KKMCreateOFDPacket done [11:25:57]NVStorageSaveData kkm_last_timestamp [11:25:57]File name is /storage/kkm_last_timestamp [11:25:57]Write 4 bytes [11:25:57]NVStorageSaveData done [11:25:57]ExternCall_PrintAddStr [11:25:57]wPrintStart [11:25:57]Write to MH i2c: 01 00 00 DC 0D E9 [11:25:57]Write i2c OK [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: 01 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: 01 07 00 [11:25:57]MH_I2C_Read... [11:25:57]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [11:25:57]RasterBufferAndPrint [11:25:57]line Счет N : (3)184008 [11:25:57]line ИНН: 02508201610067 [11:25:57]line Контрольно-Кассовый Чек [11:25:57]line ПРОДАЖА [11:25:57]line Товар: 4870202521186 [11:25:57]line Чай холодный MAXI черный со вкусом клубн [11:25:57]line 1.000 * 70.00 [11:25:57]line = 70.00 [11:25:57]line НДС 12% НСП 1% [11:25:57]line > о реализуемом товаре [11:25:57]line ИТОГО: 70.00 [11:25:57]line НСП 1% : 0.62 [11:25:57]line НДС 12% : 7.43 [11:25:57]line Наличными: 70.00 [11:25:57]line Безнал.: 0.00 [11:25:57]line Место: АЗС № 120 "Партнер Нефть" [11:25:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:25:57]line СНО: Общий режим [11:25:57]line Чек 32 18.06.2024 11:25 [11:25:57]line Смена: 323 ФФД: 1.0 [11:25:57]line ЗНМ: 0300000172 [11:25:57]line РНМ: 0000000000092786 [11:25:57]line Версия ККМ: 001 [11:25:57]line ФМ: 0000000000875095 [11:25:57]line ФД: 34210 [11:25:57]line ФПД: 6448287557661 [11:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T112559&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34210&fm=6448287557661&tin=02508201610067®Number=0000000000092786&sum=7000 [11:25:58]line 0 [11:25:58]OFD Sender: Processing packet 34210 [packets to send 8, broken 7] [11:25:58]ProducePacketName [11:25:58]name=ofd_packets/00034210 [11:25:58]OFD Sender: To server: pG, [11:25:58]CommunicateWithHost lk.salyk.kg:30040 [11:25:58]ConnectInit lk.salyk.kg [11:25:58]written 0, free lines is 4095 [11:25:58]Connected sock=10 [11:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4C 01 00 00 7D 76 44 01 55 F3 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 C7 6E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 85 00 00 35 04 06 00 05 DD 5B E3 A8 1D 80 DC 65 DE 6B C5 94 C9 [11:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8D 9A 47 00 A0 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A2 85 00 00 F4 03 04 00 97 15 71 66 B6 04 01 00 00 B0 38 8D F0 C3 E7 7F E3 [11:25:58]CommunicateWithHost err = 0 [11:25:58]CheckOFDResponse [11:25:58]1017 (14) - 77093643461234 [11:25:58]1041 (16) - 0000000000875095 [11:25:58]1040 (4) - 34210 [11:25:58]1012 (4) - 18.06.2024 05:05 [11:25:58]1206 (1) - 0 [11:25:58]OFD Sender: Remove packet 34210 [11:25:58]ProducePacketName [11:25:58]name=ofd_packets/00034210 [11:25:58]NVStorageDeleteData [11:25:58]Write to MH i2c: 01 00 00 05 0E 13 [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: 01 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: 01 07 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 E2 0C 08 [11:25:58]RasterBufferAndPrint [11:25:58]line [11:25:58]line [11:25:58]line [11:25:58]line [11:25:58]line [11:25:58]written 0, free lines is 3304 [11:25:58]MH_Cut [11:25:58]Write to MH i2c: D1 01 00 0C 0E 01 EC [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: D1 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: D1 01 00 [11:25:58]MH_I2C_Read... [11:25:58]Read from MH i2c: D1 01 00 0C 0E 00 EB [11:25:58]Write to MH i2c: 01 00 00 0D 0E 1B [11:25:58]Write i2c OK [11:25:58]MH_I2C_Read... [11:25:59]OFD Sender: No OFD packet to send [11:25:59]*** Cut start [11:25:59]*** Partial cut [11:25:59]*** CUTSNS_PIN = 1 [11:25:59]*** CUTSNS_PIN = 0 [11:25:59]*** Brake cut motor [11:26:00]Read from MH i2c: 01 [11:26:00]MH_I2C_Read... [11:26:00]*** Stop cut motor [11:26:00]*** Cut end [11:26:00]Read from MH i2c: 01 07 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 FF 0F 30 [11:26:00]process_action close_receipt done [11:26:00]requested_data is exist [11:26:00]produce_requested_data [11:26:00]requested_item fm.sn is exist - process it [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 11 00 00 [11:26:00]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:00] [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 17 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EB [11:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:26:00]wFMCommunicate OK [11:26:00]requested_item fd.num is exist - process it [11:26:00]SAM_PROTO_GetFieldsCounters [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 13 00 00 [11:26:00]Write to MH i2c: E2 08 00 0F 0E 80 13 00 00 00 00 00 00 99 [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:00]Read from MH i2c: E2 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 62 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 62 00 0F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A2 85 00 00 0E 04 04 00 43 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 8E [11:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A2 85 00 00 0E 04 04 00 43 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 [11:26:00]wFMCommunicate OK [11:26:00]SAM_PROTO_GetFieldsCounters done [11:26:00]requested_item shift.num is exist - process it [11:26:00]requested_item shift.opened is exist - process it [11:26:00]req_shift_opened [11:26:00]FM_GetShiftState [11:26:00]SAM_PROTO_GetShiftState [11:26:00]wFMCommunicate request_size=4 [11:26:00]MH_SAM_APDU [11:26:00]CAPDU: 80 13 01 00 [11:26:00]Write to MH i2c: E2 08 00 10 0E 80 13 01 00 00 00 00 00 9B [11:26:00]Write i2c OK [11:26:00]MH_I2C_Read... [11:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:00]Read from MH i2c: E2 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 0E 00 [11:26:00]MH_I2C_Read... [11:26:00]Read from MH i2c: E2 0E 00 10 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E6 [11:26:00]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:26:00]wFMCommunicate OK [11:26:00]SAM_PROTO_GetShiftState done [11:26:00]FM_GetShiftState done [11:26:00]req_shift_opened done [11:26:00]requested_item shift.open_date is exist - process it [11:26:00]req_shift_open_date [11:26:00]req_shift_open_date done [11:26:00]produce_requested_data done [11:26:00]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34210,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [11:26:00]process_action_free close_receipt [11:26:00]json_value_free [11:26:00]json_value_free done [11:26:00]process_json_proto returns [11:26:00]Send response to host [11:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34210,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [11:26:00]free response buf [11:26:00]execute_script done [11:26:00]execute_script returns [11:26:00]free content buf [11:26:00]Sock 7.Close socket [11:26:00]Sock 7.Thread stoped [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:48]accept exits with 9 [11:26:48]New connection [11:26:48]New thread 3067293028 created [11:26:48]Thread 3067436388 joined [11:26:48]Waiting for new connection... [11:26:48] Sock 9.Parse request [11:26:48]Sock 9.Check first char [11:26:48]Sock 9.First char is OK [11:26:48]request: POST /json_proto HTTP/1.0 [11:26:48]Method: POST [11:26:48]URL: /json_proto [11:26:48]Method is POST - this is cgi request [11:26:48]url: /json_proto [11:26:48]query_string will be loaded in cgi processing [11:26:48]execute_cgi json_proto POST (null) [11:26:48]execute_cgi path=json_proto method=POST [11:26:48]POST find Content-Length [11:26:48]Host: 172.17.38.134:8080 [11:26:48]Content-Length: 709 [11:26:48]Content-Type: application/json [11:26:48] [11:26:48]POST finish read [11:26:48]Found Content-Length = 709 [11:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184009", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:48]execute_script... [11:26:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184009", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:48]POST & json_proto [11:26:48]process_json_proto [11:26:48]json parsed OK: [11:26:48]protocol is kg_v1.0 [11:26:48]action value=close_receipt [11:26:48]process_action close_receipt [11:26:48]cmd_close_receipt [11:26:48]MH_GetDate [11:26:48]Write to MH i2c: F0 00 00 11 0E 0E [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 09 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 09 00 11 0E 00 FB 6E 71 66 13 9C 7C 64 E6 [11:26:48]GetLastDocTimeStamp 1718709959 [11:26:48]current date 1718710011 [11:26:48]FM_GetShiftState [11:26:48]SAM_PROTO_GetShiftState [11:26:48]wFMCommunicate request_size=4 [11:26:48]MH_SAM_APDU [11:26:48]CAPDU: 80 13 01 00 [11:26:48]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:48]Read from MH i2c: E2 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: E2 0E 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E8 [11:26:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:26:48]wFMCommunicate OK [11:26:48]SAM_PROTO_GetShiftState done [11:26:48]FM_GetShiftState done [11:26:48]opened in 1718670230 [11:26:48]opened+sec_in_day 1718756630 [11:26:48]quantity*price = 9500 [11:26:48]sum+1 = 9501 [11:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 33 18.06.2024 11:26 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34211 ФПД: 8034772369225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T112651&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34211&fm=8034772369225&tin=02508201610067®Number=0000000000092786&sum=9500 0 [11:26:49]StoreToDocumentArchive [11:26:49]shift 323 fd 34211 [11:26:49]save to /storage/0323/doc_00034211 [11:26:49]save last doc name /storage/0323/doc_00034211 to /storage/kkm_last_doc_name [11:26:49]save OK [11:26:49]Clear old archive folders... [11:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=304 [11:26:49]tlvbuf is 019E3780 [11:26:49]SAM_PROTO_ClearQueue [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 09 00 00 [11:26:49]Write to MH i2c: E2 08 00 1F 0E 80 09 00 00 00 00 00 00 9F [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]SAM_PROTO_ClearQueue done [11:26:49]KKMCreateOFDPacket [11:26:49]OFDProtocolAddRootSTLVToBuf [11:26:49]FM_MakeSignedData [11:26:49]FM_MakeSignedData [11:26:49]SAM_PROTO_SignData [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 01 02 [11:26:49]Write to MH i2c: E2 08 00 20 0E 80 0D 01 02 00 00 00 00 A7 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]wFMCommunicate request_size=255 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 FB 6E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 [11:26:49]Write to MH i2c: E2 02 01 21 0E 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 FB 6E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 00 00 92 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]wFMCommunicate request_size=63 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 85 00 00 35 04 06 00 07 4E BD C0 BF 49 [11:26:49]Write to MH i2c: E2 42 00 22 0E 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 85 00 00 35 04 06 00 07 4E BD C0 BF 49 00 00 FF [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [11:26:49]RAPDU: 90 00 [11:26:49]wFMCommunicate OK [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 0D 03 02 [11:26:49]Write to MH i2c: E2 08 00 23 0E 80 0D 03 02 00 00 00 00 AC [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 0B 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 0B 00 23 0E 00 AE 91 74 26 63 74 E1 D6 90 00 14 [11:26:49]RAPDU: AE 91 74 26 63 74 E1 D6 90 00 [11:26:49]wFMCommunicate OK [11:26:49]SAM_PROTO_SignData done [11:26:49]FM_MakeSignedData done [11:26:49]CreateOFDProtocolMessage [11:26:49]wFMCommunicate request_size=4 [11:26:49]MH_SAM_APDU [11:26:49]CAPDU: 80 11 00 00 [11:26:49]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:49]Read from MH i2c: E2 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 17 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 01 [11:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:26:49]wFMCommunicate OK [11:26:49]CreateOFDProtocolMessage done [11:26:49]OFDSenderStorePacket 34211 [11:26:49]StoreOFDPacket docnum=34211 [11:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 00 1D 3C 01 6C 40 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 FB 6E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 85 00 00 35 04 06 00 07 4E BD C0 BF 49 AE 91 74 26 63 74 E1 D6 [11:26:49]CheckFolder [11:26:49]dirname=/storage/ofd_packets [11:26:49]CheckFolder done [11:26:49]ProducePacketName [11:26:49]name=ofd_packets/00034211 [11:26:49]NVStorageSaveData ofd_packets/00034211 [11:26:49]File name is /storage/ofd_packets/00034211 [11:26:49]Write 354 bytes [11:26:49]NVStorageSaveData done [11:26:49]OFDSenderStorePacket done [11:26:49]KKMCreateOFDPacket done [11:26:49]NVStorageSaveData kkm_last_timestamp [11:26:49]File name is /storage/kkm_last_timestamp [11:26:49]Write 4 bytes [11:26:49]NVStorageSaveData done [11:26:49]ExternCall_PrintAddStr [11:26:49]wPrintStart [11:26:49]Write to MH i2c: 01 00 00 25 0E 33 [11:26:49]Write i2c OK [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 07 00 [11:26:49]MH_I2C_Read... [11:26:49]Read from MH i2c: 01 07 00 25 0E 00 00 00 00 00 FF 0F 48 [11:26:49]RasterBufferAndPrint [11:26:49]line Счет N : (3)184009 [11:26:49]line ИНН: 02508201610067 [11:26:49]line Контрольно-Кассовый Чек [11:26:49]line ПРОДАЖА [11:26:49]line Товар: 4700000480302 [11:26:49]line Напиток энерг Nitro манго-клуб 0.45 ж/б [11:26:49]line 1.000 * 95.00 [11:26:49]line = 95.00 [11:26:49]line НДС 12% НСП 1% [11:26:49]line > о реализуемом товаре [11:26:49]line ИТОГО: 95.00 [11:26:49]line НСП 1% : 0.84 [11:26:49]line НДС 12% : 10.09 [11:26:49]line Наличными: 95.00 [11:26:49]line Безнал.: 0.00 [11:26:49]line Место: АЗС № 120 "Партнер Нефть" [11:26:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:26:49]line СНО: Общий режим [11:26:49]line Чек 33 18.06.2024 11:26 [11:26:49]line Смена: 323 ФФД: 1.0 [11:26:49]line ЗНМ: 0300000172 [11:26:49]line РНМ: 0000000000092786 [11:26:49]line Версия ККМ: 001 [11:26:49]line ФМ: 0000000000875095 [11:26:49]line ФД: 34211 [11:26:49]line ФПД: 8034772369225 [11:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T112651&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34211&fm=8034772369225&tin=02508201610067®Number=0000000000092786&sum=9500 [11:26:50]line 0 [11:26:50]OFD Sender: Processing packet 34211 [packets to send 8, broken 7] [11:26:50]ProducePacketName [11:26:50]name=ofd_packets/00034211 [11:26:50]OFD Sender: To server: pG, [11:26:50]CommunicateWithHost lk.salyk.kg:30040 [11:26:50]ConnectInit lk.salyk.kg [11:26:50]written 0, free lines is 4095 [11:26:50]Connected sock=10 [11:26:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 00 1D 3C 01 6C 40 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 FB 6E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 85 00 00 35 04 06 00 07 4E BD C0 BF 49 AE 91 74 26 63 74 E1 D6 [11:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C5 0C 47 00 00 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A3 85 00 00 F4 03 04 00 CB 15 71 66 B6 04 01 00 00 4E DE D4 EE 3C 00 DF AC [11:26:50]CommunicateWithHost err = 0 [11:26:50]CheckOFDResponse [11:26:50]1017 (14) - 77093643461234 [11:26:50]1041 (16) - 0000000000875095 [11:26:50]1040 (4) - 34211 [11:26:50]1012 (4) - 18.06.2024 05:06 [11:26:50]1206 (1) - 0 [11:26:50]OFD Sender: Remove packet 34211 [11:26:50]ProducePacketName [11:26:50]name=ofd_packets/00034211 [11:26:50]NVStorageDeleteData [11:26:50]Write to MH i2c: 01 00 00 4E 0E 5C [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 4E 0E 00 00 00 00 00 D8 0C 47 [11:26:50]RasterBufferAndPrint [11:26:50]line [11:26:50]line [11:26:50]line [11:26:50]line [11:26:50]line [11:26:50]written 0, free lines is 3298 [11:26:50]MH_Cut [11:26:50]Write to MH i2c: D1 01 00 55 0E 01 35 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: D1 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: D1 01 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: D1 01 00 55 0E 00 34 [11:26:50]Write to MH i2c: 01 00 00 56 0E 64 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:51]OFD Sender: No OFD packet to send [11:26:51]*** Cut start [11:26:51]*** Partial cut [11:26:51]*** CUTSNS_PIN = 1 [11:26:51]*** CUTSNS_PIN = 0 [11:26:51]*** Brake cut motor [11:26:52]Read from MH i2c: 01 [11:26:52]MH_I2C_Read... [11:26:52]*** Stop cut motor [11:26:52]*** Cut end [11:26:52]Read from MH i2c: 01 07 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: 01 07 00 56 0E 00 00 00 00 00 FF 0F 79 [11:26:52]process_action close_receipt done [11:26:52]requested_data is exist [11:26:52]produce_requested_data [11:26:52]requested_item fm.sn is exist - process it [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 11 00 00 [11:26:52]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 34 [11:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [11:26:52]wFMCommunicate OK [11:26:52]requested_item fd.num is exist - process it [11:26:52]SAM_PROTO_GetFieldsCounters [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 13 00 00 [11:26:52]Write to MH i2c: E2 08 00 58 0E 80 13 00 00 00 00 00 00 E2 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 62 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 62 00 58 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A3 85 00 00 0E 04 04 00 43 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 DB [11:26:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A3 85 00 00 0E 04 04 00 43 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 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_GetFieldsCounters done [11:26:52]requested_item shift.num is exist - process it [11:26:52]requested_item shift.opened is exist - process it [11:26:52]req_shift_opened [11:26:52]FM_GetShiftState [11:26:52]SAM_PROTO_GetShiftState [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 13 01 00 [11:26:52]Write to MH i2c: E2 08 00 59 0E 80 13 01 00 00 00 00 00 E4 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0E 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0E 00 59 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 2F [11:26:52]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_GetShiftState done [11:26:52]FM_GetShiftState done [11:26:52]req_shift_opened done [11:26:52]requested_item shift.open_date is exist - process it [11:26:52]req_shift_open_date [11:26:52]req_shift_open_date done [11:26:52]produce_requested_data done [11:26:52]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34211,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [11:26:52]process_action_free close_receipt [11:26:52]json_value_free [11:26:52]json_value_free done [11:26:52]process_json_proto returns [11:26:52]Send response to host [11:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34211,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [11:26:52]free response buf [11:26:52]execute_script done [11:26:52]execute_script returns [11:26:52]free content buf [11:26:52]Sock 9.Close socket [11:26:52]Sock 9.Thread stoped [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:22]int [12:00:22]Write to MH i2c: 01 00 00 5A 0E 68 [12:00:22]*** FLAG_PRN_PAP2 set [12:00:22]Write i2c OK [12:00:22]MH_I2C_Read... [12:00:22]Read from MH i2c: 01 [12:00:22]MH_I2C_Read... [12:00:22]Read from MH i2c: 01 07 00 [12:00:22]MH_I2C_Read... [12:00:22]Read from MH i2c: 01 07 00 5A 0E 00 02 00 00 00 FF 0F 7F [12:00:22]state=0 [12:00:22]Cover opened [12:00:25]int [12:00:25]Write to MH i2c: 01 00 00 5B 0E 69 [12:00:25]*** FLAG_PRN_PAP2 reset [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 FF 0F 7E [12:00:25]state=3 [12:00:25]Cover closed [12:00:25]int [12:00:25]Write to MH i2c: 01 00 00 5C 0E 6A [12:00:25]*** FLAG_PRN_PAP2 set [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 5C 0E 00 02 00 00 00 FF 0F 81 [12:00:25]state=0 [12:00:25]Cover opened [12:00:27]OFD Sender: No OFD packet to send [12:00:30]Write to MH i2c: 01 00 00 5D 0E 6B [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 07 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 07 00 5D 0E 00 02 00 00 00 FF 0F 82 [12:00:30]state=3 [12:00:30]Cover opened [12:00:30]int [12:00:30]Write to MH i2c: 01 00 00 5E 0E 6C [12:00:30]*** FLAG_PRN_PAP2 reset [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 07 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 07 00 5E 0E 00 00 00 00 00 FF 0F 81 [12:00:30]state=3 [12:00:30]Cover closed [12:00:31]int [12:00:31]Write to MH i2c: 01 00 00 5F 0E 6D [12:00:31]*** FLAG_PRN_KEY set [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 5F 0E 00 08 00 00 00 FF 0F 8A [12:00:31]state=0 [12:00:31]Key pressed [12:00:31]Feed [12:00:31]Write to MH i2c: D8 00 00 60 0E 45 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: D8 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: D8 01 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: D8 01 00 60 0E 00 46 [12:00:31]int [12:00:31]Write to MH i2c: 01 00 00 61 0E 6F [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 61 0E 00 48 00 00 00 3C 00 FA [12:00:31]state=2 [12:00:31]Key pressed [12:00:31]int [12:00:31]Write to MH i2c: 01 00 00 62 0E 70 [12:00:31]*** FLAG_PRN_KEY reset [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 F6 0F 7C [12:00:31]state=2 [12:00:31]Stop feed [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]accept exits with 7 [12:04:17]New connection [12:04:17]New thread 3067436388 created [12:04:17]Thread 3067293028 joined [12:04:17]Waiting for new connection... [12:04:17] Sock 7.Parse request [12:04:17]Sock 7.Check first char [12:04:17]Sock 7.First char is OK [12:04:17]request: POST /json_proto HTTP/1.0 [12:04:17]Method: POST [12:04:17]URL: /json_proto [12:04:17]Method is POST - this is cgi request [12:04:17]url: /json_proto [12:04:17]query_string will be loaded in cgi processing [12:04:17]execute_cgi json_proto POST (null) [12:04:17]execute_cgi path=json_proto method=POST [12:04:17]POST find Content-Length [12:04:17]Host: 172.17.38.134:8080 [12:04:17]Content-Length: 695 [12:04:17]Content-Type: application/json [12:04:17] [12:04:17]POST finish read [12:04:17]Found Content-Length = 695 [12:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184010", "tax_sys" : 0, "items" : [ { "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:17]execute_script... [12:04:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184010", "tax_sys" : 0, "items" : [ { "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:17]POST & json_proto [12:04:17]process_json_proto [12:04:17]json parsed OK: [12:04:17]protocol is kg_v1.0 [12:04:17]action value=close_receipt [12:04:17]process_action close_receipt [12:04:17]cmd_close_receipt [12:04:17]MH_GetDate [12:04:17]Write to MH i2c: F0 00 00 63 0E 60 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: F0 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: F0 09 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: F0 09 00 63 0E 00 C4 77 71 66 13 9C 7C 64 0A [12:04:17]GetLastDocTimeStamp 1718710011 [12:04:17]current date 1718712260 [12:04:17]FM_GetShiftState [12:04:17]SAM_PROTO_GetShiftState [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 13 01 00 [12:04:17]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0E 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3A [12:04:17]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_GetShiftState done [12:04:17]FM_GetShiftState done [12:04:17]opened in 1718670230 [12:04:17]opened+sec_in_day 1718756630 [12:04:17]quantity*price = 3000 [12:04:17]sum+1 = 3001 [12:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 34 18.06.2024 12:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34212 ФПД: 195538047396475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120420&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34212&fm=195538047396475&tin=02508201610067®Number=0000000000092786&sum=3000 0 [12:04:18]StoreToDocumentArchive [12:04:18]shift 323 fd 34212 [12:04:18]save to /storage/0323/doc_00034212 [12:04:18]save last doc name /storage/0323/doc_00034212 to /storage/kkm_last_doc_name [12:04:18]save OK [12:04:18]Clear old archive folders... [12:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=290 [12:04:18]tlvbuf is 019E3F60 [12:04:18]SAM_PROTO_ClearQueue [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 09 00 00 [12:04:18]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_ClearQueue done [12:04:18]KKMCreateOFDPacket [12:04:18]OFDProtocolAddRootSTLVToBuf [12:04:18]FM_MakeSignedData [12:04:18]FM_MakeSignedData [12:04:18]SAM_PROTO_SignData [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 01 02 [12:04:18]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=255 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 77 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:04:18]Write to MH i2c: E2 02 01 73 0E 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 77 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 7F [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=49 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 02 02 2C 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 85 00 00 35 04 06 00 B1 D7 3F DA EA 7B [12:04:18]Write to MH i2c: E2 34 00 74 0E 80 0D 02 02 2C 00 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 85 00 00 35 04 06 00 B1 D7 3F DA EA 7B 00 00 61 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [12:04:18]RAPDU: 90 00 [12:04:18]wFMCommunicate OK [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 0D 03 02 [12:04:18]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0B 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 0B 00 75 0E 00 0B 11 9E E8 97 55 F8 06 90 00 8B [12:04:18]RAPDU: 0B 11 9E E8 97 55 F8 06 90 00 [12:04:18]wFMCommunicate OK [12:04:18]SAM_PROTO_SignData done [12:04:18]FM_MakeSignedData done [12:04:18]CreateOFDProtocolMessage [12:04:18]wFMCommunicate request_size=4 [12:04:18]MH_SAM_APDU [12:04:18]CAPDU: 80 11 00 00 [12:04:18]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:18]Read from MH i2c: E2 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 53 [12:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:04:18]wFMCommunicate OK [12:04:18]CreateOFDProtocolMessage done [12:04:18]OFDSenderStorePacket 34212 [12:04:18]StoreOFDPacket docnum=34212 [12:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 36 01 00 00 A8 62 2E 01 E8 34 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 77 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 85 00 00 35 04 06 00 B1 D7 3F DA EA 7B 0B 11 9E E8 97 55 F8 06 [12:04:18]CheckFolder [12:04:18]dirname=/storage/ofd_packets [12:04:18]CheckFolder done [12:04:18]ProducePacketName [12:04:18]name=ofd_packets/00034212 [12:04:18]NVStorageSaveData ofd_packets/00034212 [12:04:18]File name is /storage/ofd_packets/00034212 [12:04:18]Write 340 bytes [12:04:18]NVStorageSaveData done [12:04:18]OFDSenderStorePacket done [12:04:18]KKMCreateOFDPacket done [12:04:18]NVStorageSaveData kkm_last_timestamp [12:04:18]File name is /storage/kkm_last_timestamp [12:04:18]Write 4 bytes [12:04:18]NVStorageSaveData done [12:04:18]ExternCall_PrintAddStr [12:04:18]wPrintStart [12:04:18]Write to MH i2c: 01 00 00 77 0E 85 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [12:04:18]RasterBufferAndPrint [12:04:18]line Счет N : (3)184010 [12:04:18]line ИНН: 02508201610067 [12:04:18]line Контрольно-Кассовый Чек [12:04:18]line ПРОДАЖА [12:04:18]line Товар: 4700000160884 [12:04:18]line Снек Курут индивидуальный [12:04:18]line 2.000 * 15.00 [12:04:18]line = 30.00 [12:04:18]line НДС 12% НСП 1% [12:04:18]line > о реализуемом товаре [12:04:18]line ИТОГО: 30.00 [12:04:18]line НСП 1% : 0.26 [12:04:18]line НДС 12% : 3.19 [12:04:18]line Наличными: 30.00 [12:04:18]line Безнал.: 0.00 [12:04:18]line Место: АЗС № 120 "Партнер Нефть" [12:04:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:04:18]line СНО: Общий режим [12:04:18]line Чек 34 18.06.2024 12:04 [12:04:18]line Смена: 323 ФФД: 1.0 [12:04:18]line ЗНМ: 0300000172 [12:04:18]line РНМ: 0000000000092786 [12:04:18]line Версия ККМ: 001 [12:04:18]line ФМ: 0000000000875095 [12:04:18]line ФД: 34212 [12:04:18]line ФПД: 195538047396475 [12:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T120420&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34212&fm=195538047396475&tin=02508201610067®Number=0000000000092786&sum=3000 [12:04:19]line 0 [12:04:19]OFD Sender: Processing packet 34212 [packets to send 8, broken 7] [12:04:19]ProducePacketName [12:04:19]name=ofd_packets/00034212 [12:04:19]OFD Sender: To server: pG, [12:04:19]CommunicateWithHost lk.salyk.kg:30040 [12:04:19]ConnectInit lk.salyk.kg [12:04:19]written 0, free lines is 4095 [12:04:19]Connected sock=10 [12:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 36 01 00 00 A8 62 2E 01 E8 34 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C4 77 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 85 00 00 35 04 06 00 B1 D7 3F DA EA 7B 0B 11 9E E8 97 55 F8 06 [12:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 29 CB 47 00 6B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A4 85 00 00 F4 03 04 00 94 1E 71 66 B6 04 01 00 00 76 59 FA EF B8 DF 38 38 [12:04:19]CommunicateWithHost err = 0 [12:04:19]CheckOFDResponse [12:04:19]1017 (14) - 77093643461234 [12:04:19]1041 (16) - 0000000000875095 [12:04:19]1040 (4) - 34212 [12:04:19]1012 (4) - 18.06.2024 05:43 [12:04:19]1206 (1) - 0 [12:04:19]OFD Sender: Remove packet 34212 [12:04:19]ProducePacketName [12:04:19]name=ofd_packets/00034212 [12:04:19]NVStorageDeleteData [12:04:19]Write to MH i2c: 01 00 00 9F 0E AD [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 01 0D C2 [12:04:19]RasterBufferAndPrint [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]line [12:04:19]written 0, free lines is 3335 [12:04:19]MH_Cut [12:04:19]Write to MH i2c: D1 01 00 A6 0E 01 86 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 01 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: D1 01 00 A6 0E 00 85 [12:04:19]Write to MH i2c: 01 00 00 A7 0E B5 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:20]OFD Sender: No OFD packet to send [12:04:20]*** Cut start [12:04:20]*** Partial cut [12:04:20]*** CUTSNS_PIN = 1 [12:04:20]*** CUTSNS_PIN = 0 [12:04:20]*** Brake cut motor [12:04:20]Read from MH i2c: 01 [12:04:20]MH_I2C_Read... [12:04:20]*** Stop cut motor [12:04:20]*** Cut end [12:04:20]Read from MH i2c: 01 07 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 FF 0F CA [12:04:20]process_action close_receipt done [12:04:20]requested_data is exist [12:04:20]produce_requested_data [12:04:20]requested_item fm.sn is exist - process it [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 11 00 00 [12:04:20]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:20]Read from MH i2c: E2 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 17 00 [12:04:20]MH_I2C_Read... [12:04:20]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 85 [12:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:04:20]wFMCommunicate OK [12:04:20]requested_item fd.num is exist - process it [12:04:20]SAM_PROTO_GetFieldsCounters [12:04:20]wFMCommunicate request_size=4 [12:04:20]MH_SAM_APDU [12:04:20]CAPDU: 80 13 00 00 [12:04:20]Write to MH i2c: E2 08 00 A9 0E 80 13 00 00 00 00 00 00 33 [12:04:20]Write i2c OK [12:04:20]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 62 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 62 00 A9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A4 85 00 00 0E 04 04 00 43 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 30 [12:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A4 85 00 00 0E 04 04 00 43 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 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_GetFieldsCounters done [12:04:21]requested_item shift.num is exist - process it [12:04:21]requested_item shift.opened is exist - process it [12:04:21]req_shift_opened [12:04:21]FM_GetShiftState [12:04:21]SAM_PROTO_GetShiftState [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 13 01 00 [12:04:21]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0E 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 80 [12:04:21]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_GetShiftState done [12:04:21]FM_GetShiftState done [12:04:21]req_shift_opened done [12:04:21]requested_item shift.open_date is exist - process it [12:04:21]req_shift_open_date [12:04:21]req_shift_open_date done [12:04:21]produce_requested_data done [12:04:21]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34212,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:04:21]process_action_free close_receipt [12:04:21]json_value_free [12:04:21]json_value_free done [12:04:21]process_json_proto returns [12:04:21]Send response to host [12:04:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34212,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:04:21]free response buf [12:04:21]execute_script done [12:04:21]execute_script returns [12:04:21]free content buf [12:04:21]Sock 7.Close socket [12:04:21]Sock 7.Thread stoped [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:38]accept exits with 9 [12:13:38]New connection [12:13:38]New thread 3067293028 created [12:13:38]Thread 3067436388 joined [12:13:38]Waiting for new connection... [12:13:38] Sock 9.Parse request [12:13:38]Sock 9.Check first char [12:13:38]Sock 9.First char is OK [12:13:38]request: POST /json_proto HTTP/1.0 [12:13:38]Method: POST [12:13:38]URL: /json_proto [12:13:38]Method is POST - this is cgi request [12:13:38]url: /json_proto [12:13:38]query_string will be loaded in cgi processing [12:13:38]execute_cgi json_proto POST (null) [12:13:38]execute_cgi path=json_proto method=POST [12:13:38]POST find Content-Length [12:13:38]Host: 172.17.38.134:8080 [12:13:38]Content-Length: 936 [12:13:38]Content-Type: application/json [12:13:38] [12:13:38]POST finish read [12:13:38]Found Content-Length = 936 [12:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184011", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" ] } } [12:13:38]execute_script... [12:13:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184011", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" ] } } [12:13:38]POST & json_proto [12:13:38]process_json_proto [12:13:38]json parsed OK: [12:13:38]protocol is kg_v1.0 [12:13:38]action value=close_receipt [12:13:38]process_action close_receipt [12:13:38]cmd_close_receipt [12:13:38]MH_GetDate [12:13:38]Write to MH i2c: F0 00 00 AB 0E A8 [12:13:38]Write i2c OK [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: F0 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: F0 09 00 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: F0 09 00 AB 0E 00 F5 79 71 66 13 9C 7C 64 85 [12:13:38]GetLastDocTimeStamp 1718712260 [12:13:38]current date 1718712821 [12:13:38]FM_GetShiftState [12:13:38]SAM_PROTO_GetShiftState [12:13:38]wFMCommunicate request_size=4 [12:13:38]MH_SAM_APDU [12:13:38]CAPDU: 80 13 01 00 [12:13:38]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [12:13:38]Write i2c OK [12:13:38]MH_I2C_Read... [12:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:38]Read from MH i2c: E2 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: E2 0E 00 [12:13:38]MH_I2C_Read... [12:13:38]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 82 [12:13:38]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:13:38]wFMCommunicate OK [12:13:38]SAM_PROTO_GetShiftState done [12:13:38]FM_GetShiftState done [12:13:38]opened in 1718670230 [12:13:38]opened+sec_in_day 1718756630 [12:13:38]quantity*price = 5000 [12:13:38]sum+1 = 5001 [12:13:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002326172 Вода ASU пит н.газ лимон ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 35 18.06.2024 12:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34213 ФПД: 245705964275952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121341&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34213&fm=245705964275952&tin=02508201610067®Number=0000000000092786&sum=15000 0 [12:13:39]StoreToDocumentArchive [12:13:39]shift 323 fd 34213 [12:13:39]save to /storage/0323/doc_00034213 [12:13:39]save last doc name /storage/0323/doc_00034213 to /storage/kkm_last_doc_name [12:13:39]save OK [12:13:39]Clear old archive folders... [12:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=392 [12:13:39]tlvbuf is 01A29A40 [12:13:39]SAM_PROTO_ClearQueue [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 09 00 00 [12:13:39]Write to MH i2c: E2 08 00 B9 0E 80 09 00 00 00 00 00 00 39 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_ClearQueue done [12:13:39]KKMCreateOFDPacket [12:13:39]OFDProtocolAddRootSTLVToBuf [12:13:39]FM_MakeSignedData [12:13:39]FM_MakeSignedData [12:13:39]SAM_PROTO_SignData [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 01 02 [12:13:39]Write to MH i2c: E2 08 00 BA 0E 80 0D 01 02 00 00 00 00 41 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=255 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 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 [12:13:39]Write to MH i2c: E2 02 01 BB 0E 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 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 00 00 03 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=151 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 84 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 23 00 00 00 F4 03 04 00 F5 79 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 85 00 00 35 04 06 00 DF 77 E0 B8 48 F0 [12:13:39]Write to MH i2c: E2 9A 00 BC 0E 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 84 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 23 00 00 00 F4 03 04 00 F5 79 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 85 00 00 35 04 06 00 DF 77 E0 B8 48 F0 00 00 34 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 03 02 [12:13:39]Write to MH i2c: E2 08 00 BD 0E 80 0D 03 02 00 00 00 00 46 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0B 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0B 00 BD 0E 00 14 7C BD 95 30 46 A4 A3 90 00 E6 [12:13:39]RAPDU: 14 7C BD 95 30 46 A4 A3 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_SignData done [12:13:39]FM_MakeSignedData done [12:13:39]CreateOFDProtocolMessage [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 11 00 00 [12:13:39]Write to MH i2c: E2 08 00 BE 0E 80 11 00 00 00 00 00 00 46 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 BE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9B [12:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:13:40]wFMCommunicate OK [12:13:40]CreateOFDProtocolMessage done [12:13:40]OFDSenderStorePacket 34213 [12:13:40]StoreOFDPacket docnum=34213 [12:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9C 01 00 00 12 7B 94 01 AD 87 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 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 84 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 23 00 00 00 F4 03 04 00 F5 79 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 85 00 00 35 04 06 00 DF 77 E0 B8 48 F0 14 7C BD 95 30 46 A4 A3 [12:13:40]CheckFolder [12:13:40]dirname=/storage/ofd_packets [12:13:40]CheckFolder done [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00034213 [12:13:40]NVStorageSaveData ofd_packets/00034213 [12:13:40]File name is /storage/ofd_packets/00034213 [12:13:40]Write 442 bytes [12:13:40]NVStorageSaveData done [12:13:40]OFDSenderStorePacket done [12:13:40]KKMCreateOFDPacket done [12:13:40]NVStorageSaveData kkm_last_timestamp [12:13:40]File name is /storage/kkm_last_timestamp [12:13:40]Write 4 bytes [12:13:40]NVStorageSaveData done [12:13:40]ExternCall_PrintAddStr [12:13:40]wPrintStart [12:13:40]Write to MH i2c: 01 00 00 BF 0E CD [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 [12:13:40]MH_I2C_Read... [12:13:40]OFD Sender: Processing packet 34213 [packets to send 8, broken 7] [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00034213 [12:13:40]OFD Sender: To server: pG, [12:13:40]CommunicateWithHost lk.salyk.kg:30040 [12:13:40]ConnectInit lk.salyk.kg [12:13:40]Read from MH i2c: 01 07 00 BF 0E 00 00 00 00 00 FF 0F E2 [12:13:40]RasterBufferAndPrint [12:13:40]line Счет N : (3)184011 [12:13:40]line ИНН: 02508201610067 [12:13:40]line Контрольно-Кассовый Чек [12:13:40]line ПРОДАЖА [12:13:40]line Товар: 4700000160358 [12:13:40]line Вода Легенда 1л [12:13:40]line 1.000 * 50.00 [12:13:40]line = 50.00 [12:13:40]line НДС 12% НСП 1% [12:13:40]line > о реализуемом товаре [12:13:40]line Товар: 4870002326172 [12:13:40]line Вода ASU пит н.газ лимон ПЭТ 1л [12:13:40]line 1.000 * 100.00 [12:13:40]line = 100.00 [12:13:40]line НДС 12% НСП 1% [12:13:40]line > о реализуемом товаре [12:13:40]line ИТОГО: 150.00 [12:13:40]line НСП 1% : 1.32 [12:13:40]line НДС 12% : 15.93 [12:13:40]line Наличными: 150.00 [12:13:40]line Безнал.: 0.00 [12:13:40]line Место: АЗС № 120 "Партнер Нефть" [12:13:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:13:40]line СНО: Общий режим [12:13:40]line Чек 35 18.06.2024 12:13 [12:13:40]line Смена: 323 ФФД: 1.0 [12:13:40]line ЗНМ: 0300000172 [12:13:40]line РНМ: 0000000000092786 [12:13:40]line Версия ККМ: 001 [12:13:40]line ФМ: 0000000000875095 [12:13:40]line ФД: 34213 [12:13:40]line ФПД: 245705964275952 [12:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121341&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34213&fm=245705964275952&tin=02508201610067®Number=0000000000092786&sum=15000 [12:13:40]line 0 [12:13:40]written 0, free lines is 4095 [12:13:40]Connected sock=10 [12:13:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9C 01 00 00 12 7B 94 01 AD 87 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 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 84 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 23 00 00 00 F4 03 04 00 F5 79 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 85 00 00 35 04 06 00 DF 77 E0 B8 48 F0 14 7C BD 95 30 46 A4 A3 [12:13:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 65 3A 47 00 42 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A5 85 00 00 F4 03 04 00 C6 20 71 66 B6 04 01 00 00 9B 1B B5 BE 06 E7 66 7D [12:13:40]CommunicateWithHost err = 0 [12:13:40]CheckOFDResponse [12:13:40]1017 (14) - 77093643461234 [12:13:40]1041 (16) - 0000000000875095 [12:13:40]1040 (4) - 34213 [12:13:40]1012 (4) - 18.06.2024 05:53 [12:13:40]1206 (1) - 0 [12:13:40]OFD Sender: Remove packet 34213 [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00034213 [12:13:40]NVStorageDeleteData [12:13:40]Write to MH i2c: 01 00 00 EE 0E FC [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 94 0C A3 [12:13:40]RasterBufferAndPrint [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]written 0, free lines is 3226 [12:13:40]MH_Cut [12:13:40]Write to MH i2c: D1 01 00 F5 0E 01 D5 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 01 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 01 00 F5 0E 00 D4 [12:13:40]Write to MH i2c: 01 00 00 F6 0E 04 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:41]OFD Sender: No OFD packet to send [12:13:41]*** Cut start [12:13:41]*** Partial cut [12:13:41]*** CUTSNS_PIN = 1 [12:13:41]*** CUTSNS_PIN = 0 [12:13:41]*** Brake cut motor [12:13:42]Read from MH i2c: 01 [12:13:42]MH_I2C_Read... [12:13:42]*** Stop cut motor [12:13:42]*** Cut end [12:13:42]Read from MH i2c: 01 07 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0F 19 [12:13:42]process_action close_receipt done [12:13:42]requested_data is exist [12:13:42]produce_requested_data [12:13:42]requested_item fm.sn is exist - process it [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 11 00 00 [12:13:42]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 17 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D4 [12:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:13:42]wFMCommunicate OK [12:13:42]requested_item fd.num is exist - process it [12:13:42]SAM_PROTO_GetFieldsCounters [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 13 00 00 [12:13:42]Write to MH i2c: E2 08 00 F8 0E 80 13 00 00 00 00 00 00 82 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 62 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 62 00 F8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A5 85 00 00 0E 04 04 00 43 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 83 [12:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:42]wFMCommunicate OK [12:13:42]SAM_PROTO_GetFieldsCounters done [12:13:42]requested_item shift.num is exist - process it [12:13:42]requested_item shift.opened is exist - process it [12:13:42]req_shift_opened [12:13:42]FM_GetShiftState [12:13:42]SAM_PROTO_GetShiftState [12:13:42]wFMCommunicate request_size=4 [12:13:42]MH_SAM_APDU [12:13:42]CAPDU: 80 13 01 00 [12:13:42]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [12:13:42]Write i2c OK [12:13:42]MH_I2C_Read... [12:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:42]Read from MH i2c: E2 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 0E 00 [12:13:42]MH_I2C_Read... [12:13:42]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CF [12:13:42]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:13:42]wFMCommunicate OK [12:13:42]SAM_PROTO_GetShiftState done [12:13:42]FM_GetShiftState done [12:13:42]req_shift_opened done [12:13:42]requested_item shift.open_date is exist - process it [12:13:42]req_shift_open_date [12:13:42]req_shift_open_date done [12:13:42]produce_requested_data done [12:13:42]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34213,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:13:42]process_action_free close_receipt [12:13:42]json_value_free [12:13:42]json_value_free done [12:13:42]process_json_proto returns [12:13:42]Send response to host [12:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34213,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:13:42]free response buf [12:13:42]execute_script done [12:13:42]execute_script returns [12:13:42]free content buf [12:13:42]Sock 9.Close socket [12:13:42]Sock 9.Thread stoped [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:48]accept exits with 7 [12:19:48]New connection [12:19:48]New thread 3067436388 created [12:19:48]Thread 3067293028 joined [12:19:48]Waiting for new connection... [12:19:48] Sock 7.Parse request [12:19:48]Sock 7.Check first char [12:19:48]Sock 7.First char is OK [12:19:48]request: POST /json_proto HTTP/1.0 [12:19:48]Method: POST [12:19:48]URL: /json_proto [12:19:48]Method is POST - this is cgi request [12:19:48]url: /json_proto [12:19:48]query_string will be loaded in cgi processing [12:19:48]execute_cgi json_proto POST (null) [12:19:48]execute_cgi path=json_proto method=POST [12:19:48]POST find Content-Length [12:19:48]Host: 172.17.38.134:8080 [12:19:48]Content-Length: 1097 [12:19:48]Content-Type: application/json [12:19:48] [12:19:48]POST finish read [12:19:48]Found Content-Length = 1097 [12:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184012", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5053990106981", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u0441\u044B\u0440 165\u0433", "price" : 420.00, "quantity" : 1.000, "sum" : 420.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" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:48]execute_script... [12:19:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184012", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5053990106981", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u0441\u044B\u0440 165\u0433", "price" : 420.00, "quantity" : 1.000, "sum" : 420.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" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:48]POST & json_proto [12:19:48]process_json_proto [12:19:48]json parsed OK: [12:19:48]protocol is kg_v1.0 [12:19:48]action value=close_receipt [12:19:48]process_action close_receipt [12:19:48]cmd_close_receipt [12:19:48]MH_GetDate [12:19:48]Write to MH i2c: F0 00 00 FA 0E F7 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: F0 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: F0 09 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: F0 09 00 FA 0E 00 67 7B 71 66 13 9C 7C 64 48 [12:19:48]GetLastDocTimeStamp 1718712821 [12:19:48]current date 1718713191 [12:19:48]FM_GetShiftState [12:19:48]SAM_PROTO_GetShiftState [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 13 01 00 [12:19:48]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0E 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D1 [12:19:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:19:48]wFMCommunicate OK [12:19:48]SAM_PROTO_GetShiftState done [12:19:48]FM_GetShiftState done [12:19:48]opened in 1718670230 [12:19:48]opened+sec_in_day 1718756630 [12:19:48]quantity*price = 23000 [12:19:48]sum+1 = 23001 [12:19:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5053990106981 Чипсы Принглс сыр 165г 1.000 * 420.00 = 420.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 650.00 НСП 1% : 5.75 НДС 12% : 69.02 Наличными: 0.00 Безнал.: 650.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 36 18.06.2024 12:19 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34214 ФПД: 7708426737435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121951&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34214&fm=7708426737435&tin=02508201610067®Number=0000000000092786&sum=65000 0 [12:19:49]StoreToDocumentArchive [12:19:49]shift 323 fd 34214 [12:19:49]save to /storage/0323/doc_00034214 [12:19:49]save last doc name /storage/0323/doc_00034214 to /storage/kkm_last_doc_name [12:19:49]save OK [12:19:49]Clear old archive folders... [12:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=390 [12:19:49]tlvbuf is 01A147B0 [12:19:49]SAM_PROTO_ClearQueue [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 09 00 00 [12:19:49]Write to MH i2c: E2 08 00 08 0F 80 09 00 00 00 00 00 00 89 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [12:19:49]RAPDU: 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_ClearQueue done [12:19:49]KKMCreateOFDPacket [12:19:49]OFDProtocolAddRootSTLVToBuf [12:19:49]FM_MakeSignedData [12:19:49]FM_MakeSignedData [12:19:49]SAM_PROTO_SignData [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 0D 01 02 [12:19:49]Write to MH i2c: E2 08 00 09 0F 80 0D 01 02 00 00 00 00 91 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [12:19:49]RAPDU: 90 00 [12:19:49]wFMCommunicate OK [12:19:49]wFMCommunicate request_size=255 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 36 39 38 31 06 04 26 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D1 8B D1 80 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [12:19:49]Write to MH i2c: E2 02 01 0A 0F 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 36 39 38 31 06 04 26 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D1 8B D1 80 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 78 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [12:19:49]RAPDU: 90 00 [12:19:49]wFMCommunicate OK [12:19:49]wFMCommunicate request_size=149 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 7B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 85 00 00 35 04 06 00 07 02 C2 09 97 1B [12:19:49]Write to MH i2c: E2 98 00 0B 0F 80 0D 02 02 90 00 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 7B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 85 00 00 35 04 06 00 07 02 C2 09 97 1B 00 00 F3 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [12:19:49]RAPDU: 90 00 [12:19:49]wFMCommunicate OK [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 0D 03 02 [12:19:49]Write to MH i2c: E2 08 00 0C 0F 80 0D 03 02 00 00 00 00 96 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0B 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0B 00 0C 0F 00 74 43 DB 49 C5 26 9E FF 90 00 FA [12:19:49]RAPDU: 74 43 DB 49 C5 26 9E FF 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_SignData done [12:19:49]FM_MakeSignedData done [12:19:49]CreateOFDProtocolMessage [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 11 00 00 [12:19:49]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:50]Read from MH i2c: E2 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 17 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EB [12:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:19:50]wFMCommunicate OK [12:19:50]CreateOFDProtocolMessage done [12:19:50]OFDSenderStorePacket 34214 [12:19:50]StoreOFDPacket docnum=34214 [12:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9A 01 00 00 0C D8 92 01 43 3E 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 36 39 38 31 06 04 26 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D1 8B D1 80 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 7B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 85 00 00 35 04 06 00 07 02 C2 09 97 1B 74 43 DB 49 C5 26 9E FF [12:19:50]CheckFolder [12:19:50]dirname=/storage/ofd_packets [12:19:50]CheckFolder done [12:19:50]ProducePacketName [12:19:50]name=ofd_packets/00034214 [12:19:50]NVStorageSaveData ofd_packets/00034214 [12:19:50]File name is /storage/ofd_packets/00034214 [12:19:50]Write 440 bytes [12:19:50]NVStorageSaveData done [12:19:50]OFDSenderStorePacket done [12:19:50]KKMCreateOFDPacket done [12:19:50]NVStorageSaveData kkm_last_timestamp [12:19:50]File name is /storage/kkm_last_timestamp [12:19:50]Write 4 bytes [12:19:50]NVStorageSaveData done [12:19:50]ExternCall_PrintAddStr [12:19:50]wPrintStart [12:19:50]Write to MH i2c: 01 00 00 0E 0F 1D [12:19:50]OFD Sender: Processing packet 34214 [packets to send 8, broken 7] [12:19:50]ProducePacketName [12:19:50]name=ofd_packets/00034214 [12:19:50]OFD Sender: To server: pG, [12:19:50]CommunicateWithHost lk.salyk.kg:30040 [12:19:50]ConnectInit lk.salyk.kg [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 FF 0F 32 [12:19:50]RasterBufferAndPrint [12:19:50]line Счет N : (3)184012 [12:19:50]line ИНН: 02508201610067 [12:19:50]line Контрольно-Кассовый Чек [12:19:50]line ПРОДАЖА [12:19:50]line Товар: 2000036210013 [12:19:50]line Кофе Капучино (GABB TRADE) [12:19:50]line 2.000 * 115.00 [12:19:50]line = 230.00 [12:19:50]line НДС 12% НСП 1% [12:19:50]line > о реализуемом товаре [12:19:50]line Товар: 5053990106981 [12:19:50]line Чипсы Принглс сыр 165г [12:19:50]line 1.000 * 420.00 [12:19:50]line = 420.00 [12:19:50]line НДС 12% НСП 1% [12:19:50]line > о реализуемом товаре [12:19:50]line ИТОГО: 650.00 [12:19:50]line НСП 1% : 5.75 [12:19:50]line НДС 12% : 69.02 [12:19:50]line Наличными: 0.00 [12:19:50]line Безнал.: 650.00 [12:19:50]line Место: АЗС № 120 "Партнер Нефть" [12:19:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:19:50]line СНО: Общий режим [12:19:50]line Чек 36 18.06.2024 12:19 [12:19:50]line Смена: 323 ФФД: 1.0 [12:19:50]line ЗНМ: 0300000172 [12:19:50]line РНМ: 0000000000092786 [12:19:50]line Версия ККМ: 001 [12:19:50]line Платежная система: Бакай Банк [12:19:50]line ФМ: 0000000000875095 [12:19:50]line ФД: 34214 [12:19:50]line ФПД: 7708426737435 [12:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T121951&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34214&fm=7708426737435&tin=02508201610067®Number=0000000000092786&sum=65000 [12:19:50]line 0 [12:19:50]written 0, free lines is 4095 [12:19:50]Connected sock=10 [12:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9A 01 00 00 0C D8 92 01 43 3E 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 36 39 38 31 06 04 26 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D1 8B D1 80 20 31 36 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 A4 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 7B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A6 85 00 00 35 04 06 00 07 02 C2 09 97 1B 74 43 DB 49 C5 26 9E FF [12:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 05 3F 47 00 A5 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 35 30 39 35 10 04 04 00 A6 85 00 00 F4 03 04 00 38 22 71 66 B6 04 01 00 00 DD 7F 72 3B FE 3D 9E 90 [12:19:50]CommunicateWithHost err = 0 [12:19:50]CheckOFDResponse [12:19:50]1017 (14) - 77093643461234 [12:19:50]1041 (16) - 0000000000875095 [12:19:50]1040 (4) - 34214 [12:19:50]1012 (4) - 18.06.2024 05:59 [12:19:50]1206 (1) - 0 [12:19:50]OFD Sender: Remove packet 34214 [12:19:50]ProducePacketName [12:19:50]name=ofd_packets/00034214 [12:19:50]NVStorageDeleteData [12:19:50]Write to MH i2c: 01 00 00 3E 0F 4D [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 8A 0C EA [12:19:50]RasterBufferAndPrint [12:19:50]line [12:19:50]line [12:19:50]line [12:19:50]line [12:19:50]line [12:19:50]written 0, free lines is 3217 [12:19:50]MH_Cut [12:19:50]Write to MH i2c: D1 01 00 45 0F 01 26 [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: D1 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: D1 01 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: D1 01 00 45 0F 00 25 [12:19:50]Write to MH i2c: 01 00 00 46 0F 55 [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:51]OFD Sender: No OFD packet to send [12:19:51]*** Cut start [12:19:51]*** Partial cut [12:19:51]*** CUTSNS_PIN = 1 [12:19:51]*** CUTSNS_PIN = 0 [12:19:51]*** Brake cut motor [12:19:52]Read from MH i2c: 01 [12:19:52]MH_I2C_Read... [12:19:52]*** Stop cut motor [12:19:52]*** Cut end [12:19:52]Read from MH i2c: 01 07 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: 01 07 00 46 0F 00 00 00 00 00 FF 0F 6A [12:19:52]process_action close_receipt done [12:19:52]requested_data is exist [12:19:52]produce_requested_data [12:19:52]requested_item fm.sn is exist - process it [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 11 00 00 [12:19:52]Write to MH i2c: E2 08 00 47 0F 80 11 00 00 00 00 00 00 D0 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 17 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 17 00 47 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 25 [12:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:19:52]wFMCommunicate OK [12:19:52]requested_item fd.num is exist - process it [12:19:52]SAM_PROTO_GetFieldsCounters [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 00 00 [12:19:52]Write to MH i2c: E2 08 00 48 0F 80 13 00 00 00 00 00 00 D3 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 62 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 62 00 48 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A6 85 00 00 0E 04 04 00 43 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 D8 [12:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A6 85 00 00 0E 04 04 00 43 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 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetFieldsCounters done [12:19:52]requested_item shift.num is exist - process it [12:19:52]requested_item shift.opened is exist - process it [12:19:52]req_shift_opened [12:19:52]FM_GetShiftState [12:19:52]SAM_PROTO_GetShiftState [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 01 00 [12:19:52]Write to MH i2c: E2 08 00 49 0F 80 13 01 00 00 00 00 00 D5 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:52]Read from MH i2c: E2 0E 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 49 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 20 [12:19:52]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetShiftState done [12:19:52]FM_GetShiftState done [12:19:52]req_shift_opened done [12:19:52]requested_item shift.open_date is exist - process it [12:19:52]req_shift_open_date [12:19:52]req_shift_open_date done [12:19:52]produce_requested_data done [12:19:52]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34214,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:19:52]process_action_free close_receipt [12:19:52]json_value_free [12:19:52]json_value_free done [12:19:52]process_json_proto returns [12:19:52]Send response to host [12:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34214,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:19:52]free response buf [12:19:52]execute_script done [12:19:52]execute_script returns [12:19:52]free content buf [12:19:52]Sock 7.Close socket [12:19:52]Sock 7.Thread stoped [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:47]accept exits with 9 [12:22:47]New connection [12:22:47]New thread 3067293028 created [12:22:47]Thread 3067436388 joined [12:22:47]Waiting for new connection... [12:22:47] Sock 9.Parse request [12:22:47]Sock 9.Check first char [12:22:47]Sock 9.First char is OK [12:22:47]request: POST /json_proto HTTP/1.0 [12:22:47]Method: POST [12:22:47]URL: /json_proto [12:22:47]Method is POST - this is cgi request [12:22:47]url: /json_proto [12:22:47]query_string will be loaded in cgi processing [12:22:47]execute_cgi json_proto POST (null) [12:22:47]execute_cgi path=json_proto method=POST [12:22:47]POST find Content-Length [12:22:47]Host: 172.17.38.134:8080 [12:22:47]Content-Length: 805 [12:22:47]Content-Type: application/json [12:22:47] [12:22:47]POST finish read [12:22:47]Found Content-Length = 805 [12:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184013", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:47]execute_script... [12:22:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184013", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:47]POST & json_proto [12:22:47]process_json_proto [12:22:47]json parsed OK: [12:22:47]protocol is kg_v1.0 [12:22:47]action value=close_receipt [12:22:47]process_action close_receipt [12:22:47]cmd_close_receipt [12:22:47]MH_GetDate [12:22:47]Write to MH i2c: F0 00 00 4A 0F 48 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 09 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 09 00 4A 0F 00 1B 7C 71 66 13 9C 7C 64 4E [12:22:47]GetLastDocTimeStamp 1718713191 [12:22:47]current date 1718713371 [12:22:47]FM_GetShiftState [12:22:47]SAM_PROTO_GetShiftState [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 13 01 00 [12:22:47]Write to MH i2c: E2 08 00 4B 0F 80 13 01 00 00 00 00 00 D7 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 0E 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 0E 00 4B 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 22 [12:22:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:22:48]wFMCommunicate OK [12:22:48]SAM_PROTO_GetShiftState done [12:22:48]FM_GetShiftState done [12:22:48]opened in 1718670230 [12:22:48]opened+sec_in_day 1718756630 [12:22:48]quantity*price = 13000 [12:22:48]sum+1 = 13001 [12:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 37 18.06.2024 12:22 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34215 ФПД: 281459104190571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122251&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34215&fm=281459104190571&tin=02508201610067®Number=0000000000092786&sum=13000 0 [12:22:49]StoreToDocumentArchive [12:22:49]shift 323 fd 34215 [12:22:49]save to /storage/0323/doc_00034215 [12:22:49]save last doc name /storage/0323/doc_00034215 to /storage/kkm_last_doc_name [12:22:49]save OK [12:22:49]Clear old archive folders... [12:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:22:49]tlvbuf is 01A14BB0 [12:22:49]SAM_PROTO_ClearQueue [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 09 00 00 [12:22:49]Write to MH i2c: E2 08 00 58 0F 80 09 00 00 00 00 00 00 D9 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]SAM_PROTO_ClearQueue done [12:22:49]KKMCreateOFDPacket [12:22:49]OFDProtocolAddRootSTLVToBuf [12:22:49]FM_MakeSignedData [12:22:49]FM_MakeSignedData [12:22:49]SAM_PROTO_SignData [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 01 02 [12:22:49]Write to MH i2c: E2 08 00 59 0F 80 0D 01 02 00 00 00 00 E1 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=255 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1B 7C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 [12:22:49]Write to MH i2c: E2 02 01 5A 0F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1B 7C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 00 00 DA [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=35 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 85 00 00 35 04 06 00 FF FC 4D EC 90 6B [12:22:49]Write to MH i2c: E2 26 00 5B 0F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 85 00 00 35 04 06 00 FF FC 4D EC 90 6B 00 00 34 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 03 02 [12:22:49]Write to MH i2c: E2 08 00 5C 0F 80 0D 03 02 00 00 00 00 E6 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 0B 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 0B 00 5C 0F 00 83 F4 1D EE 44 3D 29 84 90 00 97 [12:22:49]RAPDU: 83 F4 1D EE 44 3D 29 84 90 00 [12:22:49]wFMCommunicate OK [12:22:49]SAM_PROTO_SignData done [12:22:49]FM_MakeSignedData done [12:22:49]CreateOFDProtocolMessage [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 11 00 00 [12:22:49]Write to MH i2c: E2 08 00 5D 0F 80 11 00 00 00 00 00 00 E6 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 17 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 17 00 5D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3B [12:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:22:49]wFMCommunicate OK [12:22:49]CreateOFDProtocolMessage done [12:22:49]OFDSenderStorePacket 34215 [12:22:49]StoreOFDPacket docnum=34215 [12:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 CC C5 20 01 E0 64 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1B 7C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 85 00 00 35 04 06 00 FF FC 4D EC 90 6B 83 F4 1D EE 44 3D 29 84 [12:22:49]CheckFolder [12:22:49]dirname=/storage/ofd_packets [12:22:49]CheckFolder done [12:22:49]ProducePacketName [12:22:49]name=ofd_packets/00034215 [12:22:49]NVStorageSaveData ofd_packets/00034215 [12:22:49]File name is /storage/ofd_packets/00034215 [12:22:49]Write 326 bytes [12:22:49]NVStorageSaveData done [12:22:49]OFDSenderStorePacket done [12:22:49]KKMCreateOFDPacket done [12:22:49]NVStorageSaveData kkm_last_timestamp [12:22:49]File name is /storage/kkm_last_timestamp [12:22:49]Write 4 bytes [12:22:49]NVStorageSaveData done [12:22:49]ExternCall_PrintAddStr [12:22:49]wPrintStart [12:22:49]Write to MH i2c: 01 00 00 5E 0F 6D [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 FF 0F 82 [12:22:49]RasterBufferAndPrint [12:22:49]line Счет N : (3)184013 [12:22:49]line ИНН: 02508201610067 [12:22:49]line Контрольно-Кассовый Чек [12:22:49]line ПРОДАЖА [12:22:49]line Товар: 2000036230011 [12:22:49]line Кофе Латте XL(GABB TRADE) [12:22:49]line 1.000 * 130.00 [12:22:49]line = 130.00 [12:22:49]line НДС 12% НСП 1% [12:22:49]line > о реализуемом товаре [12:22:49]line ИТОГО: 130.00 [12:22:49]line НСП 1% : 1.15 [12:22:49]line НДС 12% : 13.80 [12:22:49]line Наличными: 0.00 [12:22:49]line Безнал.: 130.00 [12:22:49]line Место: АЗС № 120 "Партнер Нефть" [12:22:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:22:49]line СНО: Общий режим [12:22:49]line Чек 37 18.06.2024 12:22 [12:22:49]line Смена: 323 ФФД: 1.0 [12:22:49]line ЗНМ: 0300000172 [12:22:49]line РНМ: 0000000000092786 [12:22:49]line Версия ККМ: 001 [12:22:49]line Платежная система: Бакай Банк [12:22:49]line ФМ: 0000000000875095 [12:22:49]line ФД: 34215 [12:22:49]line ФПД: 281459104190571 [12:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122251&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34215&fm=281459104190571&tin=02508201610067®Number=0000000000092786&sum=13000 [12:22:50]line 0 [12:22:50]OFD Sender: Processing packet 34215 [packets to send 8, broken 7] [12:22:50]ProducePacketName [12:22:50]name=ofd_packets/00034215 [12:22:50]OFD Sender: To server: pG, [12:22:50]CommunicateWithHost lk.salyk.kg:30040 [12:22:50]ConnectInit lk.salyk.kg [12:22:50]written 0, free lines is 4095 [12:22:50]Connected sock=7 [12:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 CC C5 20 01 E0 64 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1B 7C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 85 00 00 35 04 06 00 FF FC 4D EC 90 6B 83 F4 1D EE 44 3D 29 84 [12:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 6D FE 47 00 E5 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A7 85 00 00 F4 03 04 00 EB 22 71 66 B6 04 01 00 00 F6 63 95 4D 21 8D 55 9E [12:22:50]CommunicateWithHost err = 0 [12:22:50]CheckOFDResponse [12:22:50]1017 (14) - 77093643461234 [12:22:50]1041 (16) - 0000000000875095 [12:22:50]1040 (4) - 34215 [12:22:50]1012 (4) - 18.06.2024 06:02 [12:22:50]1206 (1) - 0 [12:22:50]OFD Sender: Remove packet 34215 [12:22:50]ProducePacketName [12:22:50]name=ofd_packets/00034215 [12:22:50]NVStorageDeleteData [12:22:50]Write to MH i2c: 01 00 00 88 0F 97 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 88 0F 00 00 00 00 00 E2 0C 8C [12:22:50]RasterBufferAndPrint [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]written 0, free lines is 3304 [12:22:50]MH_Cut [12:22:50]Write to MH i2c: D1 01 00 8F 0F 01 70 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 01 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 01 00 8F 0F 00 6F [12:22:50]Write to MH i2c: 01 00 00 90 0F 9F [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]OFD Sender: No OFD packet to send [12:22:51]*** Cut start [12:22:51]*** Partial cut [12:22:51]*** CUTSNS_PIN = 1 [12:22:51]*** CUTSNS_PIN = 0 [12:22:51]*** Brake cut motor [12:22:51]Read from MH i2c: 01 [12:22:51]MH_I2C_Read... [12:22:51]*** Stop cut motor [12:22:51]*** Cut end [12:22:51]Read from MH i2c: 01 07 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 90 0F 00 00 00 00 00 FF 0F B4 [12:22:51]process_action close_receipt done [12:22:51]requested_data is exist [12:22:51]produce_requested_data [12:22:51]requested_item fm.sn is exist - process it [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 11 00 00 [12:22:51]Write to MH i2c: E2 08 00 91 0F 80 11 00 00 00 00 00 00 1A [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 91 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6F [12:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:22:51]wFMCommunicate OK [12:22:51]requested_item fd.num is exist - process it [12:22:51]SAM_PROTO_GetFieldsCounters [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 13 00 00 [12:22:51]Write to MH i2c: E2 08 00 92 0F 80 13 00 00 00 00 00 00 1D [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 62 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 62 00 92 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A7 85 00 00 0E 04 04 00 43 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 26 [12:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A7 85 00 00 0E 04 04 00 43 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 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetFieldsCounters done [12:22:52]requested_item shift.num is exist - process it [12:22:52]requested_item shift.opened is exist - process it [12:22:52]req_shift_opened [12:22:52]FM_GetShiftState [12:22:52]SAM_PROTO_GetShiftState [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 13 01 00 [12:22:52]Write to MH i2c: E2 08 00 93 0F 80 13 01 00 00 00 00 00 1F [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 93 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6A [12:22:52]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetShiftState done [12:22:52]FM_GetShiftState done [12:22:52]req_shift_opened done [12:22:52]requested_item shift.open_date is exist - process it [12:22:52]req_shift_open_date [12:22:52]req_shift_open_date done [12:22:52]produce_requested_data done [12:22:52]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34215,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:22:52]process_action_free close_receipt [12:22:52]json_value_free [12:22:52]json_value_free done [12:22:52]process_json_proto returns [12:22:52]Send response to host [12:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34215,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:22:52]free response buf [12:22:52]execute_script done [12:22:52]execute_script returns [12:22:52]free content buf [12:22:52]Sock 9.Close socket [12:22:52]Sock 9.Thread stoped [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:55]accept exits with 10 [12:28:55]New connection [12:28:55]New thread 3067436388 created [12:28:55]Thread 3067293028 joined [12:28:55]Waiting for new connection... [12:28:55] Sock 10.Parse request [12:28:55]Sock 10.Check first char [12:28:55]Sock 10.First char is OK [12:28:55]request: POST /json_proto HTTP/1.0 [12:28:55]Method: POST [12:28:55]URL: /json_proto [12:28:55]Method is POST - this is cgi request [12:28:55]url: /json_proto [12:28:55]query_string will be loaded in cgi processing [12:28:55]execute_cgi json_proto POST (null) [12:28:55]execute_cgi path=json_proto method=POST [12:28:55]POST find Content-Length [12:28:55]Host: 172.17.38.134:8080 [12:28:55]Content-Length: 677 [12:28:55]Content-Type: application/json [12:28:55] [12:28:55]POST finish read [12:28:55]Found Content-Length = 677 [12:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:55]execute_script... [12:28: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)672560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:55]POST & json_proto [12:28:55]process_json_proto [12:28:55]json parsed OK: [12:28:55]protocol is kg_v1.0 [12:28:55]action value=close_receipt [12:28:55]process_action close_receipt [12:28:55]cmd_close_receipt [12:28:55]MH_GetDate [12:28:55]Write to MH i2c: F0 00 00 94 0F 92 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: F0 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: F0 09 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: F0 09 00 94 0F 00 8B 7D 71 66 13 9C 7C 64 09 [12:28:55]GetLastDocTimeStamp 1718713371 [12:28:55]current date 1718713739 [12:28:55]FM_GetShiftState [12:28:55]SAM_PROTO_GetShiftState [12:28:55]wFMCommunicate request_size=4 [12:28:55]MH_SAM_APDU [12:28:55]CAPDU: 80 13 01 00 [12:28:55]Write to MH i2c: E2 08 00 95 0F 80 13 01 00 00 00 00 00 21 [12:28:55]Write i2c OK [12:28:55]MH_I2C_Read... [12:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:55]Read from MH i2c: E2 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 0E 00 [12:28:55]MH_I2C_Read... [12:28:55]Read from MH i2c: E2 0E 00 95 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6C [12:28:55]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:28:55]wFMCommunicate OK [12:28:55]SAM_PROTO_GetShiftState done [12:28:55]FM_GetShiftState done [12:28:55]opened in 1718670230 [12:28:55]opened+sec_in_day 1718756630 [12:28:55]quantity*price = 60025 [12:28:55]sum+1 = 60027 [12:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 18.06.2024 12:28 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34216 ФПД: 101930041795344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122859&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34216&fm=101930041795344&tin=02508201610067®Number=0000000000092786&sum=60000 [12:28:56]StoreToDocumentArchive [12:28:56]shift 323 fd 34216 [12:28:56]save to /storage/0323/doc_00034216 [12:28:56]save last doc name /storage/0323/doc_00034216 to /storage/kkm_last_doc_name [12:28:56]save OK [12:28:56]Clear old archive folders... [12:28:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:56]tlvbuf is 01A1E520 [12:28:56]SAM_PROTO_ClearQueue [12:28:56]wFMCommunicate request_size=4 [12:28:56]MH_SAM_APDU [12:28:56]CAPDU: 80 09 00 00 [12:28:56]Write to MH i2c: E2 08 00 A2 0F 80 09 00 00 00 00 00 00 23 [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:56]Read from MH i2c: E2 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: E2 03 00 [12:28:56]MH_I2C_Read... [12:28:56]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [12:28:56]RAPDU: 90 00 [12:28:56]wFMCommunicate OK [12:28:56]SAM_PROTO_ClearQueue done [12:28:56]KKMCreateOFDPacket [12:28:56]OFDProtocolAddRootSTLVToBuf [12:28:56]FM_MakeSignedData [12:28:56]FM_MakeSignedData [12:28:56]SAM_PROTO_SignData [12:28:56]wFMCommunicate request_size=4 [12:28:56]MH_SAM_APDU [12:28:56]CAPDU: 80 0D 01 02 [12:28:56]Write to MH i2c: E2 08 00 A3 0F 80 0D 01 02 00 00 00 00 2B [12:28:56]Write i2c OK [12:28:56]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 A3 0F 00 90 00 26 [12:28:57]RAPDU: 90 00 [12:28:57]wFMCommunicate OK [12:28:57]wFMCommunicate request_size=255 [12:28:57]MH_SAM_APDU [12:28: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 85 00 00 35 04 06 00 5C [12:28:57]Write to MH i2c: E2 02 01 A4 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 85 00 00 35 04 06 00 5C 00 00 97 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [12:28:57]RAPDU: 90 00 [12:28:57]wFMCommunicate OK [12:28:57]wFMCommunicate request_size=10 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 0D 02 02 05 B4 6F EE E3 10 [12:28:57]Write to MH i2c: E2 0D 00 A5 0F 80 0D 02 02 05 00 B4 6F EE E3 10 00 00 3C [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [12:28:57]RAPDU: 90 00 [12:28:57]wFMCommunicate OK [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 0D 03 02 [12:28:57]Write to MH i2c: E2 08 00 A6 0F 80 0D 03 02 00 00 00 00 30 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 0B 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 0B 00 A6 0F 00 6A 68 19 AA FF 47 D5 0F 90 00 F0 [12:28:57]RAPDU: 6A 68 19 AA FF 47 D5 0F 90 00 [12:28:57]wFMCommunicate OK [12:28:57]SAM_PROTO_SignData done [12:28:57]FM_MakeSignedData done [12:28:57]CreateOFDProtocolMessage [12:28:57]wFMCommunicate request_size=4 [12:28:57]MH_SAM_APDU [12:28:57]CAPDU: 80 11 00 00 [12:28:57]Write to MH i2c: E2 08 00 A7 0F 80 11 00 00 00 00 00 00 30 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:57]Read from MH i2c: E2 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 17 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: E2 17 00 A7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 85 [12:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:28:57]wFMCommunicate OK [12:28:57]CreateOFDProtocolMessage done [12:28:57]OFDSenderStorePacket 34216 [12:28:57]StoreOFDPacket docnum=34216 [12:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 D8 33 07 01 1C 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 85 00 00 35 04 06 00 5C B4 6F EE E3 10 6A 68 19 AA FF 47 D5 0F [12:28:57]CheckFolder [12:28:57]dirname=/storage/ofd_packets [12:28:57]CheckFolder done [12:28:57]ProducePacketName [12:28:57]name=ofd_packets/00034216 [12:28:57]NVStorageSaveData ofd_packets/00034216 [12:28:57]File name is /storage/ofd_packets/00034216 [12:28:57]Write 301 bytes [12:28:57]NVStorageSaveData done [12:28:57]OFDSenderStorePacket done [12:28:57]KKMCreateOFDPacket done [12:28:57]NVStorageSaveData kkm_last_timestamp [12:28:57]File name is /storage/kkm_last_timestamp [12:28:57]Write 4 bytes [12:28:57]NVStorageSaveData done [12:28:57]ExternCall_PrintAddStr [12:28:57]wPrintStart [12:28:57]Write to MH i2c: 01 00 00 A8 0F B7 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 FF 0F CC [12:28:57]RasterBufferAndPrint [12:28:57]line Счет N : (1)672560 [12:28:57]line ИНН: 02508201610067 [12:28:57]line Контрольно-Кассовый Чек [12:28:57]line ПРОДАЖА [12:28:57]line ТРК (МРК, ГНК) : 32 [12:28:57]line Товар: 2710124130 [12:28:57]line Аи-92-К-5 [12:28:57]line 9.040 * 66.40 [12:28:57]line = 600.26 [12:28:57]line НДС 12% НСП 1% [12:28:57]line > о реализуемом товаре [12:28:57]line ОКРУГЛЕНИЕ: -0.26 [12:28:57]line ИТОГО: 600.00 [12:28:57]line Внесено: 600.00 [12:28:57]line СДАЧА: 0.00 [12:28:57]line НСП 1% : 5.31 [12:28:57]line НДС 12% : 63.74 [12:28:57]line Наличными: 600.00 [12:28:57]line Безнал.: 0.00 [12:28:57]line Место: АЗС № 120 "Партнер Нефть" [12:28:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:28:57]line СНО: Общий режим [12:28:57]line Чек 38 18.06.2024 12:28 [12:28:57]line Смена: 323 ФФД: 1.0 [12:28:57]line ЗНМ: 0300000172 [12:28:57]line РНМ: 0000000000092786 [12:28:57]line Версия ККМ: 001 [12:28:57]line ФМ: 0000000000875095 [12:28:57]line ФД: 34216 [12:28:57]line ФПД: 101930041795344 [12:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T122859&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34216&fm=101930041795344&tin=02508201610067®Number=0000000000092786&sum=60000 [12:28:57]OFD Sender: Processing packet 34216 [packets to send 8, broken 7] [12:28:57]ProducePacketName [12:28:57]name=ofd_packets/00034216 [12:28:57]OFD Sender: To server: pG, [12:28:57]CommunicateWithHost lk.salyk.kg:30040 [12:28:57]ConnectInit lk.salyk.kg [12:28:57]written 0, free lines is 4095 [12:28:57]Connected sock=9 [12:28:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 D8 33 07 01 1C 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 85 00 00 35 04 06 00 5C B4 6F EE E3 10 6A 68 19 AA FF 47 D5 0F [12:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E2 8E 47 00 43 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A8 85 00 00 F4 03 04 00 5B 24 71 66 B6 04 01 00 00 62 95 14 25 BD 48 98 91 [12:28:58]CommunicateWithHost err = 0 [12:28:58]CheckOFDResponse [12:28:58]1017 (14) - 77093643461234 [12:28:58]1041 (16) - 0000000000875095 [12:28:58]1040 (4) - 34216 [12:28:58]1012 (4) - 18.06.2024 06:08 [12:28:58]1206 (1) - 0 [12:28:58]OFD Sender: Remove packet 34216 [12:28:58]ProducePacketName [12:28:58]name=ofd_packets/00034216 [12:28:58]NVStorageDeleteData [12:28:58]Write to MH i2c: 01 00 00 D3 0F E2 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 07 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 07 00 D3 0F 00 00 00 00 00 E5 0C DA [12:28:58]RasterBufferAndPrint [12:28:58]line [12:28:58]line [12:28:58]line [12:28:58]line [12:28:58]line [12:28:58]written 0, free lines is 3307 [12:28:58]MH_Cut [12:28:58]Write to MH i2c: D1 01 00 DA 0F 01 BB [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: D1 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: D1 01 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: D1 01 00 DA 0F 00 BA [12:28:58]Write to MH i2c: 01 00 00 DB 0F EA [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]OFD Sender: No OFD packet to send [12:28:58]*** Cut start [12:28:58]*** Partial cut [12:28:58]*** CUTSNS_PIN = 1 [12:28:59]*** CUTSNS_PIN = 0 [12:28:59]*** Brake cut motor [12:28:59]Read from MH i2c: 01 [12:28:59]MH_I2C_Read... [12:28:59]*** Stop cut motor [12:28:59]*** Cut end [12:28:59]Read from MH i2c: 01 07 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: 01 07 00 DB 0F 00 00 00 00 00 FF 0F FF [12:28:59]process_action close_receipt done [12:28:59]requested_data is exist [12:28:59]produce_requested_data [12:28:59]requested_item fm.sn is exist - process it [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 11 00 00 [12:28:59]Write to MH i2c: E2 08 00 DC 0F 80 11 00 00 00 00 00 00 65 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:59]Read from MH i2c: E2 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 17 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 17 00 DC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 BA [12:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:28:59]wFMCommunicate OK [12:28:59]requested_item fd.num is exist - process it [12:28:59]SAM_PROTO_GetFieldsCounters [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 13 00 00 [12:28:59]Write to MH i2c: E2 08 00 DD 0F 80 13 00 00 00 00 00 00 68 [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:59]Read from MH i2c: E2 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 62 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 62 00 DD 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A8 85 00 00 0E 04 04 00 43 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 75 [12:28:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A8 85 00 00 0E 04 04 00 43 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 [12:28:59]wFMCommunicate OK [12:28:59]SAM_PROTO_GetFieldsCounters done [12:28:59]requested_item shift.num is exist - process it [12:28:59]requested_item shift.opened is exist - process it [12:28:59]req_shift_opened [12:28:59]FM_GetShiftState [12:28:59]SAM_PROTO_GetShiftState [12:28:59]wFMCommunicate request_size=4 [12:28:59]MH_SAM_APDU [12:28:59]CAPDU: 80 13 01 00 [12:28:59]Write to MH i2c: E2 08 00 DE 0F 80 13 01 00 00 00 00 00 6A [12:28:59]Write i2c OK [12:28:59]MH_I2C_Read... [12:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:59]Read from MH i2c: E2 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 0E 00 [12:28:59]MH_I2C_Read... [12:28:59]Read from MH i2c: E2 0E 00 DE 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B5 [12:28:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:28:59]wFMCommunicate OK [12:28:59]SAM_PROTO_GetShiftState done [12:28:59]FM_GetShiftState done [12:28:59]req_shift_opened done [12:28:59]requested_item shift.open_date is exist - process it [12:28:59]req_shift_open_date [12:28:59]req_shift_open_date done [12:28:59]produce_requested_data done [12:28:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34216,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:28:59]process_action_free close_receipt [12:28:59]json_value_free [12:28:59]json_value_free done [12:28:59]process_json_proto returns [12:28:59]Send response to host [12:28:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34216,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:28:59]free response buf [12:28:59]execute_script done [12:28:59]execute_script returns [12:28:59]free content buf [12:28:59]Sock 10.Close socket [12:28:59]Sock 10.Thread stoped [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:42]accept exits with 7 [12:30:42]New connection [12:30:42]New thread 3067293028 created [12:30:42]Thread 3067436388 joined [12:30:42]Waiting for new connection... [12:30:42] Sock 7.Parse request [12:30:42]Sock 7.Check first char [12:30:42]Sock 7.First char is OK [12:30:42]request: POST /json_proto HTTP/1.0 [12:30:42]Method: POST [12:30:42]URL: /json_proto [12:30:42]Method is POST - this is cgi request [12:30:42]url: /json_proto [12:30:42]query_string will be loaded in cgi processing [12:30:42]execute_cgi json_proto POST (null) [12:30:42]execute_cgi path=json_proto method=POST [12:30:42]POST find Content-Length [12:30:42]Host: 172.17.38.134:8080 [12:30:42]Content-Length: 585 [12:30:42]Content-Type: application/json [12:30:42] [12:30:42]POST finish read [12:30:42]Found Content-Length = 585 [12:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184014", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:42]execute_script... [12:30: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 : (3)184014", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:42]POST & json_proto [12:30:42]process_json_proto [12:30:42]json parsed OK: [12:30:42]protocol is kg_v1.0 [12:30:42]action value=close_receipt [12:30:42]process_action close_receipt [12:30:42]cmd_close_receipt [12:30:42]MH_GetDate [12:30:42]Write to MH i2c: F0 00 00 DF 0F DD [12:30:42]Write i2c OK [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: F0 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: F0 09 00 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: F0 09 00 DF 0F 00 F6 7D 71 66 13 9C 7C 64 BF [12:30:42]GetLastDocTimeStamp 1718713739 [12:30:42]current date 1718713846 [12:30:42]FM_GetShiftState [12:30:42]SAM_PROTO_GetShiftState [12:30:42]wFMCommunicate request_size=4 [12:30:42]MH_SAM_APDU [12:30:42]CAPDU: 80 13 01 00 [12:30:42]Write to MH i2c: E2 08 00 E0 0F 80 13 01 00 00 00 00 00 6C [12:30:42]Write i2c OK [12:30:42]MH_I2C_Read... [12:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:42]Read from MH i2c: E2 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 0E 00 [12:30:42]MH_I2C_Read... [12:30:42]Read from MH i2c: E2 0E 00 E0 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B7 [12:30:42]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:30:42]wFMCommunicate OK [12:30:42]SAM_PROTO_GetShiftState done [12:30:42]FM_GetShiftState done [12:30:42]opened in 1718670230 [12:30:42]opened+sec_in_day 1718756630 [12:30:42]quantity*price = 4500 [12:30:42]sum+1 = 4501 [12:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 39 18.06.2024 12:30 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34217 ФПД: 197753856485639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123046&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34217&fm=197753856485639&tin=02508201610067®Number=0000000000092786&sum=4500 0 [12:30:44]StoreToDocumentArchive [12:30:44]shift 323 fd 34217 [12:30:44]save to /storage/0323/doc_00034217 [12:30:44]save last doc name /storage/0323/doc_00034217 to /storage/kkm_last_doc_name [12:30:44]save OK [12:30:44]Clear old archive folders... [12:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=260 [12:30:44]tlvbuf is 019D30C0 [12:30:44]SAM_PROTO_ClearQueue [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 09 00 00 [12:30:44]Write to MH i2c: E2 08 00 ED 0F 80 09 00 00 00 00 00 00 6E [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 ED 0F 00 90 00 70 [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]SAM_PROTO_ClearQueue done [12:30:44]KKMCreateOFDPacket [12:30:44]OFDProtocolAddRootSTLVToBuf [12:30:44]FM_MakeSignedData [12:30:44]FM_MakeSignedData [12:30:44]SAM_PROTO_SignData [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 01 02 [12:30:44]Write to MH i2c: E2 08 00 EE 0F 80 0D 01 02 00 00 00 00 76 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 EE 0F 00 90 00 71 [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=255 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F6 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 [12:30:44]Write to MH i2c: E2 02 01 EF 0F 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F6 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 00 00 40 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 EF 0F 00 90 00 72 [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=19 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 02 02 0E A9 85 00 00 35 04 06 00 B3 DB 28 5E 69 07 [12:30:44]Write to MH i2c: E2 16 00 F0 0F 80 0D 02 02 0E 00 A9 85 00 00 35 04 06 00 B3 DB 28 5E 69 07 00 00 86 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [12:30:44]RAPDU: 90 00 [12:30:44]wFMCommunicate OK [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 0D 03 02 [12:30:44]Write to MH i2c: E2 08 00 F1 0F 80 0D 03 02 00 00 00 00 7B [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0B 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 0B 00 F1 0F 00 B2 37 09 95 A6 BA D8 57 90 00 92 [12:30:44]RAPDU: B2 37 09 95 A6 BA D8 57 90 00 [12:30:44]wFMCommunicate OK [12:30:44]SAM_PROTO_SignData done [12:30:44]FM_MakeSignedData done [12:30:44]CreateOFDProtocolMessage [12:30:44]wFMCommunicate request_size=4 [12:30:44]MH_SAM_APDU [12:30:44]CAPDU: 80 11 00 00 [12:30:44]Write to MH i2c: E2 08 00 F2 0F 80 11 00 00 00 00 00 00 7B [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:44]Read from MH i2c: E2 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 17 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: E2 17 00 F2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D0 [12:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:30:44]wFMCommunicate OK [12:30:44]CreateOFDProtocolMessage done [12:30:44]OFDSenderStorePacket 34217 [12:30:44]StoreOFDPacket docnum=34217 [12:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 18 01 00 00 BE 9F 10 01 A7 3D 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F6 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 85 00 00 35 04 06 00 B3 DB 28 5E 69 07 B2 37 09 95 A6 BA D8 57 [12:30:44]CheckFolder [12:30:44]dirname=/storage/ofd_packets [12:30:44]CheckFolder done [12:30:44]ProducePacketName [12:30:44]name=ofd_packets/00034217 [12:30:44]NVStorageSaveData ofd_packets/00034217 [12:30:44]File name is /storage/ofd_packets/00034217 [12:30:44]Write 310 bytes [12:30:44]NVStorageSaveData done [12:30:44]OFDSenderStorePacket done [12:30:44]KKMCreateOFDPacket done [12:30:44]NVStorageSaveData kkm_last_timestamp [12:30:44]File name is /storage/kkm_last_timestamp [12:30:44]Write 4 bytes [12:30:44]NVStorageSaveData done [12:30:44]ExternCall_PrintAddStr [12:30:44]wPrintStart [12:30:44]Write to MH i2c: 01 00 00 F3 0F 02 [12:30:44]Write i2c OK [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 07 00 [12:30:44]MH_I2C_Read... [12:30:44]Read from MH i2c: 01 07 00 F3 0F 00 00 00 00 00 FF 0F 17 [12:30:44]RasterBufferAndPrint [12:30:44]line Счет N : (3)184014 [12:30:44]line ИНН: 02508201610067 [12:30:44]line Контрольно-Кассовый Чек [12:30:44]line ПРОДАЖА [12:30:44]line Товар: 50173808 [12:30:44]line Жев Orbit Sweet Mint [12:30:44]line 1.000 * 45.00 [12:30:44]line = 45.00 [12:30:44]line НДС 12% НСП 1% [12:30:44]line > о реализуемом товаре [12:30:44]line ИТОГО: 45.00 [12:30:44]line НСП 1% : 0.40 [12:30:44]line НДС 12% : 4.78 [12:30:44]line Наличными: 45.00 [12:30:44]line Безнал.: 0.00 [12:30:44]line Место: АЗС № 120 "Партнер Нефть" [12:30:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:30:44]line СНО: Общий режим [12:30:44]line Чек 39 18.06.2024 12:30 [12:30:44]line Смена: 323 ФФД: 1.0 [12:30:44]line ЗНМ: 0300000172 [12:30:44]line РНМ: 0000000000092786 [12:30:44]line Версия ККМ: 001 [12:30:44]line ФМ: 0000000000875095 [12:30:44]line ФД: 34217 [12:30:44]line ФПД: 197753856485639 [12:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123046&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34217&fm=197753856485639&tin=02508201610067®Number=0000000000092786&sum=4500 [12:30:44]line 0 [12:30:44]OFD Sender: Processing packet 34217 [packets to send 8, broken 7] [12:30:44]ProducePacketName [12:30:44]name=ofd_packets/00034217 [12:30:44]OFD Sender: To server: pG, [12:30:44]CommunicateWithHost lk.salyk.kg:30040 [12:30:44]ConnectInit lk.salyk.kg [12:30:44]written 0, free lines is 4095 [12:30:45]Connected sock=10 [12:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 18 01 00 00 BE 9F 10 01 A7 3D 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 F6 7D 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 85 00 00 35 04 06 00 B3 DB 28 5E 69 07 B2 37 09 95 A6 BA D8 57 [12:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F8 15 47 00 AC 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 A9 85 00 00 F4 03 04 00 C6 24 71 66 B6 04 01 00 00 63 4C 8B 7C 48 0C 3B 66 [12:30:45]CommunicateWithHost err = 0 [12:30:45]CheckOFDResponse [12:30:45]1017 (14) - 77093643461234 [12:30:45]1041 (16) - 0000000000875095 [12:30:45]1040 (4) - 34217 [12:30:45]1012 (4) - 18.06.2024 06:10 [12:30:45]1206 (1) - 0 [12:30:45]OFD Sender: Remove packet 34217 [12:30:45]ProducePacketName [12:30:45]name=ofd_packets/00034217 [12:30:45]NVStorageDeleteData [12:30:45]Write to MH i2c: 01 00 00 1B 10 2B [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 07 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: 01 07 00 1B 10 00 00 00 00 00 02 0D 41 [12:30:45]RasterBufferAndPrint [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]line [12:30:45]written 0, free lines is 3337 [12:30:45]MH_Cut [12:30:45]Write to MH i2c: D1 01 00 22 10 01 04 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 01 00 [12:30:45]MH_I2C_Read... [12:30:45]Read from MH i2c: D1 01 00 22 10 00 03 [12:30:45]Write to MH i2c: 01 00 00 23 10 33 [12:30:45]Write i2c OK [12:30:45]MH_I2C_Read... [12:30:45]OFD Sender: No OFD packet to send [12:30:46]*** Cut start [12:30:46]*** Partial cut [12:30:46]*** CUTSNS_PIN = 1 [12:30:46]*** CUTSNS_PIN = 0 [12:30:46]*** Brake cut motor [12:30:46]Read from MH i2c: 01 [12:30:46]MH_I2C_Read... [12:30:46]*** Stop cut motor [12:30:46]*** Cut end [12:30:46]Read from MH i2c: 01 07 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FF 0F 48 [12:30:46]process_action close_receipt done [12:30:46]requested_data is exist [12:30:46]produce_requested_data [12:30:46]requested_item fm.sn is exist - process it [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 11 00 00 [12:30:46]Write to MH i2c: E2 08 00 24 10 80 11 00 00 00 00 00 00 AE [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 17 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 17 00 24 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 03 [12:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:30:46]wFMCommunicate OK [12:30:46]requested_item fd.num is exist - process it [12:30:46]SAM_PROTO_GetFieldsCounters [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 13 00 00 [12:30:46]Write to MH i2c: E2 08 00 25 10 80 13 00 00 00 00 00 00 B1 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 62 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 62 00 25 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A9 85 00 00 0E 04 04 00 43 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 C2 [12:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 A9 85 00 00 0E 04 04 00 43 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 [12:30:46]wFMCommunicate OK [12:30:46]SAM_PROTO_GetFieldsCounters done [12:30:46]requested_item shift.num is exist - process it [12:30:46]requested_item shift.opened is exist - process it [12:30:46]req_shift_opened [12:30:46]FM_GetShiftState [12:30:46]SAM_PROTO_GetShiftState [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 13 01 00 [12:30:46]Write to MH i2c: E2 08 00 26 10 80 13 01 00 00 00 00 00 B3 [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0E 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0E 00 26 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 FE [12:30:46]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:30:46]wFMCommunicate OK [12:30:46]SAM_PROTO_GetShiftState done [12:30:46]FM_GetShiftState done [12:30:46]req_shift_opened done [12:30:46]requested_item shift.open_date is exist - process it [12:30:46]req_shift_open_date [12:30:46]req_shift_open_date done [12:30:46]produce_requested_data done [12:30:46]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34217,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:30:46]process_action_free close_receipt [12:30:46]json_value_free [12:30:46]json_value_free done [12:30:46]process_json_proto returns [12:30:46]Send response to host [12:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34217,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:30:46]free response buf [12:30:46]execute_script done [12:30:46]execute_script returns [12:30:46]free content buf [12:30:46]Sock 7.Close socket [12:30:46]Sock 7.Thread stoped [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:30:56]accept exits with 9 [12:30:56]New connection [12:30:56]New thread 3067436388 created [12:30:56]Thread 3067293028 joined [12:30:56]Waiting for new connection... [12:30:56] Sock 9.Parse request [12:30:56]Sock 9.Check first char [12:30:56]Sock 9.First char is OK [12:30:56]request: POST /json_proto HTTP/1.0 [12:30:56]Method: POST [12:30:56]URL: /json_proto [12:30:56]Method is POST - this is cgi request [12:30:56]url: /json_proto [12:30:56]query_string will be loaded in cgi processing [12:30:56]execute_cgi json_proto POST (null) [12:30:56]execute_cgi path=json_proto method=POST [12:30:56]POST find Content-Length [12:30:56]Host: 172.17.38.134:8080 [12:30:56]Content-Length: 661 [12:30:56]Content-Type: application/json [12:30:56] [12:30:56]POST finish read [12:30:56]Found Content-Length = 661 [12:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184015", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:56]execute_script... [12:30:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184015", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:56]POST & json_proto [12:30:56]process_json_proto [12:30:56]json parsed OK: [12:30:56]protocol is kg_v1.0 [12:30:56]action value=close_receipt [12:30:56]process_action close_receipt [12:30:56]cmd_close_receipt [12:30:56]MH_GetDate [12:30:56]Write to MH i2c: F0 00 00 27 10 26 [12:30:56]Write i2c OK [12:30:56]MH_I2C_Read... [12:30:56]Read from MH i2c: F0 [12:30:56]MH_I2C_Read... [12:30:56]Read from MH i2c: F0 09 00 [12:30:56]MH_I2C_Read... [12:30:56]Read from MH i2c: F0 09 00 27 10 00 04 7E 71 66 13 9C 7C 64 17 [12:30:56]GetLastDocTimeStamp 1718713846 [12:30:56]current date 1718713860 [12:30:56]FM_GetShiftState [12:30:56]SAM_PROTO_GetShiftState [12:30:56]wFMCommunicate request_size=4 [12:30:56]MH_SAM_APDU [12:30:56]CAPDU: 80 13 01 00 [12:30:56]Write to MH i2c: E2 08 00 28 10 80 13 01 00 00 00 00 00 B5 [12:30:56]Write i2c OK [12:30:56]MH_I2C_Read... [12:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:57]Read from MH i2c: E2 [12:30:57]MH_I2C_Read... [12:30:57]Read from MH i2c: E2 0E 00 [12:30:57]MH_I2C_Read... [12:30:57]Read from MH i2c: E2 0E 00 28 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 00 [12:30:57]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:30:57]wFMCommunicate OK [12:30:57]SAM_PROTO_GetShiftState done [12:30:57]FM_GetShiftState done [12:30:57]opened in 1718670230 [12:30:57]opened+sec_in_day 1718756630 [12:30:57]quantity*price = 6700 [12:30:57]sum+1 = 6701 [12:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 40 18.06.2024 12:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34218 ФПД: 159983758940607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123100&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34218&fm=159983758940607&tin=02508201610067®Number=0000000000092786&sum=6700 0 [12:30:58]StoreToDocumentArchive [12:30:58]shift 323 fd 34218 [12:30:58]save to /storage/0323/doc_00034218 [12:30:58]save last doc name /storage/0323/doc_00034218 to /storage/kkm_last_doc_name [12:30:58]save OK [12:30:58]Clear old archive folders... [12:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:30:58]tlvbuf is 019E3BD0 [12:30:58]SAM_PROTO_ClearQueue [12:30:58]wFMCommunicate request_size=4 [12:30:58]MH_SAM_APDU [12:30:58]CAPDU: 80 09 00 00 [12:30:58]Write to MH i2c: E2 08 00 35 10 80 09 00 00 00 00 00 00 B7 [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:58]Read from MH i2c: E2 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [12:30:58]RAPDU: 90 00 [12:30:58]wFMCommunicate OK [12:30:58]SAM_PROTO_ClearQueue done [12:30:58]KKMCreateOFDPacket [12:30:58]OFDProtocolAddRootSTLVToBuf [12:30:58]FM_MakeSignedData [12:30:58]FM_MakeSignedData [12:30:58]SAM_PROTO_SignData [12:30:58]wFMCommunicate request_size=4 [12:30:58]MH_SAM_APDU [12:30:58]CAPDU: 80 0D 01 02 [12:30:58]Write to MH i2c: E2 08 00 36 10 80 0D 01 02 00 00 00 00 BF [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:58]Read from MH i2c: E2 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [12:30:58]RAPDU: 90 00 [12:30:58]wFMCommunicate OK [12:30:58]wFMCommunicate request_size=255 [12:30:58]MH_SAM_APDU [12:30:58]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 04 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [12:30:58]Write to MH i2c: E2 02 01 37 10 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 04 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 AC [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:58]Read from MH i2c: E2 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [12:30:58]RAPDU: 90 00 [12:30:58]wFMCommunicate OK [12:30:58]wFMCommunicate request_size=43 [12:30:58]MH_SAM_APDU [12:30:58]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 85 00 00 35 04 06 00 91 81 1F 1F 19 BF [12:30:58]Write to MH i2c: E2 2E 00 38 10 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 85 00 00 35 04 06 00 91 81 1F 1F 19 BF 00 00 03 [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:58]Read from MH i2c: E2 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 03 00 38 10 00 90 00 BC [12:30:58]RAPDU: 90 00 [12:30:58]wFMCommunicate OK [12:30:58]wFMCommunicate request_size=4 [12:30:58]MH_SAM_APDU [12:30:58]CAPDU: 80 0D 03 02 [12:30:58]Write to MH i2c: E2 08 00 39 10 80 0D 03 02 00 00 00 00 C4 [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:58]Read from MH i2c: E2 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 0B 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 0B 00 39 10 00 2F 45 8C 34 20 CA 3F 83 90 00 A5 [12:30:58]RAPDU: 2F 45 8C 34 20 CA 3F 83 90 00 [12:30:58]wFMCommunicate OK [12:30:58]SAM_PROTO_SignData done [12:30:58]FM_MakeSignedData done [12:30:58]CreateOFDProtocolMessage [12:30:58]wFMCommunicate request_size=4 [12:30:58]MH_SAM_APDU [12:30:58]CAPDU: 80 11 00 00 [12:30:58]Write to MH i2c: E2 08 00 3A 10 80 11 00 00 00 00 00 00 C4 [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:58]Read from MH i2c: E2 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 17 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: E2 17 00 3A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 19 [12:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:30:58]wFMCommunicate OK [12:30:58]CreateOFDProtocolMessage done [12:30:58]OFDSenderStorePacket 34218 [12:30:58]StoreOFDPacket docnum=34218 [12:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 D9 70 28 01 AC 22 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 04 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 85 00 00 35 04 06 00 91 81 1F 1F 19 BF 2F 45 8C 34 20 CA 3F 83 [12:30:58]CheckFolder [12:30:58]dirname=/storage/ofd_packets [12:30:58]CheckFolder done [12:30:58]ProducePacketName [12:30:58]name=ofd_packets/00034218 [12:30:58]NVStorageSaveData ofd_packets/00034218 [12:30:58]File name is /storage/ofd_packets/00034218 [12:30:58]Write 334 bytes [12:30:58]NVStorageSaveData done [12:30:58]OFDSenderStorePacket done [12:30:58]KKMCreateOFDPacket done [12:30:58]NVStorageSaveData kkm_last_timestamp [12:30:58]File name is /storage/kkm_last_timestamp [12:30:58]Write 4 bytes [12:30:58]NVStorageSaveData done [12:30:58]ExternCall_PrintAddStr [12:30:58]wPrintStart [12:30:58]Write to MH i2c: 01 00 00 3B 10 4B [12:30:58]Write i2c OK [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: 01 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: 01 07 00 [12:30:58]MH_I2C_Read... [12:30:58]Read from MH i2c: 01 07 00 3B 10 00 00 00 00 00 FF 0F 60 [12:30:58]RasterBufferAndPrint [12:30:58]line Счет N : (3)184015 [12:30:58]line ИНН: 02508201610067 [12:30:58]line Контрольно-Кассовый Чек [12:30:58]line ПРОДАЖА [12:30:58]line Товар: 6931280300549 [12:30:58]line Зажигалка Cricket ПН пьезо [12:30:58]line 1.000 * 67.00 [12:30:58]line = 67.00 [12:30:58]line НДС 12% НСП 1% [12:30:58]line > о реализуемом товаре [12:30:58]line ИТОГО: 67.00 [12:30:58]line НСП 1% : 0.59 [12:30:58]line НДС 12% : 7.11 [12:30:58]line Наличными: 67.00 [12:30:58]line Безнал.: 0.00 [12:30:58]line Место: АЗС № 120 "Партнер Нефть" [12:30:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:30:58]line СНО: Общий режим [12:30:58]line Чек 40 18.06.2024 12:31 [12:30:58]line Смена: 323 ФФД: 1.0 [12:30:58]line ЗНМ: 0300000172 [12:30:58]line РНМ: 0000000000092786 [12:30:58]line Версия ККМ: 001 [12:30:58]line ФМ: 0000000000875095 [12:30:58]line ФД: 34218 [12:30:58]line ФПД: 159983758940607 [12:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123100&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34218&fm=159983758940607&tin=02508201610067®Number=0000000000092786&sum=6700 [12:30:59]OFD Sender: Processing packet 34218 [packets to send 8, broken 7] [12:30:59]ProducePacketName [12:30:59]name=ofd_packets/00034218 [12:30:59]OFD Sender: To server: pG, [12:30:59]CommunicateWithHost lk.salyk.kg:30040 [12:30:59]ConnectInit lk.salyk.kg [12:30:59]line 0 [12:30:59]written 0, free lines is 4095 [12:30:59]Connected sock=10 [12:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 D9 70 28 01 AC 22 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 04 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 85 00 00 35 04 06 00 91 81 1F 1F 19 BF 2F 45 8C 34 20 CA 3F 83 [12:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F5 FC 47 00 C4 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AA 85 00 00 F4 03 04 00 D4 24 71 66 B6 04 01 00 00 2C 57 F7 7C 9B 45 C7 8F [12:30:59]CommunicateWithHost err = 0 [12:30:59]CheckOFDResponse [12:30:59]1017 (14) - 77093643461234 [12:30:59]1041 (16) - 0000000000875095 [12:30:59]1040 (4) - 34218 [12:30:59]1012 (4) - 18.06.2024 06:10 [12:30:59]1206 (1) - 0 [12:30:59]OFD Sender: Remove packet 34218 [12:30:59]ProducePacketName [12:30:59]name=ofd_packets/00034218 [12:30:59]NVStorageDeleteData [12:30:59]Write to MH i2c: 01 00 00 63 10 73 [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: 01 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: 01 07 00 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 01 0D 88 [12:30:59]RasterBufferAndPrint [12:30:59]line [12:30:59]line [12:30:59]line [12:30:59]line [12:30:59]line [12:30:59]written 0, free lines is 3336 [12:30:59]MH_Cut [12:30:59]Write to MH i2c: D1 01 00 6A 10 01 4C [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: D1 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: D1 01 00 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: D1 01 00 6A 10 00 4B [12:30:59]Write to MH i2c: 01 00 00 6B 10 7B [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]OFD Sender: No OFD packet to send [12:31:00]*** Cut start [12:31:00]*** Partial cut [12:31:00]*** CUTSNS_PIN = 1 [12:31:00]*** CUTSNS_PIN = 0 [12:31:00]*** Brake cut motor [12:31:00]Read from MH i2c: 01 [12:31:00]MH_I2C_Read... [12:31:00]*** Stop cut motor [12:31:00]*** Cut end [12:31:00]Read from MH i2c: 01 07 00 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [12:31:00]process_action close_receipt done [12:31:00]requested_data is exist [12:31:00]produce_requested_data [12:31:00]requested_item fm.sn is exist - process it [12:31:00]wFMCommunicate request_size=4 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 11 00 00 [12:31:00]Write to MH i2c: E2 08 00 6C 10 80 11 00 00 00 00 00 00 F6 [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:00]Read from MH i2c: E2 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 17 00 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 17 00 6C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4B [12:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:31:00]wFMCommunicate OK [12:31:00]requested_item fd.num is exist - process it [12:31:00]SAM_PROTO_GetFieldsCounters [12:31:00]wFMCommunicate request_size=4 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 13 00 00 [12:31:00]Write to MH i2c: E2 08 00 6D 10 80 13 00 00 00 00 00 00 F9 [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 62 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 62 00 6D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AA 85 00 00 0E 04 04 00 43 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 0E [12:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AA 85 00 00 0E 04 04 00 43 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 [12:31:01]wFMCommunicate OK [12:31:01]SAM_PROTO_GetFieldsCounters done [12:31:01]requested_item shift.num is exist - process it [12:31:01]requested_item shift.opened is exist - process it [12:31:01]req_shift_opened [12:31:01]FM_GetShiftState [12:31:01]SAM_PROTO_GetShiftState [12:31:01]wFMCommunicate request_size=4 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 13 01 00 [12:31:01]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:01]Read from MH i2c: E2 0E 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 46 [12:31:01]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:31:01]wFMCommunicate OK [12:31:01]SAM_PROTO_GetShiftState done [12:31:01]FM_GetShiftState done [12:31:01]req_shift_opened done [12:31:01]requested_item shift.open_date is exist - process it [12:31:01]req_shift_open_date [12:31:01]req_shift_open_date done [12:31:01]produce_requested_data done [12:31:01]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34218,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:31:01]process_action_free close_receipt [12:31:01]json_value_free [12:31:01]json_value_free done [12:31:01]process_json_proto returns [12:31:01]Send response to host [12:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34218,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:31:01]free response buf [12:31:01]execute_script done [12:31:01]execute_script returns [12:31:01]free content buf [12:31:01]Sock 9.Close socket [12:31:01]Sock 9.Thread stoped [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:27]accept exits with 7 [12:33:27]New connection [12:33:27]New thread 3067293028 created [12:33:27]Thread 3067436388 joined [12:33:27]Waiting for new connection... [12:33:27] Sock 7.Parse request [12:33:27]Sock 7.Check first char [12:33:27]Sock 7.First char is OK [12:33:27]request: POST /json_proto HTTP/1.0 [12:33:27]Method: POST [12:33:27]URL: /json_proto [12:33:27]Method is POST - this is cgi request [12:33:27]url: /json_proto [12:33:27]query_string will be loaded in cgi processing [12:33:27]execute_cgi json_proto POST (null) [12:33:27]execute_cgi path=json_proto method=POST [12:33:27]POST find Content-Length [12:33:27]Host: 172.17.38.134:8080 [12:33:27]Content-Length: 663 [12:33:27]Content-Type: application/json [12:33:27] [12:33:27]POST finish read [12:33:27]Found Content-Length = 663 [12:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184016", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 3.000, "sum" : 201.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 201.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:27]execute_script... [12:33: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)184016", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 3.000, "sum" : 201.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 201.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:27]POST & json_proto [12:33:27]process_json_proto [12:33:27]json parsed OK: [12:33:27]protocol is kg_v1.0 [12:33:27]action value=close_receipt [12:33:27]process_action close_receipt [12:33:27]cmd_close_receipt [12:33:27]MH_GetDate [12:33:27]Write to MH i2c: F0 00 00 6F 10 6E [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: F0 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: F0 09 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: F0 09 00 6F 10 00 9B 7E 71 66 13 9C 7C 64 F6 [12:33:27]GetLastDocTimeStamp 1718713860 [12:33:27]current date 1718714011 [12:33:27]FM_GetShiftState [12:33:27]SAM_PROTO_GetShiftState [12:33:27]wFMCommunicate request_size=4 [12:33:27]MH_SAM_APDU [12:33:27]CAPDU: 80 13 01 00 [12:33:27]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:28]Read from MH i2c: E2 [12:33:28]MH_I2C_Read... [12:33:28]Read from MH i2c: E2 0E 00 [12:33:28]MH_I2C_Read... [12:33:28]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 48 [12:33:28]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:33:28]wFMCommunicate OK [12:33:28]SAM_PROTO_GetShiftState done [12:33:28]FM_GetShiftState done [12:33:28]opened in 1718670230 [12:33:28]opened+sec_in_day 1718756630 [12:33:28]quantity*price = 20100 [12:33:28]sum+1 = 20101 [12:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 201.00 НСП 1% : 1.78 НДС 12% : 21.34 Наличными: 201.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 41 18.06.2024 12:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34219 ФПД: 49045222666024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123331&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34219&fm=49045222666024&tin=02508201610067®Number=0000000000092786&sum=20100 0 [12:33:29]StoreToDocumentArchive [12:33:29]shift 323 fd 34219 [12:33:29]save to /storage/0323/doc_00034219 [12:33:29]save last doc name /storage/0323/doc_00034219 to /storage/kkm_last_doc_name [12:33:29]save OK [12:33:29]Clear old archive folders... [12:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:33:29]tlvbuf is 019E37E0 [12:33:29]SAM_PROTO_ClearQueue [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 09 00 00 [12:33:29]Write to MH i2c: E2 08 00 7D 10 80 09 00 00 00 00 00 00 FF [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [12:33:29]RAPDU: 90 00 [12:33:29]wFMCommunicate OK [12:33:29]SAM_PROTO_ClearQueue done [12:33:29]KKMCreateOFDPacket [12:33:29]OFDProtocolAddRootSTLVToBuf [12:33:29]FM_MakeSignedData [12:33:29]FM_MakeSignedData [12:33:29]SAM_PROTO_SignData [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 0D 01 02 [12:33:29]Write to MH i2c: E2 08 00 7E 10 80 0D 01 02 00 00 00 00 07 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [12:33:29]RAPDU: 90 00 [12:33:29]wFMCommunicate OK [12:33:29]wFMCommunicate request_size=255 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9B 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [12:33:29]Write to MH i2c: E2 02 01 7F 10 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9B 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 14 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [12:33:29]RAPDU: 90 00 [12:33:29]wFMCommunicate OK [12:33:29]wFMCommunicate request_size=43 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AB 85 00 00 35 04 06 00 2C 9B 3B 13 2F 28 [12:33:29]Write to MH i2c: E2 2E 00 80 10 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AB 85 00 00 35 04 06 00 2C 9B 3B 13 2F 28 00 00 90 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [12:33:29]RAPDU: 90 00 [12:33:29]wFMCommunicate OK [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 0D 03 02 [12:33:29]Write to MH i2c: E2 08 00 81 10 80 0D 03 02 00 00 00 00 0C [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 0B 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 0B 00 81 10 00 3D 73 63 D5 5A 3A A4 29 90 00 56 [12:33:29]RAPDU: 3D 73 63 D5 5A 3A A4 29 90 00 [12:33:29]wFMCommunicate OK [12:33:29]SAM_PROTO_SignData done [12:33:29]FM_MakeSignedData done [12:33:29]CreateOFDProtocolMessage [12:33:29]wFMCommunicate request_size=4 [12:33:29]MH_SAM_APDU [12:33:29]CAPDU: 80 11 00 00 [12:33:29]Write to MH i2c: E2 08 00 82 10 80 11 00 00 00 00 00 00 0C [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:29]Read from MH i2c: E2 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 17 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: E2 17 00 82 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 61 [12:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:33:29]wFMCommunicate OK [12:33:29]CreateOFDProtocolMessage done [12:33:29]OFDSenderStorePacket 34219 [12:33:29]StoreOFDPacket docnum=34219 [12:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 1D 7B 28 01 54 73 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9B 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AB 85 00 00 35 04 06 00 2C 9B 3B 13 2F 28 3D 73 63 D5 5A 3A A4 29 [12:33:29]CheckFolder [12:33:29]dirname=/storage/ofd_packets [12:33:29]CheckFolder done [12:33:29]ProducePacketName [12:33:29]name=ofd_packets/00034219 [12:33:29]NVStorageSaveData ofd_packets/00034219 [12:33:29]File name is /storage/ofd_packets/00034219 [12:33:29]Write 334 bytes [12:33:29]NVStorageSaveData done [12:33:29]OFDSenderStorePacket done [12:33:29]KKMCreateOFDPacket done [12:33:29]NVStorageSaveData kkm_last_timestamp [12:33:29]File name is /storage/kkm_last_timestamp [12:33:29]Write 4 bytes [12:33:29]NVStorageSaveData done [12:33:29]ExternCall_PrintAddStr [12:33:29]wPrintStart [12:33:29]Write to MH i2c: 01 00 00 83 10 93 [12:33:29]Write i2c OK [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: 01 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: 01 07 00 [12:33:29]MH_I2C_Read... [12:33:29]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [12:33:29]RasterBufferAndPrint [12:33:29]line Счет N : (3)184016 [12:33:29]line ИНН: 02508201610067 [12:33:29]line Контрольно-Кассовый Чек [12:33:29]line ПРОДАЖА [12:33:29]line Товар: 6931280300549 [12:33:29]line Зажигалка Cricket ПН пьезо [12:33:29]line 3.000 * 67.00 [12:33:29]line = 201.00 [12:33:29]line НДС 12% НСП 1% [12:33:29]line > о реализуемом товаре [12:33:29]line ИТОГО: 201.00 [12:33:29]line НСП 1% : 1.78 [12:33:29]line НДС 12% : 21.34 [12:33:29]line Наличными: 201.00 [12:33:29]line Безнал.: 0.00 [12:33:29]line Место: АЗС № 120 "Партнер Нефть" [12:33:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:33:29]line СНО: Общий режим [12:33:29]line Чек 41 18.06.2024 12:33 [12:33:29]line Смена: 323 ФФД: 1.0 [12:33:29]line ЗНМ: 0300000172 [12:33:29]line РНМ: 0000000000092786 [12:33:29]line Версия ККМ: 001 [12:33:29]line ФМ: 0000000000875095 [12:33:29]line ФД: 34219 [12:33:29]line ФПД: 49045222666024 [12:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123331&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34219&fm=49045222666024&tin=02508201610067®Number=0000000000092786&sum=20100 [12:33:29]line 0 [12:33:29]OFD Sender: Processing packet 34219 [packets to send 8, broken 7] [12:33:29]ProducePacketName [12:33:29]name=ofd_packets/00034219 [12:33:29]OFD Sender: To server: pG, [12:33:29]CommunicateWithHost lk.salyk.kg:30040 [12:33:29]ConnectInit lk.salyk.kg [12:33:29]written 0, free lines is 4095 [12:33:30]Connected sock=10 [12:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 1D 7B 28 01 54 73 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 84 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 08 00 00 00 00 07 04 06 00 84 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9B 7E 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AB 85 00 00 35 04 06 00 2C 9B 3B 13 2F 28 3D 73 63 D5 5A 3A A4 29 [12:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 00 A3 47 00 56 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AB 85 00 00 F4 03 04 00 6B 25 71 66 B6 04 01 00 00 71 00 21 42 5E DC 88 C7 [12:33:30]CommunicateWithHost err = 0 [12:33:30]CheckOFDResponse [12:33:30]1017 (14) - 77093643461234 [12:33:30]1041 (16) - 0000000000875095 [12:33:30]1040 (4) - 34219 [12:33:30]1012 (4) - 18.06.2024 06:12 [12:33:30]1206 (1) - 0 [12:33:30]OFD Sender: Remove packet 34219 [12:33:30]ProducePacketName [12:33:30]name=ofd_packets/00034219 [12:33:30]NVStorageDeleteData [12:33:30]Write to MH i2c: 01 00 00 AB 10 BB [12:33:30]Write i2c OK [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: 01 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: 01 07 00 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 02 0D D1 [12:33:30]RasterBufferAndPrint [12:33:30]line [12:33:30]line [12:33:30]line [12:33:30]line [12:33:30]line [12:33:30]written 0, free lines is 3337 [12:33:30]MH_Cut [12:33:30]Write to MH i2c: D1 01 00 B2 10 01 94 [12:33:30]Write i2c OK [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: D1 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: D1 01 00 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: D1 01 00 B2 10 00 93 [12:33:30]Write to MH i2c: 01 00 00 B3 10 C3 [12:33:30]Write i2c OK [12:33:30]MH_I2C_Read... [12:33:30]OFD Sender: No OFD packet to send [12:33:31]*** Cut start [12:33:31]*** Partial cut [12:33:31]*** CUTSNS_PIN = 1 [12:33:31]*** CUTSNS_PIN = 0 [12:33:31]*** Brake cut motor [12:33:31]Read from MH i2c: 01 [12:33:31]MH_I2C_Read... [12:33:31]*** Stop cut motor [12:33:31]*** Cut end [12:33:31]Read from MH i2c: 01 07 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 FF 0F D8 [12:33:31]process_action close_receipt done [12:33:31]requested_data is exist [12:33:31]produce_requested_data [12:33:31]requested_item fm.sn is exist - process it [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 11 00 00 [12:33:31]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:31]Read from MH i2c: E2 17 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 93 [12:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:33:31]wFMCommunicate OK [12:33:31]requested_item fd.num is exist - process it [12:33:31]SAM_PROTO_GetFieldsCounters [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 13 00 00 [12:33:31]Write to MH i2c: E2 08 00 B5 10 80 13 00 00 00 00 00 00 41 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 62 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 62 00 B5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AB 85 00 00 0E 04 04 00 43 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 5A [12:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AB 85 00 00 0E 04 04 00 43 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 [12:33:31]wFMCommunicate OK [12:33:31]SAM_PROTO_GetFieldsCounters done [12:33:31]requested_item shift.num is exist - process it [12:33:31]requested_item shift.opened is exist - process it [12:33:31]req_shift_opened [12:33:31]FM_GetShiftState [12:33:31]SAM_PROTO_GetShiftState [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 13 01 00 [12:33:31]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 0E 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8E [12:33:31]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:33:31]wFMCommunicate OK [12:33:31]SAM_PROTO_GetShiftState done [12:33:31]FM_GetShiftState done [12:33:31]req_shift_opened done [12:33:31]requested_item shift.open_date is exist - process it [12:33:31]req_shift_open_date [12:33:31]req_shift_open_date done [12:33:31]produce_requested_data done [12:33:31]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34219,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:33:31]process_action_free close_receipt [12:33:31]json_value_free [12:33:31]json_value_free done [12:33:31]process_json_proto returns [12:33:31]Send response to host [12:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34219,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:33:31]free response buf [12:33:31]execute_script done [12:33:31]execute_script returns [12:33:31]free content buf [12:33:31]Sock 7.Close socket [12:33:31]Sock 7.Thread stoped [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:12]accept exits with 9 [12:37:12]New connection [12:37:12]New thread 3067436388 created [12:37:12]Thread 3067293028 joined [12:37:12]Waiting for new connection... [12:37:12] Sock 9.Parse request [12:37:12]Sock 9.Check first char [12:37:12]Sock 9.First char is OK [12:37:12]request: POST /json_proto HTTP/1.0 [12:37:12]Method: POST [12:37:12]URL: /json_proto [12:37:12]Method is POST - this is cgi request [12:37:12]url: /json_proto [12:37:12]query_string will be loaded in cgi processing [12:37:12]execute_cgi json_proto POST (null) [12:37:12]execute_cgi path=json_proto method=POST [12:37:12]POST find Content-Length [12:37:12]Host: 172.17.38.134:8080 [12:37:12]Content-Length: 1313 [12:37:12]Content-Type: application/json [12:37:12] [12:37:12]POST finish read [12:37:12]Found Content-Length = 1313 [12:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184017", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 328.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:12]execute_script... [12:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184017", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 328.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:12]POST & json_proto [12:37:12]process_json_proto [12:37:12]json parsed OK: [12:37:12]protocol is kg_v1.0 [12:37:12]action value=close_receipt [12:37:12]process_action close_receipt [12:37:12]cmd_close_receipt [12:37:12]MH_GetDate [12:37:12]Write to MH i2c: F0 00 00 B7 10 B6 [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: F0 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: F0 09 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: F0 09 00 B7 10 00 7C 7F 71 66 13 9C 7C 64 20 [12:37:12]GetLastDocTimeStamp 1718714011 [12:37:12]current date 1718714236 [12:37:12]FM_GetShiftState [12:37:12]SAM_PROTO_GetShiftState [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 13 01 00 [12:37:12]Write to MH i2c: E2 08 00 B8 10 80 13 01 00 00 00 00 00 45 [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:12]Read from MH i2c: E2 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 0E 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 0E 00 B8 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 90 [12:37:12]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:37:12]wFMCommunicate OK [12:37:12]SAM_PROTO_GetShiftState done [12:37:12]FM_GetShiftState done [12:37:12]opened in 1718670230 [12:37:12]opened+sec_in_day 1718756630 [12:37:12]quantity*price = 11300 [12:37:12]sum+1 = 11301 [12:37:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 328.00 НСП 1% : 2.90 НДС 12% : 34.83 Наличными: 328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 42 18.06.2024 12:37 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34220 ФПД: 243698028311934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123716&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34220&fm=243698028311934&tin=02508201610067®Number=0000000000092786&sum=32800 0 [12:37:13]StoreToDocumentArchive [12:37:13]shift 323 fd 34220 [12:37:13]save to /storage/0323/doc_00034220 [12:37:13]save last doc name /storage/0323/doc_00034220 to /storage/kkm_last_doc_name [12:37:13]save OK [12:37:13]Clear old archive folders... [12:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=547 [12:37:13]tlvbuf is 019D96A0 [12:37:13]SAM_PROTO_ClearQueue [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 09 00 00 [12:37:13]Write to MH i2c: E2 08 00 C5 10 80 09 00 00 00 00 00 00 47 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [12:37:13]RAPDU: 90 00 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_ClearQueue done [12:37:13]KKMCreateOFDPacket [12:37:13]OFDProtocolAddRootSTLVToBuf [12:37:13]FM_MakeSignedData [12:37:13]FM_MakeSignedData [12:37:13]SAM_PROTO_SignData [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 0D 01 02 [12:37:13]Write to MH i2c: E2 08 00 C6 10 80 0D 01 02 00 00 00 00 4F [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [12:37:13]RAPDU: 90 00 [12:37:13]wFMCommunicate OK [12:37:13]wFMCommunicate request_size=255 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 0D 02 02 FA 03 00 23 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [12:37:14]Write to MH i2c: E2 02 01 C7 10 80 0D 02 02 FA 00 03 00 23 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 D9 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]wFMCommunicate request_size=255 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 0D 02 02 FA 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 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 2A 00 00 00 F4 03 04 00 7C 7F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [12:37:14]Write to MH i2c: E2 02 01 C8 10 80 0D 02 02 FA 00 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 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 2A 00 00 00 F4 03 04 00 7C 7F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 71 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]wFMCommunicate request_size=56 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AC 85 00 00 35 04 06 00 DD A4 5E 68 F5 7E [12:37:14]Write to MH i2c: E2 3B 00 C9 10 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AC 85 00 00 35 04 06 00 DD A4 5E 68 F5 7E 00 00 D2 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 0D 03 02 [12:37:14]Write to MH i2c: E2 08 00 CA 10 80 0D 03 02 00 00 00 00 55 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 0B 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 0B 00 CA 10 00 E3 F7 A4 9A F4 20 44 F9 90 00 BF [12:37:14]RAPDU: E3 F7 A4 9A F4 20 44 F9 90 00 [12:37:14]wFMCommunicate OK [12:37:14]SAM_PROTO_SignData done [12:37:14]FM_MakeSignedData done [12:37:14]CreateOFDProtocolMessage [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 11 00 00 [12:37:14]Write to MH i2c: E2 08 00 CB 10 80 11 00 00 00 00 00 00 55 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 17 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 17 00 CB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AA [12:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:37:14]wFMCommunicate OK [12:37:14]CreateOFDProtocolMessage done [12:37:14]OFDSenderStorePacket 34220 [12:37:14]StoreOFDPacket docnum=34220 [12:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 37 02 00 00 FA 4A 2F 02 0D 84 5A 03 01 00 03 00 23 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 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 2A 00 00 00 F4 03 04 00 7C 7F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AC 85 00 00 35 04 06 00 DD A4 5E 68 F5 7E E3 F7 A4 9A F4 20 44 F9 [12:37:14]CheckFolder [12:37:14]dirname=/storage/ofd_packets [12:37:14]CheckFolder done [12:37:14]ProducePacketName [12:37:14]name=ofd_packets/00034220 [12:37:14]NVStorageSaveData ofd_packets/00034220 [12:37:14]File name is /storage/ofd_packets/00034220 [12:37:14]Write 597 bytes [12:37:14]NVStorageSaveData done [12:37:14]OFDSenderStorePacket done [12:37:14]KKMCreateOFDPacket done [12:37:14]NVStorageSaveData kkm_last_timestamp [12:37:14]File name is /storage/kkm_last_timestamp [12:37:14]Write 4 bytes [12:37:14]NVStorageSaveData done [12:37:14]ExternCall_PrintAddStr [12:37:14]wPrintStart [12:37:14]Write to MH i2c: 01 00 00 CC 10 DC [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: 01 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: 01 07 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 FF 0F F1 [12:37:14]RasterBufferAndPrint [12:37:14]line Счет N : (3)184017 [12:37:14]line ИНН: 02508201610067 [12:37:14]line Контрольно-Кассовый Чек [12:37:14]line ПРОДАЖА [12:37:14]line Товар: 4870202521261 [12:37:14]line Напиток MAXI чай 1,2 лесные ягоды [12:37:14]line 1.000 * 113.00 [12:37:14]line = 113.00 [12:37:14]line НДС 12% НСП 1% [12:37:14]line > о реализуемом товаре [12:37:14]line Товар: 5449000189332 [12:37:14]line Холодный чай Fuse персик 1л [12:37:14]line 1.000 * 120.00 [12:37:14]line = 120.00 [12:37:14]line НДС 12% НСП 1% [12:37:14]line > о реализуемом товаре [12:37:14]line Товар: 4700000480302 [12:37:14]line Напиток энерг Nitro манго-клуб 0.45 ж/б [12:37:14]line 1.000 * 95.00 [12:37:14]line = 95.00 [12:37:14]line НДС 12% НСП 1% [12:37:14]line > о реализуемом товаре [12:37:14]line ИТОГО: 328.00 [12:37:14]line НСП 1% : 2.90 [12:37:14]line НДС 12% : 34.83 [12:37:14]line Наличными: 328.00 [12:37:14]line Безнал.: 0.00 [12:37:14]line Место: АЗС № 120 "Партнер Нефть" [12:37:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:37:14]line СНО: Общий режим [12:37:14]line Чек 42 18.06.2024 12:37 [12:37:14]line Смена: 323 ФФД: 1.0 [12:37:14]line ЗНМ: 0300000172 [12:37:14]line РНМ: 0000000000092786 [12:37:14]line Версия ККМ: 001 [12:37:14]line ФМ: 0000000000875095 [12:37:14]line ФД: 34220 [12:37:14]line ФПД: 243698028311934 [12:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T123716&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34220&fm=243698028311934&tin=02508201610067®Number=0000000000092786&sum=32800 [12:37:15]line 0 [12:37:15]OFD Sender: Processing packet 34220 [packets to send 8, broken 7] [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00034220 [12:37:15]OFD Sender: To server: pG, [12:37:15]CommunicateWithHost lk.salyk.kg:30040 [12:37:15]ConnectInit lk.salyk.kg [12:37:15]written 0, free lines is 4095 [12:37:15]Connected sock=10 [12:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 37 02 00 00 FA 4A 2F 02 0D 84 5A 03 01 00 03 00 23 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 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 2A 00 00 00 F4 03 04 00 7C 7F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AC 85 00 00 35 04 06 00 DD A4 5E 68 F5 7E E3 F7 A4 9A F4 20 44 F9 [12:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 09 F3 47 00 BC 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AC 85 00 00 F4 03 04 00 4C 26 71 66 B6 04 01 00 00 36 1F D3 53 7B 3C 58 94 [12:37:15]CommunicateWithHost err = 0 [12:37:15]CheckOFDResponse [12:37:15]1017 (14) - 77093643461234 [12:37:15]1041 (16) - 0000000000875095 [12:37:15]1040 (4) - 34220 [12:37:15]1012 (4) - 18.06.2024 06:16 [12:37:15]1206 (1) - 0 [12:37:15]OFD Sender: Remove packet 34220 [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00034220 [12:37:15]NVStorageDeleteData [12:37:15]Write to MH i2c: 01 00 00 02 11 13 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 02 11 00 00 00 00 00 1E 0C 44 [12:37:15]RasterBufferAndPrint [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]written 0, free lines is 3106 [12:37:15]MH_Cut [12:37:15]Write to MH i2c: D1 01 00 09 11 01 EC [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 01 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 01 00 09 11 00 EB [12:37:15]Write to MH i2c: 01 00 00 0A 11 1B [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:16]OFD Sender: No OFD packet to send [12:37:16]*** Cut start [12:37:16]*** Partial cut [12:37:16]*** CUTSNS_PIN = 1 [12:37:16]*** CUTSNS_PIN = 0 [12:37:16]*** Brake cut motor [12:37:17]Read from MH i2c: 01 [12:37:17]MH_I2C_Read... [12:37:17]*** Stop cut motor [12:37:17]*** Cut end [12:37:17]Read from MH i2c: 01 07 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 FF 0F 30 [12:37:17]process_action close_receipt done [12:37:17]requested_data is exist [12:37:17]produce_requested_data [12:37:17]requested_item fm.sn is exist - process it [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 11 00 00 [12:37:17]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EB [12:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [12:37:17]wFMCommunicate OK [12:37:17]requested_item fd.num is exist - process it [12:37:17]SAM_PROTO_GetFieldsCounters [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 00 00 [12:37:17]Write to MH i2c: E2 08 00 0C 11 80 13 00 00 00 00 00 00 99 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 0C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AC 85 00 00 0E 04 04 00 43 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 B6 [12:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AC 85 00 00 0E 04 04 00 43 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 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetFieldsCounters done [12:37:17]requested_item shift.num is exist - process it [12:37:17]requested_item shift.opened is exist - process it [12:37:17]req_shift_opened [12:37:17]FM_GetShiftState [12:37:17]SAM_PROTO_GetShiftState [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 01 00 [12:37:17]Write to MH i2c: E2 08 00 0D 11 80 13 01 00 00 00 00 00 9B [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 0D 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E6 [12:37:17]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetShiftState done [12:37:17]FM_GetShiftState done [12:37:17]req_shift_opened done [12:37:17]requested_item shift.open_date is exist - process it [12:37:17]req_shift_open_date [12:37:17]req_shift_open_date done [12:37:17]produce_requested_data done [12:37:17]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34220,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [12:37:17]process_action_free close_receipt [12:37:17]json_value_free [12:37:17]json_value_free done [12:37:17]process_json_proto returns [12:37:17]Send response to host [12:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34220,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [12:37:17]free response buf [12:37:17]execute_script done [12:37:17]execute_script returns [12:37:17]free content buf [12:37:17]Sock 9.Close socket [12:37:17]Sock 9.Thread stoped [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]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:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:33]accept exits with 7 [13:00:33]New connection [13:00:33]New thread 3067293028 created [13:00:33]Thread 3067436388 joined [13:00:33]Waiting for new connection... [13:00:33] Sock 7.Parse request [13:00:33]Sock 7.Check first char [13:00:33]Sock 7.First char is OK [13:00:33]request: POST /json_proto HTTP/1.0 [13:00:33]Method: POST [13:00:33]URL: /json_proto [13:00:33]Method is POST - this is cgi request [13:00:33]url: /json_proto [13:00:33]query_string will be loaded in cgi processing [13:00:33]execute_cgi json_proto POST (null) [13:00:33]execute_cgi path=json_proto method=POST [13:00:33]POST find Content-Length [13:00:33]Host: 172.17.38.134:8080 [13:00:33]Content-Length: 934 [13:00:33]Content-Type: application/json [13:00:33] [13:00:33]POST finish read [13:00:33]Found Content-Length = 934 [13:00:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184018", "tax_sys" : 0, "items" : [ { "code": "7622210515056", "name": "\u043B\u0435\u0434\u0435\u043D Halls \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 166.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:33]execute_script... [13:00: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 : (3)184018", "tax_sys" : 0, "items" : [ { "code": "7622210515056", "name": "\u043B\u0435\u0434\u0435\u043D Halls \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 166.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:33]POST & json_proto [13:00:33]process_json_proto [13:00:33]json parsed OK: [13:00:33]protocol is kg_v1.0 [13:00:33]action value=close_receipt [13:00:33]process_action close_receipt [13:00:33]cmd_close_receipt [13:00:33]MH_GetDate [13:00:33]Write to MH i2c: F0 00 00 0E 11 0E [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: F0 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: F0 09 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: F0 09 00 0E 11 00 F5 84 71 66 13 9C 7C 64 F6 [13:00:33]GetLastDocTimeStamp 1718714236 [13:00:33]current date 1718715637 [13:00:33]FM_GetShiftState [13:00:33]SAM_PROTO_GetShiftState [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 13 01 00 [13:00:33]Write to MH i2c: E2 08 00 0F 11 80 13 01 00 00 00 00 00 9D [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0E 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0E 00 0F 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E8 [13:00:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_GetShiftState done [13:00:33]FM_GetShiftState done [13:00:33]opened in 1718670230 [13:00:33]opened+sec_in_day 1718756630 [13:00:33]quantity*price = 5300 [13:00:33]sum+1 = 5301 [13:00:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 166.00 НСП 1% : 1.47 НДС 12% : 17.63 Наличными: 166.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 43 18.06.2024 13:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34221 ФПД: 52477806995885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130037&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34221&fm=52477806995885&tin=02508201610067®Number=0000000000092786&sum=16600 0 [13:00:34]StoreToDocumentArchive [13:00:34]shift 323 fd 34221 [13:00:34]save to /storage/0323/doc_00034221 [13:00:34]save last doc name /storage/0323/doc_00034221 to /storage/kkm_last_doc_name [13:00:34]save OK [13:00:34]Clear old archive folders... [13:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=390 [13:00:34]tlvbuf is 01A3BC90 [13:00:34]SAM_PROTO_ClearQueue [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 09 00 00 [13:00:34]Write to MH i2c: E2 08 00 1C 11 80 09 00 00 00 00 00 00 9F [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [13:00:34]RAPDU: 90 00 [13:00:34]wFMCommunicate OK [13:00:34]SAM_PROTO_ClearQueue done [13:00:34]KKMCreateOFDPacket [13:00:34]OFDProtocolAddRootSTLVToBuf [13:00:34]FM_MakeSignedData [13:00:34]FM_MakeSignedData [13:00:34]SAM_PROTO_SignData [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 0D 01 02 [13:00:34]Write to MH i2c: E2 08 00 1D 11 80 0D 01 02 00 00 00 00 A7 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [13:00:34]RAPDU: 90 00 [13:00:34]wFMCommunicate OK [13:00:34]wFMCommunicate request_size=255 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [13:00:34]Write to MH i2c: E2 02 01 1E 11 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 60 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 1E 11 00 90 00 A3 [13:00:34]RAPDU: 90 00 [13:00:34]wFMCommunicate OK [13:00:34]wFMCommunicate request_size=149 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 84 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AD 85 00 00 35 04 06 00 2F BA 71 0B 69 AD [13:00:34]Write to MH i2c: E2 98 00 1F 11 80 0D 02 02 90 00 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 84 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AD 85 00 00 35 04 06 00 2F BA 71 0B 69 AD 00 00 01 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 1F 11 00 90 00 A4 [13:00:34]RAPDU: 90 00 [13:00:34]wFMCommunicate OK [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 0D 03 02 [13:00:34]Write to MH i2c: E2 08 00 20 11 80 0D 03 02 00 00 00 00 AC [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 0B 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 0B 00 20 11 00 70 5A 39 90 DC 93 88 96 90 00 CD [13:00:34]RAPDU: 70 5A 39 90 DC 93 88 96 90 00 [13:00:34]wFMCommunicate OK [13:00:34]SAM_PROTO_SignData done [13:00:34]FM_MakeSignedData done [13:00:34]CreateOFDProtocolMessage [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 11 00 00 [13:00:34]Write to MH i2c: E2 08 00 21 11 80 11 00 00 00 00 00 00 AC [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 17 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 17 00 21 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 01 [13:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:00:35]wFMCommunicate OK [13:00:35]CreateOFDProtocolMessage done [13:00:35]OFDSenderStorePacket 34221 [13:00:35]StoreOFDPacket docnum=34221 [13:00:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9A 01 00 00 25 23 92 01 4B 8E 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 84 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AD 85 00 00 35 04 06 00 2F BA 71 0B 69 AD 70 5A 39 90 DC 93 88 96 [13:00:35]CheckFolder [13:00:35]dirname=/storage/ofd_packets [13:00:35]CheckFolder done [13:00:35]ProducePacketName [13:00:35]name=ofd_packets/00034221 [13:00:35]NVStorageSaveData ofd_packets/00034221 [13:00:35]File name is /storage/ofd_packets/00034221 [13:00:35]Write 440 bytes [13:00:35]NVStorageSaveData done [13:00:35]OFDSenderStorePacket done [13:00:35]KKMCreateOFDPacket done [13:00:35]NVStorageSaveData kkm_last_timestamp [13:00:35]File name is /storage/kkm_last_timestamp [13:00:35]Write 4 bytes [13:00:35]NVStorageSaveData done [13:00:35]ExternCall_PrintAddStr [13:00:35]wPrintStart [13:00:35]Write to MH i2c: 01 00 00 22 11 33 [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 07 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 07 00 22 11 00 00 00 00 00 FF 0F 48 [13:00:35]RasterBufferAndPrint [13:00:35]line Счет N : (3)184018 [13:00:35]line ИНН: 02508201610067 [13:00:35]line Контрольно-Кассовый Чек [13:00:35]line ПРОДАЖА [13:00:35]line Товар: 7622210515056 [13:00:35]line леден Halls лесные ягоды [13:00:35]line 1.000 * 53.00 [13:00:35]line = 53.00 [13:00:35]line НДС 12% НСП 1% [13:00:35]line > о реализуемом товаре [13:00:35]line Товар: 5449000054227 [13:00:35]line Напиток Кока-Кола 1л [13:00:35]line 1.000 * 113.00 [13:00:35]line = 113.00 [13:00:35]line НДС 12% НСП 1% [13:00:35]line > о реализуемом товаре [13:00:35]line ИТОГО: 166.00 [13:00:35]line НСП 1% : 1.47 [13:00:35]line НДС 12% : 17.63 [13:00:35]line Наличными: 166.00 [13:00:35]line Безнал.: 0.00 [13:00:35]line Место: АЗС № 120 "Партнер Нефть" [13:00:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:00:35]line СНО: Общий режим [13:00:35]line Чек 43 18.06.2024 13:00 [13:00:35]line Смена: 323 ФФД: 1.0 [13:00:35]line ЗНМ: 0300000172 [13:00:35]line РНМ: 0000000000092786 [13:00:35]line Версия ККМ: 001 [13:00:35]line ФМ: 0000000000875095 [13:00:35]line ФД: 34221 [13:00:35]line ФПД: 52477806995885 [13:00:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130037&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34221&fm=52477806995885&tin=02508201610067®Number=0000000000092786&sum=16600 [13:00:35]line 0 [13:00:35]OFD Sender: Processing packet 34221 [packets to send 8, broken 7] [13:00:35]ProducePacketName [13:00:35]name=ofd_packets/00034221 [13:00:35]OFD Sender: To server: pG, [13:00:35]CommunicateWithHost lk.salyk.kg:30040 [13:00:35]ConnectInit lk.salyk.kg [13:00:35]written 0, free lines is 4095 [13:00:35]Connected sock=10 [13:00:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9A 01 00 00 25 23 92 01 4B 8E 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 06 00 00 00 00 07 04 06 00 D8 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 84 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AD 85 00 00 35 04 06 00 2F BA 71 0B 69 AD 70 5A 39 90 DC 93 88 96 [13:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 00 CF 47 00 B6 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AD 85 00 00 F4 03 04 00 C5 2B 71 66 B6 04 01 00 00 08 2C 95 6D D5 01 00 98 [13:00:35]CommunicateWithHost err = 0 [13:00:35]CheckOFDResponse [13:00:35]1017 (14) - 77093643461234 [13:00:35]1041 (16) - 0000000000875095 [13:00:35]1040 (4) - 34221 [13:00:35]1012 (4) - 18.06.2024 06:40 [13:00:35]1206 (1) - 0 [13:00:35]OFD Sender: Remove packet 34221 [13:00:35]ProducePacketName [13:00:35]name=ofd_packets/00034221 [13:00:35]NVStorageDeleteData [13:00:35]Write to MH i2c: 01 00 00 50 11 61 [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 07 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 07 00 50 11 00 00 00 00 00 A7 0C 1B [13:00:35]RasterBufferAndPrint [13:00:35]line [13:00:35]line [13:00:35]line [13:00:35]line [13:00:35]line [13:00:35]written 0, free lines is 3245 [13:00:35]MH_Cut [13:00:35]Write to MH i2c: D1 01 00 57 11 01 3A [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: D1 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: D1 01 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: D1 01 00 57 11 00 39 [13:00:35]Write to MH i2c: 01 00 00 58 11 69 [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:36]OFD Sender: No OFD packet to send [13:00:36]*** Cut start [13:00:36]*** Partial cut [13:00:36]*** CUTSNS_PIN = 1 [13:00:36]*** CUTSNS_PIN = 0 [13:00:36]*** Brake cut motor [13:00:37]Read from MH i2c: 01 [13:00:37]MH_I2C_Read... [13:00:37]*** Stop cut motor [13:00:37]*** Cut end [13:00:37]Read from MH i2c: 01 07 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: 01 07 00 58 11 00 00 00 00 00 FF 0F 7E [13:00:37]process_action close_receipt done [13:00:37]requested_data is exist [13:00:37]produce_requested_data [13:00:37]requested_item fm.sn is exist - process it [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 11 00 00 [13:00:37]Write to MH i2c: E2 08 00 59 11 80 11 00 00 00 00 00 00 E4 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:37]Read from MH i2c: E2 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 17 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 17 00 59 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 39 [13:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:00:37]wFMCommunicate OK [13:00:37]requested_item fd.num is exist - process it [13:00:37]SAM_PROTO_GetFieldsCounters [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 13 00 00 [13:00:37]Write to MH i2c: E2 08 00 5A 11 80 13 00 00 00 00 00 00 E7 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:37]Read from MH i2c: E2 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 62 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 62 00 5A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AD 85 00 00 0E 04 04 00 43 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 08 [13:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AD 85 00 00 0E 04 04 00 43 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 [13:00:37]wFMCommunicate OK [13:00:37]SAM_PROTO_GetFieldsCounters done [13:00:37]requested_item shift.num is exist - process it [13:00:37]requested_item shift.opened is exist - process it [13:00:37]req_shift_opened [13:00:37]FM_GetShiftState [13:00:37]SAM_PROTO_GetShiftState [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 13 01 00 [13:00:37]Write to MH i2c: E2 08 00 5B 11 80 13 01 00 00 00 00 00 E9 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:37]Read from MH i2c: E2 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 0E 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 0E 00 5B 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 34 [13:00:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:00:37]wFMCommunicate OK [13:00:37]SAM_PROTO_GetShiftState done [13:00:37]FM_GetShiftState done [13:00:37]req_shift_opened done [13:00:37]requested_item shift.open_date is exist - process it [13:00:37]req_shift_open_date [13:00:37]req_shift_open_date done [13:00:37]produce_requested_data done [13:00:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34221,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:00:37]process_action_free close_receipt [13:00:37]json_value_free [13:00:37]json_value_free done [13:00:37]process_json_proto returns [13:00:37]Send response to host [13:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34221,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:00:37]free response buf [13:00:37]execute_script done [13:00:37]execute_script returns [13:00:37]free content buf [13:00:37]Sock 7.Close socket [13:00:37]Sock 7.Thread stoped [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:04]accept exits with 9 [13:01:04]New connection [13:01:04]New thread 3067436388 created [13:01:04]Thread 3067293028 joined [13:01:04]Waiting for new connection... [13:01:04] Sock 9.Parse request [13:01:04]Sock 9.Check first char [13:01:04]Sock 9.First char is OK [13:01:04]request: POST /json_proto HTTP/1.0 [13:01:04]Method: POST [13:01:04]URL: /json_proto [13:01:04]Method is POST - this is cgi request [13:01:04]url: /json_proto [13:01:04]query_string will be loaded in cgi processing [13:01:04]execute_cgi json_proto POST (null) [13:01:04]execute_cgi path=json_proto method=POST [13:01:04]POST find Content-Length [13:01:04]Host: 172.17.38.134:8080 [13:01:04]Content-Length: 1232 [13:01:04]Content-Type: application/json [13:01:04] [13:01:04]POST finish read [13:01:04]Found Content-Length = 1232 [13:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184019", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016699", "name": "\u0428\u043E\u043A.\u043C\u043E\u043B.OZera Extra milk 90\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:04]execute_script... [13:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184019", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016699", "name": "\u0428\u043E\u043A.\u043C\u043E\u043B.OZera Extra milk 90\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:04]POST & json_proto [13:01:04]process_json_proto [13:01:04]json parsed OK: [13:01:04]protocol is kg_v1.0 [13:01:04]action value=close_receipt [13:01:04]process_action close_receipt [13:01:04]cmd_close_receipt [13:01:04]MH_GetDate [13:01:04]Write to MH i2c: F0 00 00 5C 11 5C [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: F0 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: F0 09 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: F0 09 00 5C 11 00 14 85 71 66 13 9C 7C 64 64 [13:01:04]GetLastDocTimeStamp 1718715637 [13:01:04]current date 1718715668 [13:01:04]FM_GetShiftState [13:01:04]SAM_PROTO_GetShiftState [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 13 01 00 [13:01:04]Write to MH i2c: E2 08 00 5D 11 80 13 01 00 00 00 00 00 EB [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0E 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0E 00 5D 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 36 [13:01:04]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:01:04]wFMCommunicate OK [13:01:04]SAM_PROTO_GetShiftState done [13:01:04]FM_GetShiftState done [13:01:04]opened in 1718670230 [13:01:04]opened+sec_in_day 1718756630 [13:01:04]quantity*price = 10000 [13:01:04]sum+1 = 10001 [13:01:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329016699 Шок.мол.OZera Extra milk 90г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.47 НДС 12% : 29.74 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 44 18.06.2024 13:01 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34222 ФПД: 124287849747665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130108&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34222&fm=124287849747665&tin=02508201610067®Number=0000000000092786&sum=28000 0 [13:01:05]StoreToDocumentArchive [13:01:05]shift 323 fd 34222 [13:01:05]save to /storage/0323/doc_00034222 [13:01:05]save last doc name /storage/0323/doc_00034222 to /storage/kkm_last_doc_name [13:01:05]save OK [13:01:05]Clear old archive folders... [13:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=533 [13:01:05]tlvbuf is 01A35A40 [13:01:05]SAM_PROTO_ClearQueue [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 09 00 00 [13:01:05]Write to MH i2c: E2 08 00 6A 11 80 09 00 00 00 00 00 00 ED [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:05]Read from MH i2c: E2 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 03 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 03 00 6A 11 00 90 00 EF [13:01:05]RAPDU: 90 00 [13:01:05]wFMCommunicate OK [13:01:05]SAM_PROTO_ClearQueue done [13:01:05]KKMCreateOFDPacket [13:01:05]OFDProtocolAddRootSTLVToBuf [13:01:05]FM_MakeSignedData [13:01:05]FM_MakeSignedData [13:01:05]SAM_PROTO_SignData [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 0D 01 02 [13:01:05]Write to MH i2c: E2 08 00 6B 11 80 0D 01 02 00 00 00 00 F5 [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:05]Read from MH i2c: E2 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 03 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 03 00 6B 11 00 90 00 F0 [13:01:05]RAPDU: 90 00 [13:01:05]wFMCommunicate OK [13:01:05]wFMCommunicate request_size=255 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 0D 02 02 FA 03 00 15 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 [13:01:05]Write to MH i2c: E2 02 01 6C 11 80 0D 02 02 FA 00 03 00 15 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 00 00 49 [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 6C 11 00 90 00 F1 [13:01:06]RAPDU: 90 00 [13:01:06]wFMCommunicate OK [13:01:06]wFMCommunicate request_size=255 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 14 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 [13:01:06]Write to MH i2c: E2 02 01 6D 11 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 14 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 00 00 A2 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]OFD Sender: No OFD packet to send [13:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 6D 11 00 90 00 F2 [13:01:06]RAPDU: 90 00 [13:01:06]wFMCommunicate OK [13:01:06]wFMCommunicate request_size=42 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AE 85 00 00 35 04 06 00 71 0A 05 22 54 D1 [13:01:06]Write to MH i2c: E2 2D 00 6E 11 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AE 85 00 00 35 04 06 00 71 0A 05 22 54 D1 00 00 CA [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [13:01:06]RAPDU: 90 00 [13:01:06]wFMCommunicate OK [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 0D 03 02 [13:01:06]Write to MH i2c: E2 08 00 6F 11 80 0D 03 02 00 00 00 00 FB [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0B 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0B 00 6F 11 00 C7 1D 11 91 51 D1 15 F1 90 00 AA [13:01:06]RAPDU: C7 1D 11 91 51 D1 15 F1 90 00 [13:01:06]wFMCommunicate OK [13:01:06]SAM_PROTO_SignData done [13:01:06]FM_MakeSignedData done [13:01:06]CreateOFDProtocolMessage [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 11 00 00 [13:01:06]Write to MH i2c: E2 08 00 70 11 80 11 00 00 00 00 00 00 FB [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 17 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 17 00 70 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 50 [13:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:01:06]wFMCommunicate OK [13:01:06]CreateOFDProtocolMessage done [13:01:06]OFDSenderStorePacket 34222 [13:01:06]StoreOFDPacket docnum=34222 [13:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 29 02 00 00 40 99 21 02 FB FE 5A 03 01 00 03 00 15 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 14 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AE 85 00 00 35 04 06 00 71 0A 05 22 54 D1 C7 1D 11 91 51 D1 15 F1 [13:01:06]CheckFolder [13:01:06]dirname=/storage/ofd_packets [13:01:06]CheckFolder done [13:01:06]ProducePacketName [13:01:06]name=ofd_packets/00034222 [13:01:06]NVStorageSaveData ofd_packets/00034222 [13:01:06]File name is /storage/ofd_packets/00034222 [13:01:06]Write 583 bytes [13:01:06]NVStorageSaveData done [13:01:06]OFDSenderStorePacket done [13:01:06]KKMCreateOFDPacket done [13:01:06]NVStorageSaveData kkm_last_timestamp [13:01:06]File name is /storage/kkm_last_timestamp [13:01:06]Write 4 bytes [13:01:06]NVStorageSaveData done [13:01:06]ExternCall_PrintAddStr [13:01:06]wPrintStart [13:01:06]Write to MH i2c: 01 00 00 71 11 82 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 FF 0F 97 [13:01:06]RasterBufferAndPrint [13:01:06]line Счет N : (3)184019 [13:01:06]line ИНН: 02508201610067 [13:01:06]line Контрольно-Кассовый Чек [13:01:06]line ПРОДАЖА [13:01:06]line Товар: 4700003010018 [13:01:06]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [13:01:06]line 2.000 * 50.00 [13:01:06]line = 100.00 [13:01:06]line НДС 12% НСП 1% [13:01:06]line > о реализуемом товаре [13:01:06]line Товар: 4700000480302 [13:01:06]line Напиток энерг Nitro манго-клуб 0.45 ж/б [13:01:06]line 1.000 * 95.00 [13:01:06]line = 95.00 [13:01:06]line НДС 12% НСП 1% [13:01:06]line > о реализуемом товаре [13:01:06]line Товар: 4690329016699 [13:01:06]line Шок.мол.OZera Extra milk 90г [13:01:06]line 1.000 * 85.00 [13:01:06]line = 85.00 [13:01:06]line НДС 12% НСП 1% [13:01:06]line > о реализуемом товаре [13:01:06]line ИТОГО: 280.00 [13:01:06]line НСП 1% : 2.47 [13:01:06]line НДС 12% : 29.74 [13:01:06]line Наличными: 280.00 [13:01:06]line Безнал.: 0.00 [13:01:06]line Место: АЗС № 120 "Партнер Нефть" [13:01:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:01:06]line СНО: Общий режим [13:01:06]line Чек 44 18.06.2024 13:01 [13:01:06]line Смена: 323 ФФД: 1.0 [13:01:06]line ЗНМ: 0300000172 [13:01:06]line РНМ: 0000000000092786 [13:01:06]line Версия ККМ: 001 [13:01:06]line ФМ: 0000000000875095 [13:01:06]line ФД: 34222 [13:01:06]line ФПД: 124287849747665 [13:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130108&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34222&fm=124287849747665&tin=02508201610067®Number=0000000000092786&sum=28000 [13:01:06]line 0 [13:01:06]OFD Sender: Processing packet 34222 [packets to send 8, broken 7] [13:01:06]ProducePacketName [13:01:06]name=ofd_packets/00034222 [13:01:06]OFD Sender: To server: pG, [13:01:06]CommunicateWithHost lk.salyk.kg:30040 [13:01:06]ConnectInit lk.salyk.kg [13:01:06]written 0, free lines is 4095 [13:01:07]Connected sock=10 [13:01:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 29 02 00 00 40 99 21 02 FB FE 5A 03 01 00 03 00 15 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 14 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AE 85 00 00 35 04 06 00 71 0A 05 22 54 D1 C7 1D 11 91 51 D1 15 F1 [13:01:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 19 FD 47 00 F7 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AE 85 00 00 F4 03 04 00 E4 2B 71 66 B6 04 01 00 00 9C EE AA 71 A7 1E CB D0 [13:01:07]CommunicateWithHost err = 0 [13:01:07]CheckOFDResponse [13:01:07]1017 (14) - 77093643461234 [13:01:07]1041 (16) - 0000000000875095 [13:01:07]1040 (4) - 34222 [13:01:07]1012 (4) - 18.06.2024 06:40 [13:01:07]1206 (1) - 0 [13:01:07]OFD Sender: Remove packet 34222 [13:01:07]ProducePacketName [13:01:07]name=ofd_packets/00034222 [13:01:07]NVStorageDeleteData [13:01:07]Write to MH i2c: 01 00 00 A7 11 B8 [13:01:07]Write i2c OK [13:01:07]MH_I2C_Read... [13:01:07]Read from MH i2c: 01 [13:01:07]MH_I2C_Read... [13:01:07]Read from MH i2c: 01 07 00 [13:01:07]MH_I2C_Read... [13:01:07]Read from MH i2c: 01 07 00 A7 11 00 00 00 00 00 2D 0C F8 [13:01:07]RasterBufferAndPrint [13:01:07]line [13:01:07]line [13:01:07]line [13:01:07]line [13:01:07]line [13:01:07]written 0, free lines is 3123 [13:01:07]MH_Cut [13:01:07]Write to MH i2c: D1 01 00 AE 11 01 91 [13:01:07]Write i2c OK [13:01:07]MH_I2C_Read... [13:01:07]Read from MH i2c: D1 [13:01:07]MH_I2C_Read... [13:01:07]Read from MH i2c: D1 01 00 [13:01:07]MH_I2C_Read... [13:01:07]Read from MH i2c: D1 01 00 AE 11 00 90 [13:01:07]Write to MH i2c: 01 00 00 AF 11 C0 [13:01:07]Write i2c OK [13:01:07]MH_I2C_Read... [13:01:07]OFD Sender: No OFD packet to send [13:01:08]*** Cut start [13:01:08]*** Partial cut [13:01:08]*** CUTSNS_PIN = 1 [13:01:08]*** CUTSNS_PIN = 0 [13:01:08]*** Brake cut motor [13:01:08]Read from MH i2c: 01 [13:01:08]MH_I2C_Read... [13:01:08]*** Stop cut motor [13:01:08]*** Cut end [13:01:08]Read from MH i2c: 01 07 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: 01 07 00 AF 11 00 00 00 00 00 FF 0F D5 [13:01:08]process_action close_receipt done [13:01:08]requested_data is exist [13:01:08]produce_requested_data [13:01:08]requested_item fm.sn is exist - process it [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 11 00 00 [13:01:08]Write to MH i2c: E2 08 00 B0 11 80 11 00 00 00 00 00 00 3B [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 17 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 17 00 B0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 90 [13:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:01:09]wFMCommunicate OK [13:01:09]requested_item fd.num is exist - process it [13:01:09]SAM_PROTO_GetFieldsCounters [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 13 00 00 [13:01:09]Write to MH i2c: E2 08 00 B1 11 80 13 00 00 00 00 00 00 3E [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 62 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 62 00 B1 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AE 85 00 00 0E 04 04 00 43 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 63 [13:01:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AE 85 00 00 0E 04 04 00 43 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 [13:01:09]wFMCommunicate OK [13:01:09]SAM_PROTO_GetFieldsCounters done [13:01:09]requested_item shift.num is exist - process it [13:01:09]requested_item shift.opened is exist - process it [13:01:09]req_shift_opened [13:01:09]FM_GetShiftState [13:01:09]SAM_PROTO_GetShiftState [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 13 01 00 [13:01:09]Write to MH i2c: E2 08 00 B2 11 80 13 01 00 00 00 00 00 40 [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 0E 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 0E 00 B2 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8B [13:01:09]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:01:09]wFMCommunicate OK [13:01:09]SAM_PROTO_GetShiftState done [13:01:09]FM_GetShiftState done [13:01:09]req_shift_opened done [13:01:09]requested_item shift.open_date is exist - process it [13:01:09]req_shift_open_date [13:01:09]req_shift_open_date done [13:01:09]produce_requested_data done [13:01:09]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34222,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:01:09]process_action_free close_receipt [13:01:09]json_value_free [13:01:09]json_value_free done [13:01:09]process_json_proto returns [13:01:09]Send response to host [13:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34222,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:01:09]free response buf [13:01:09]execute_script done [13:01:09]execute_script returns [13:01:09]free content buf [13:01:09]Sock 9.Close socket [13:01:09]Sock 9.Thread stoped [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:34]accept exits with 7 [13:02:34]New connection [13:02:34]New thread 3067293028 created [13:02:34]Thread 3067436388 joined [13:02:34]Waiting for new connection... [13:02:34] Sock 7.Parse request [13:02:34]Sock 7.Check first char [13:02:34]Sock 7.First char is OK [13:02:34]request: POST /json_proto HTTP/1.0 [13:02:34]Method: POST [13:02:34]URL: /json_proto [13:02:34]Method is POST - this is cgi request [13:02:34]url: /json_proto [13:02:34]query_string will be loaded in cgi processing [13:02:34]execute_cgi json_proto POST (null) [13:02:34]execute_cgi path=json_proto method=POST [13:02:34]POST find Content-Length [13:02:34]Host: 172.17.38.134:8080 [13:02:34]Content-Length: 652 [13:02:34]Content-Type: application/json [13:02:34] [13:02:34]POST finish read [13:02:34]Found Content-Length = 652 [13:02:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184020", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:34]execute_script... [13:02:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184020", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:34]POST & json_proto [13:02:34]process_json_proto [13:02:34]json parsed OK: [13:02:34]protocol is kg_v1.0 [13:02:34]action value=close_receipt [13:02:34]process_action close_receipt [13:02:34]cmd_close_receipt [13:02:34]MH_GetDate [13:02:34]Write to MH i2c: F0 00 00 B3 11 B3 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: F0 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: F0 09 00 [13:02:34]MH_I2C_Read... [13:02:34]Read from MH i2c: F0 09 00 B3 11 00 6E 85 71 66 13 9C 7C 64 15 [13:02:34]GetLastDocTimeStamp 1718715668 [13:02:34]current date 1718715758 [13:02:34]FM_GetShiftState [13:02:34]SAM_PROTO_GetShiftState [13:02:34]wFMCommunicate request_size=4 [13:02:34]MH_SAM_APDU [13:02:34]CAPDU: 80 13 01 00 [13:02:34]Write to MH i2c: E2 08 00 B4 11 80 13 01 00 00 00 00 00 42 [13:02:34]Write i2c OK [13:02:34]MH_I2C_Read... [13:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:35]Read from MH i2c: E2 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 B4 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8D [13:02:35]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:02:35]wFMCommunicate OK [13:02:35]SAM_PROTO_GetShiftState done [13:02:35]FM_GetShiftState done [13:02:35]opened in 1718670230 [13:02:35]opened+sec_in_day 1718756630 [13:02:35]quantity*price = 7500 [13:02:35]sum+1 = 7501 [13:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 45 18.06.2024 13:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34223 ФПД: 234805270757933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130238&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34223&fm=234805270757933&tin=02508201610067®Number=0000000000092786&sum=7500 0 [13:02:36]StoreToDocumentArchive [13:02:36]shift 323 fd 34223 [13:02:36]save to /storage/0323/doc_00034223 [13:02:36]save last doc name /storage/0323/doc_00034223 to /storage/kkm_last_doc_name [13:02:36]save OK [13:02:36]Clear old archive folders... [13:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:02:36]tlvbuf is 01A3BCB0 [13:02:36]SAM_PROTO_ClearQueue [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 09 00 00 [13:02:36]Write to MH i2c: E2 08 00 C1 11 80 09 00 00 00 00 00 00 44 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]SAM_PROTO_ClearQueue done [13:02:36]KKMCreateOFDPacket [13:02:36]OFDProtocolAddRootSTLVToBuf [13:02:36]FM_MakeSignedData [13:02:36]FM_MakeSignedData [13:02:36]SAM_PROTO_SignData [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 01 02 [13:02:36]Write to MH i2c: E2 08 00 C2 11 80 0D 01 02 00 00 00 00 4C [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=255 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6E 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 [13:02:36]Write to MH i2c: E2 02 01 C3 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6E 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 00 00 7D [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=34 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AF 85 00 00 35 04 06 00 D5 8D DC C1 42 2D [13:02:36]Write to MH i2c: E2 25 00 C4 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AF 85 00 00 35 04 06 00 D5 8D DC C1 42 2D 00 00 B4 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 C4 11 00 90 00 49 [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 03 02 [13:02:36]Write to MH i2c: E2 08 00 C5 11 80 0D 03 02 00 00 00 00 51 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 0B 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 0B 00 C5 11 00 7E CA B6 24 B7 E3 23 CC 90 00 FD [13:02:36]RAPDU: 7E CA B6 24 B7 E3 23 CC 90 00 [13:02:36]wFMCommunicate OK [13:02:36]SAM_PROTO_SignData done [13:02:36]FM_MakeSignedData done [13:02:36]CreateOFDProtocolMessage [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 11 00 00 [13:02:36]Write to MH i2c: E2 08 00 C6 11 80 11 00 00 00 00 00 00 51 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 17 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 17 00 C6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A6 [13:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:02:36]wFMCommunicate OK [13:02:36]CreateOFDProtocolMessage done [13:02:36]OFDSenderStorePacket 34223 [13:02:36]StoreOFDPacket docnum=34223 [13:02:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 00 8B 1F 01 4B F9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6E 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AF 85 00 00 35 04 06 00 D5 8D DC C1 42 2D 7E CA B6 24 B7 E3 23 CC [13:02:36]CheckFolder [13:02:36]dirname=/storage/ofd_packets [13:02:36]CheckFolder done [13:02:36]ProducePacketName [13:02:36]name=ofd_packets/00034223 [13:02:36]NVStorageSaveData ofd_packets/00034223 [13:02:36]File name is /storage/ofd_packets/00034223 [13:02:36]Write 325 bytes [13:02:36]NVStorageSaveData done [13:02:36]OFDSenderStorePacket done [13:02:36]KKMCreateOFDPacket done [13:02:36]NVStorageSaveData kkm_last_timestamp [13:02:36]File name is /storage/kkm_last_timestamp [13:02:36]Write 4 bytes [13:02:36]NVStorageSaveData done [13:02:36]ExternCall_PrintAddStr [13:02:36]wPrintStart [13:02:36]Write to MH i2c: 01 00 00 C7 11 D8 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 07 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 FF 0F ED [13:02:36]RasterBufferAndPrint [13:02:36]line Счет N : (3)184020 [13:02:36]line ИНН: 02508201610067 [13:02:36]line Контрольно-Кассовый Чек [13:02:36]line ПРОДАЖА [13:02:36]line Товар: 54491472 [13:02:36]line Напиток Кока-Кола 0,5л [13:02:36]line 1.000 * 75.00 [13:02:36]line = 75.00 [13:02:36]line НДС 12% НСП 1% [13:02:36]line > о реализуемом товаре [13:02:36]line ИТОГО: 75.00 [13:02:36]line НСП 1% : 0.66 [13:02:36]line НДС 12% : 7.96 [13:02:36]line Наличными: 75.00 [13:02:36]line Безнал.: 0.00 [13:02:36]line Место: АЗС № 120 "Партнер Нефть" [13:02:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:02:36]line СНО: Общий режим [13:02:36]line Чек 45 18.06.2024 13:02 [13:02:36]line Смена: 323 ФФД: 1.0 [13:02:36]line ЗНМ: 0300000172 [13:02:36]line РНМ: 0000000000092786 [13:02:36]line Версия ККМ: 001 [13:02:36]line ФМ: 0000000000875095 [13:02:36]line ФД: 34223 [13:02:37]line ФПД: 234805270757933 [13:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T130238&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34223&fm=234805270757933&tin=02508201610067®Number=0000000000092786&sum=7500 [13:02:37]line 0 [13:02:37]OFD Sender: Processing packet 34223 [packets to send 8, broken 7] [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00034223 [13:02:37]OFD Sender: To server: pG, [13:02:37]CommunicateWithHost lk.salyk.kg:30040 [13:02:37]ConnectInit lk.salyk.kg [13:02:37]written 0, free lines is 4095 [13:02:37]Connected sock=10 [13:02:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 00 8B 1F 01 4B F9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 6E 85 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AF 85 00 00 35 04 06 00 D5 8D DC C1 42 2D 7E CA B6 24 B7 E3 23 CC [13:02:37]Write to MH i2c: 01 00 00 EF 11 00 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 [13:02:37]MH_I2C_Read... [13:02:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 90 F3 47 00 3C 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 AF 85 00 00 F4 03 04 00 3E 2C 71 66 B6 04 01 00 00 5C 22 88 3D 3D 19 D6 83 [13:02:37]CommunicateWithHost err = 0 [13:02:37]CheckOFDResponse [13:02:37]1017 (14) - 77093643461234 [13:02:37]1041 (16) - 0000000000875095 [13:02:37]1040 (4) - 34223 [13:02:37]1012 (4) - 18.06.2024 06:42 [13:02:37]1206 (1) - 0 [13:02:37]OFD Sender: Remove packet 34223 [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00034223 [13:02:37]NVStorageDeleteData [13:02:37]Read from MH i2c: 01 07 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 FA 0C 0D [13:02:37]RasterBufferAndPrint [13:02:37]line [13:02:37]line [13:02:37]line [13:02:37]line [13:02:37]line [13:02:37]written 0, free lines is 3362 [13:02:37]MH_Cut [13:02:37]Write to MH i2c: D1 01 00 F6 11 01 D9 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: D1 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: D1 01 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: D1 01 00 F6 11 00 D8 [13:02:37]Write to MH i2c: 01 00 00 F7 11 08 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]OFD Sender: No OFD packet to send [13:02:38]*** Cut start [13:02:38]*** Partial cut [13:02:38]*** CUTSNS_PIN = 1 [13:02:38]*** CUTSNS_PIN = 0 [13:02:38]*** Brake cut motor [13:02:38]Read from MH i2c: 01 [13:02:38]MH_I2C_Read... [13:02:38]*** Stop cut motor [13:02:38]*** Cut end [13:02:38]Read from MH i2c: 01 07 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [13:02:38]process_action close_receipt done [13:02:38]requested_data is exist [13:02:38]produce_requested_data [13:02:38]requested_item fm.sn is exist - process it [13:02:38]wFMCommunicate request_size=4 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 11 00 00 [13:02:38]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 17 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D8 [13:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:02:38]wFMCommunicate OK [13:02:38]requested_item fd.num is exist - process it [13:02:38]SAM_PROTO_GetFieldsCounters [13:02:38]wFMCommunicate request_size=4 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 13 00 00 [13:02:38]Write to MH i2c: E2 08 00 F9 11 80 13 00 00 00 00 00 00 86 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 62 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 62 00 F9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AF 85 00 00 0E 04 04 00 43 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 AF [13:02:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 AF 85 00 00 0E 04 04 00 43 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 [13:02:39]wFMCommunicate OK [13:02:39]SAM_PROTO_GetFieldsCounters done [13:02:39]requested_item shift.num is exist - process it [13:02:39]requested_item shift.opened is exist - process it [13:02:39]req_shift_opened [13:02:39]FM_GetShiftState [13:02:39]SAM_PROTO_GetShiftState [13:02:39]wFMCommunicate request_size=4 [13:02:39]MH_SAM_APDU [13:02:39]CAPDU: 80 13 01 00 [13:02:39]Write to MH i2c: E2 08 00 FA 11 80 13 01 00 00 00 00 00 88 [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:39]Read from MH i2c: E2 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 0E 00 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 0E 00 FA 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D3 [13:02:39]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:02:39]wFMCommunicate OK [13:02:39]SAM_PROTO_GetShiftState done [13:02:39]FM_GetShiftState done [13:02:39]req_shift_opened done [13:02:39]requested_item shift.open_date is exist - process it [13:02:39]req_shift_open_date [13:02:39]req_shift_open_date done [13:02:39]produce_requested_data done [13:02:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34223,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:02:39]process_action_free close_receipt [13:02:39]json_value_free [13:02:39]json_value_free done [13:02:39]process_json_proto returns [13:02:39]Send response to host [13:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34223,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:02:39]free response buf [13:02:39]execute_script done [13:02:39]execute_script returns [13:02:39]free content buf [13:02:39]Sock 7.Close socket [13:02:39]Sock 7.Thread stoped [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:40]accept exits with 9 [13:13:40]New connection [13:13:40]New thread 3067436388 created [13:13:40]Thread 3067293028 joined [13:13:40]Waiting for new connection... [13:13:40] Sock 9.Parse request [13:13:40]Sock 9.Check first char [13:13:40]Sock 9.First char is OK [13:13:40]request: POST /json_proto HTTP/1.0 [13:13:40]Method: POST [13:13:40]URL: /json_proto [13:13:40]Method is POST - this is cgi request [13:13:40]url: /json_proto [13:13:40]query_string will be loaded in cgi processing [13:13:40]execute_cgi json_proto POST (null) [13:13:40]execute_cgi path=json_proto method=POST [13:13:40]POST find Content-Length [13:13:40]Host: 172.17.38.134:8080 [13:13:40]Content-Length: 865 [13:13:40]Content-Type: application/json [13:13:40] [13:13:40]POST finish read [13:13:40]Found Content-Length = 865 [13:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184021", "tax_sys" : 0, "items" : [ { "code": "4606532012014", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 2.000, "sum" : 126.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:40]execute_script... [13:13:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184021", "tax_sys" : 0, "items" : [ { "code": "4606532012014", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 2.000, "sum" : 126.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:40]POST & json_proto [13:13:40]process_json_proto [13:13:40]json parsed OK: [13:13:40]protocol is kg_v1.0 [13:13:40]action value=close_receipt [13:13:40]process_action close_receipt [13:13:40]cmd_close_receipt [13:13:40]MH_GetDate [13:13:40]Write to MH i2c: F0 00 00 FB 11 FB [13:13:40]Write i2c OK [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: F0 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: F0 09 00 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: F0 09 00 FB 11 00 08 88 71 66 13 9C 7C 64 FA [13:13:40]GetLastDocTimeStamp 1718715758 [13:13:40]current date 1718716424 [13:13:40]FM_GetShiftState [13:13:40]SAM_PROTO_GetShiftState [13:13:40]wFMCommunicate request_size=4 [13:13:40]MH_SAM_APDU [13:13:40]CAPDU: 80 13 01 00 [13:13:40]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [13:13:40]Write i2c OK [13:13:40]MH_I2C_Read... [13:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:40]Read from MH i2c: E2 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: E2 0E 00 [13:13:40]MH_I2C_Read... [13:13:40]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D5 [13:13:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:13:40]wFMCommunicate OK [13:13:40]SAM_PROTO_GetShiftState done [13:13:40]FM_GetShiftState done [13:13:40]opened in 1718670230 [13:13:40]opened+sec_in_day 1718756630 [13:13:40]quantity*price = 12600 [13:13:40]sum+1 = 12601 [13:13:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747073 Сигареты Richmond Royal Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 46 18.06.2024 13:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34224 ФПД: 254935273047123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131344&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34224&fm=254935273047123&tin=02508201610067®Number=0000000000092786&sum=27600 0 [13:13:41]StoreToDocumentArchive [13:13:41]shift 323 fd 34224 [13:13:41]save to /storage/0323/doc_00034224 [13:13:41]save last doc name /storage/0323/doc_00034224 to /storage/kkm_last_doc_name [13:13:41]save OK [13:13:41]Clear old archive folders... [13:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=376 [13:13:41]tlvbuf is 019F5CA0 [13:13:41]SAM_PROTO_ClearQueue [13:13:41]wFMCommunicate request_size=4 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 09 00 00 [13:13:41]Write to MH i2c: E2 08 00 09 12 80 09 00 00 00 00 00 00 8D [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [13:13:41]RAPDU: 90 00 [13:13:41]wFMCommunicate OK [13:13:41]SAM_PROTO_ClearQueue done [13:13:41]KKMCreateOFDPacket [13:13:41]OFDProtocolAddRootSTLVToBuf [13:13:41]FM_MakeSignedData [13:13:41]FM_MakeSignedData [13:13:41]SAM_PROTO_SignData [13:13:41]wFMCommunicate request_size=4 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 0D 01 02 [13:13:41]Write to MH i2c: E2 08 00 0A 12 80 0D 01 02 00 00 00 00 95 [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [13:13:41]RAPDU: 90 00 [13:13:41]wFMCommunicate OK [13:13:41]wFMCommunicate request_size=255 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 [13:13:41]Write to MH i2c: E2 02 01 0B 12 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 00 00 A0 [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [13:13:41]RAPDU: 90 00 [13:13:41]wFMCommunicate OK [13:13:41]wFMCommunicate request_size=135 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 85 00 00 35 04 06 00 E7 DC BE 64 04 53 [13:13:41]Write to MH i2c: E2 8A 00 0C 12 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 85 00 00 35 04 06 00 E7 DC BE 64 04 53 00 00 E4 [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [13:13:41]RAPDU: 90 00 [13:13:41]wFMCommunicate OK [13:13:41]wFMCommunicate request_size=4 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 0D 03 02 [13:13:41]Write to MH i2c: E2 08 00 0D 12 80 0D 03 02 00 00 00 00 9A [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 0B 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 0B 00 0D 12 00 00 5C 42 98 21 13 B9 A7 90 00 65 [13:13:41]RAPDU: 00 5C 42 98 21 13 B9 A7 90 00 [13:13:41]wFMCommunicate OK [13:13:41]SAM_PROTO_SignData done [13:13:41]FM_MakeSignedData done [13:13:41]CreateOFDProtocolMessage [13:13:41]wFMCommunicate request_size=4 [13:13:41]MH_SAM_APDU [13:13:41]CAPDU: 80 11 00 00 [13:13:41]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:41]Read from MH i2c: E2 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 17 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EF [13:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:13:41]wFMCommunicate OK [13:13:41]CreateOFDProtocolMessage done [13:13:41]OFDSenderStorePacket 34224 [13:13:41]StoreOFDPacket docnum=34224 [13:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 8C 01 00 00 93 0B 84 01 66 2F 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 85 00 00 35 04 06 00 E7 DC BE 64 04 53 00 5C 42 98 21 13 B9 A7 [13:13:41]CheckFolder [13:13:41]dirname=/storage/ofd_packets [13:13:41]CheckFolder done [13:13:41]ProducePacketName [13:13:41]name=ofd_packets/00034224 [13:13:41]NVStorageSaveData ofd_packets/00034224 [13:13:41]File name is /storage/ofd_packets/00034224 [13:13:41]Write 426 bytes [13:13:41]NVStorageSaveData done [13:13:41]OFDSenderStorePacket done [13:13:41]KKMCreateOFDPacket done [13:13:41]NVStorageSaveData kkm_last_timestamp [13:13:41]File name is /storage/kkm_last_timestamp [13:13:41]Write 4 bytes [13:13:41]NVStorageSaveData done [13:13:41]ExternCall_PrintAddStr [13:13:41]wPrintStart [13:13:41]Write to MH i2c: 01 00 00 0F 12 21 [13:13:41]Write i2c OK [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: 01 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: 01 07 00 [13:13:41]MH_I2C_Read... [13:13:41]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 FF 0F 36 [13:13:41]RasterBufferAndPrint [13:13:41]line Счет N : (3)184021 [13:13:42]line ИНН: 02508201610067 [13:13:42]line Контрольно-Кассовый Чек [13:13:42]line ПРОДАЖА [13:13:42]line Товар: 4606532012014 [13:13:42]line Перчатки Felix х/б [13:13:42]line 2.000 * 63.00 [13:13:42]line = 126.00 [13:13:42]line НДС 12% НСП 1% [13:13:42]line > о реализуемом товаре [13:13:42]line Товар: 48747073 [13:13:42]line Сигареты Richmond Royal Edition [13:13:42]line 1.000 * 150.00 [13:13:42]line = 150.00 [13:13:42]line НДС 12% НСП 1% [13:13:42]line > о реализуемом товаре [13:13:42]line ИТОГО: 276.00 [13:13:42]line НСП 1% : 2.44 [13:13:42]line НДС 12% : 29.31 [13:13:42]line Наличными: 276.00 [13:13:42]line Безнал.: 0.00 [13:13:42]line Место: АЗС № 120 "Партнер Нефть" [13:13:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:13:42]line СНО: Общий режим [13:13:42]line Чек 46 18.06.2024 13:13 [13:13:42]line Смена: 323 ФФД: 1.0 [13:13:42]line ЗНМ: 0300000172 [13:13:42]line РНМ: 0000000000092786 [13:13:42]line Версия ККМ: 001 [13:13:42]line ФМ: 0000000000875095 [13:13:42]line ФД: 34224 [13:13:42]line ФПД: 254935273047123 [13:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131344&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34224&fm=254935273047123&tin=02508201610067®Number=0000000000092786&sum=27600 [13:13:42]line 0 [13:13:42]OFD Sender: Processing packet 34224 [packets to send 8, broken 7] [13:13:42]ProducePacketName [13:13:42]name=ofd_packets/00034224 [13:13:42]OFD Sender: To server: pG, [13:13:42]CommunicateWithHost lk.salyk.kg:30040 [13:13:42]ConnectInit lk.salyk.kg [13:13:42]written 0, free lines is 4095 [13:13:42]Connected sock=10 [13:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 8C 01 00 00 93 0B 84 01 66 2F 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 38 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E 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 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 85 00 00 35 04 06 00 E7 DC BE 64 04 53 00 5C 42 98 21 13 B9 A7 [13:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F0 74 47 00 5C 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B0 85 00 00 F4 03 04 00 D7 2E 71 66 B6 04 01 00 00 97 19 01 90 15 63 E4 E8 [13:13:42]CommunicateWithHost err = 0 [13:13:42]CheckOFDResponse [13:13:42]1017 (14) - 77093643461234 [13:13:42]1041 (16) - 0000000000875095 [13:13:42]1040 (4) - 34224 [13:13:42]1012 (4) - 18.06.2024 06:53 [13:13:42]1206 (1) - 0 [13:13:42]OFD Sender: Remove packet 34224 [13:13:42]ProducePacketName [13:13:42]name=ofd_packets/00034224 [13:13:42]NVStorageDeleteData [13:13:42]Write to MH i2c: 01 00 00 3E 12 50 [13:13:42]Write i2c OK [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: 01 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: 01 07 00 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: 01 07 00 3E 12 00 00 00 00 00 95 0C F8 [13:13:42]RasterBufferAndPrint [13:13:42]line [13:13:42]line [13:13:42]line [13:13:42]line [13:13:42]line [13:13:42]written 0, free lines is 3228 [13:13:42]MH_Cut [13:13:42]Write to MH i2c: D1 01 00 45 12 01 29 [13:13:42]Write i2c OK [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: D1 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: D1 01 00 [13:13:42]MH_I2C_Read... [13:13:42]Read from MH i2c: D1 01 00 45 12 00 28 [13:13:42]Write to MH i2c: 01 00 00 46 12 58 [13:13:42]Write i2c OK [13:13:42]MH_I2C_Read... [13:13:43]OFD Sender: No OFD packet to send [13:13:43]*** Cut start [13:13:43]*** Partial cut [13:13:43]*** CUTSNS_PIN = 1 [13:13:43]*** CUTSNS_PIN = 0 [13:13:43]*** Brake cut motor [13:13:44]Read from MH i2c: 01 [13:13:44]MH_I2C_Read... [13:13:44]*** Stop cut motor [13:13:44]*** Cut end [13:13:44]Read from MH i2c: 01 07 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 FF 0F 6D [13:13:44]process_action close_receipt done [13:13:44]requested_data is exist [13:13:44]produce_requested_data [13:13:44]requested_item fm.sn is exist - process it [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 11 00 00 [13:13:44]Write to MH i2c: E2 08 00 47 12 80 11 00 00 00 00 00 00 D3 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 17 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 17 00 47 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 28 [13:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:13:44]wFMCommunicate OK [13:13:44]requested_item fd.num is exist - process it [13:13:44]SAM_PROTO_GetFieldsCounters [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 13 00 00 [13:13:44]Write to MH i2c: E2 08 00 48 12 80 13 00 00 00 00 00 00 D6 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 62 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 62 00 48 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B0 85 00 00 0E 04 04 00 43 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 03 [13:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B0 85 00 00 0E 04 04 00 43 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 [13:13:44]wFMCommunicate OK [13:13:44]SAM_PROTO_GetFieldsCounters done [13:13:44]requested_item shift.num is exist - process it [13:13:44]requested_item shift.opened is exist - process it [13:13:44]req_shift_opened [13:13:44]FM_GetShiftState [13:13:44]SAM_PROTO_GetShiftState [13:13:44]wFMCommunicate request_size=4 [13:13:44]MH_SAM_APDU [13:13:44]CAPDU: 80 13 01 00 [13:13:44]Write to MH i2c: E2 08 00 49 12 80 13 01 00 00 00 00 00 D8 [13:13:44]Write i2c OK [13:13:44]MH_I2C_Read... [13:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:44]Read from MH i2c: E2 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 0E 00 [13:13:44]MH_I2C_Read... [13:13:44]Read from MH i2c: E2 0E 00 49 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 23 [13:13:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:13:44]wFMCommunicate OK [13:13:44]SAM_PROTO_GetShiftState done [13:13:44]FM_GetShiftState done [13:13:44]req_shift_opened done [13:13:44]requested_item shift.open_date is exist - process it [13:13:44]req_shift_open_date [13:13:44]req_shift_open_date done [13:13:44]produce_requested_data done [13:13:44]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34224,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:13:44]process_action_free close_receipt [13:13:44]json_value_free [13:13:44]json_value_free done [13:13:44]process_json_proto returns [13:13:44]Send response to host [13:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34224,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:13:44]free response buf [13:13:44]execute_script done [13:13:44]execute_script returns [13:13:44]free content buf [13:13:44]Sock 9.Close socket [13:13:44]Sock 9.Thread stoped [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:21]accept exits with 7 [13:14:21]New connection [13:14:21]New thread 3067293028 created [13:14:21]Thread 3067436388 joined [13:14:21]Waiting for new connection... [13:14:21] Sock 7.Parse request [13:14:21]Sock 7.Check first char [13:14:21]Sock 7.First char is OK [13:14:21]request: POST /json_proto HTTP/1.0 [13:14:21]Method: POST [13:14:21]URL: /json_proto [13:14:21]Method is POST - this is cgi request [13:14:21]url: /json_proto [13:14:21]query_string will be loaded in cgi processing [13:14:21]execute_cgi json_proto POST (null) [13:14:21]execute_cgi path=json_proto method=POST [13:14:21]POST find Content-Length [13:14:21]Host: 172.17.38.134:8080 [13:14:21]Content-Length: 609 [13:14:21]Content-Type: application/json [13:14:21] [13:14:21]POST finish read [13:14:21]Found Content-Length = 609 [13:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184022", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:21]execute_script... [13:14: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 : (3)184022", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:21]POST & json_proto [13:14:21]process_json_proto [13:14:21]json parsed OK: [13:14:21]protocol is kg_v1.0 [13:14:21]action value=close_receipt [13:14:21]process_action close_receipt [13:14:21]cmd_close_receipt [13:14:21]MH_GetDate [13:14:21]Write to MH i2c: F0 00 00 4A 12 4B [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: F0 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: F0 09 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: F0 09 00 4A 12 00 31 88 71 66 13 9C 7C 64 73 [13:14:21]GetLastDocTimeStamp 1718716424 [13:14:21]current date 1718716465 [13:14:21]FM_GetShiftState [13:14:21]SAM_PROTO_GetShiftState [13:14:21]wFMCommunicate request_size=4 [13:14:21]MH_SAM_APDU [13:14:21]CAPDU: 80 13 01 00 [13:14:21]Write to MH i2c: E2 08 00 4B 12 80 13 01 00 00 00 00 00 DA [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:21]Read from MH i2c: E2 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 0E 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 0E 00 4B 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 25 [13:14:21]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:14:21]wFMCommunicate OK [13:14:21]SAM_PROTO_GetShiftState done [13:14:21]FM_GetShiftState done [13:14:21]opened in 1718670230 [13:14:21]opened+sec_in_day 1718756630 [13:14:21]quantity*price = 13000 [13:14:21]sum+1 = 13001 [13:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 47 18.06.2024 13:14 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34225 ФПД: 278603926818066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131425&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34225&fm=278603926818066&tin=02508201610067®Number=0000000000092786&sum=13000 0 [13:14:23]StoreToDocumentArchive [13:14:23]shift 323 fd 34225 [13:14:23]save to /storage/0323/doc_00034225 [13:14:23]save last doc name /storage/0323/doc_00034225 to /storage/kkm_last_doc_name [13:14:23]save OK [13:14:23]Clear old archive folders... [13:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=261 [13:14:23]tlvbuf is 01A2CE60 [13:14:23]SAM_PROTO_ClearQueue [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 09 00 00 [13:14:23]Write to MH i2c: E2 08 00 58 12 80 09 00 00 00 00 00 00 DC [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]SAM_PROTO_ClearQueue done [13:14:23]KKMCreateOFDPacket [13:14:23]OFDProtocolAddRootSTLVToBuf [13:14:23]FM_MakeSignedData [13:14:23]FM_MakeSignedData [13:14:23]SAM_PROTO_SignData [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 01 02 [13:14:23]Write to MH i2c: E2 08 00 59 12 80 0D 01 02 00 00 00 00 E4 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]wFMCommunicate request_size=255 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 [13:14:23]Write to MH i2c: E2 02 01 5A 12 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 00 98 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]OFD Sender: No OFD packet to send [13:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]wFMCommunicate request_size=20 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 02 02 0F 00 B1 85 00 00 35 04 06 00 FD 63 88 17 4D 12 [13:14:23]Write to MH i2c: E2 17 00 5B 12 80 0D 02 02 0F 00 00 B1 85 00 00 35 04 06 00 FD 63 88 17 4D 12 00 00 D8 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [13:14:23]RAPDU: 90 00 [13:14:23]wFMCommunicate OK [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 0D 03 02 [13:14:23]Write to MH i2c: E2 08 00 5C 12 80 0D 03 02 00 00 00 00 E9 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 0B 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 0B 00 5C 12 00 F1 AB 58 FF F5 EE E3 BE 90 00 61 [13:14:23]RAPDU: F1 AB 58 FF F5 EE E3 BE 90 00 [13:14:23]wFMCommunicate OK [13:14:23]SAM_PROTO_SignData done [13:14:23]FM_MakeSignedData done [13:14:23]CreateOFDProtocolMessage [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 11 00 00 [13:14:23]Write to MH i2c: E2 08 00 5D 12 80 11 00 00 00 00 00 00 E9 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 17 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 17 00 5D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3E [13:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:14:23]wFMCommunicate OK [13:14:23]CreateOFDProtocolMessage done [13:14:23]OFDSenderStorePacket 34225 [13:14:23]StoreOFDPacket docnum=34225 [13:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 19 01 00 00 17 46 11 01 55 0E 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 85 00 00 35 04 06 00 FD 63 88 17 4D 12 F1 AB 58 FF F5 EE E3 BE [13:14:23]CheckFolder [13:14:23]dirname=/storage/ofd_packets [13:14:23]CheckFolder done [13:14:23]ProducePacketName [13:14:23]name=ofd_packets/00034225 [13:14:23]NVStorageSaveData ofd_packets/00034225 [13:14:23]File name is /storage/ofd_packets/00034225 [13:14:23]Write 311 bytes [13:14:23]NVStorageSaveData done [13:14:23]OFDSenderStorePacket done [13:14:23]KKMCreateOFDPacket done [13:14:23]NVStorageSaveData kkm_last_timestamp [13:14:23]File name is /storage/kkm_last_timestamp [13:14:23]Write 4 bytes [13:14:23]NVStorageSaveData done [13:14:23]ExternCall_PrintAddStr [13:14:23]wPrintStart [13:14:23]Write to MH i2c: 01 00 00 5E 12 70 [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: 01 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: 01 07 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 FF 0F 85 [13:14:23]RasterBufferAndPrint [13:14:23]line Счет N : (3)184022 [13:14:23]line ИНН: 02508201610067 [13:14:23]line Контрольно-Кассовый Чек [13:14:23]line ПРОДАЖА [13:14:23]line Товар: 48741156 [13:14:23]line Сигареты LD Blue [13:14:23]line 1.000 * 130.00 [13:14:23]line = 130.00 [13:14:23]line НДС 12% НСП 1% [13:14:23]line > о реализуемом товаре [13:14:23]line ИТОГО: 130.00 [13:14:23]line НСП 1% : 1.15 [13:14:23]line НДС 12% : 13.80 [13:14:23]line Наличными: 130.00 [13:14:23]line Безнал.: 0.00 [13:14:23]line Место: АЗС № 120 "Партнер Нефть" [13:14:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:14:23]line СНО: Общий режим [13:14:23]line Чек 47 18.06.2024 13:14 [13:14:23]line Смена: 323 ФФД: 1.0 [13:14:23]line ЗНМ: 0300000172 [13:14:23]line РНМ: 0000000000092786 [13:14:23]line Версия ККМ: 001 [13:14:23]line ФМ: 0000000000875095 [13:14:23]line ФД: 34225 [13:14:23]line ФПД: 278603926818066 [13:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T131425&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34225&fm=278603926818066&tin=02508201610067®Number=0000000000092786&sum=13000 [13:14:23]line 0 [13:14:23]OFD Sender: Processing packet 34225 [packets to send 8, broken 7] [13:14:23]ProducePacketName [13:14:23]name=ofd_packets/00034225 [13:14:23]OFD Sender: To server: pG, [13:14:23]CommunicateWithHost lk.salyk.kg:30040 [13:14:23]ConnectInit lk.salyk.kg [13:14:23]written 0, free lines is 4095 [13:14:23]Connected sock=10 [13:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 19 01 00 00 17 46 11 01 55 0E 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 31 88 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 85 00 00 35 04 06 00 FD 63 88 17 4D 12 F1 AB 58 FF F5 EE E3 BE [13:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 56 96 47 00 8D 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B1 85 00 00 F4 03 04 00 01 2F 71 66 B6 04 01 00 00 AB C7 7C BD 55 07 58 49 [13:14:24]CommunicateWithHost err = 0 [13:14:24]CheckOFDResponse [13:14:24]1017 (14) - 77093643461234 [13:14:24]1041 (16) - 0000000000875095 [13:14:24]1040 (4) - 34225 [13:14:24]1012 (4) - 18.06.2024 06:53 [13:14:24]1206 (1) - 0 [13:14:24]OFD Sender: Remove packet 34225 [13:14:24]ProducePacketName [13:14:24]name=ofd_packets/00034225 [13:14:24]NVStorageDeleteData [13:14:24]Write to MH i2c: 01 00 00 86 12 98 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 86 12 00 00 00 00 00 00 0D AC [13:14:24]RasterBufferAndPrint [13:14:24]line [13:14:24]line [13:14:24]line [13:14:24]line [13:14:24]line [13:14:24]written 0, free lines is 3334 [13:14:24]MH_Cut [13:14:24]Write to MH i2c: D1 01 00 8D 12 01 71 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: D1 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: D1 01 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: D1 01 00 8D 12 00 70 [13:14:24]Write to MH i2c: 01 00 00 8E 12 A0 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]OFD Sender: No OFD packet to send [13:14:25]*** Cut start [13:14:25]*** Partial cut [13:14:25]*** CUTSNS_PIN = 1 [13:14:25]*** CUTSNS_PIN = 0 [13:14:25]*** Brake cut motor [13:14:25]Read from MH i2c: 01 [13:14:25]MH_I2C_Read... [13:14:25]*** Stop cut motor [13:14:25]*** Cut end [13:14:25]Read from MH i2c: 01 07 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 07 00 8E 12 00 00 00 00 00 FF 0F B5 [13:14:25]process_action close_receipt done [13:14:25]requested_data is exist [13:14:25]produce_requested_data [13:14:25]requested_item fm.sn is exist - process it [13:14:25]wFMCommunicate request_size=4 [13:14:25]MH_SAM_APDU [13:14:25]CAPDU: 80 11 00 00 [13:14:25]Write to MH i2c: E2 08 00 8F 12 80 11 00 00 00 00 00 00 1B [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:25]Read from MH i2c: E2 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 17 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 17 00 8F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 70 [13:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:14:25]wFMCommunicate OK [13:14:25]requested_item fd.num is exist - process it [13:14:25]SAM_PROTO_GetFieldsCounters [13:14:25]wFMCommunicate request_size=4 [13:14:25]MH_SAM_APDU [13:14:25]CAPDU: 80 13 00 00 [13:14:25]Write to MH i2c: E2 08 00 90 12 80 13 00 00 00 00 00 00 1E [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:25]Read from MH i2c: E2 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 62 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 62 00 90 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B1 85 00 00 0E 04 04 00 43 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 4F [13:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:25]wFMCommunicate OK [13:14:25]SAM_PROTO_GetFieldsCounters done [13:14:25]requested_item shift.num is exist - process it [13:14:25]requested_item shift.opened is exist - process it [13:14:25]req_shift_opened [13:14:25]FM_GetShiftState [13:14:25]SAM_PROTO_GetShiftState [13:14:25]wFMCommunicate request_size=4 [13:14:25]MH_SAM_APDU [13:14:25]CAPDU: 80 13 01 00 [13:14:25]Write to MH i2c: E2 08 00 91 12 80 13 01 00 00 00 00 00 20 [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:25]Read from MH i2c: E2 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 0E 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: E2 0E 00 91 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6B [13:14:25]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:14:25]wFMCommunicate OK [13:14:25]SAM_PROTO_GetShiftState done [13:14:25]FM_GetShiftState done [13:14:25]req_shift_opened done [13:14:25]requested_item shift.open_date is exist - process it [13:14:25]req_shift_open_date [13:14:25]req_shift_open_date done [13:14:25]produce_requested_data done [13:14:25]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34225,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:14:25]process_action_free close_receipt [13:14:25]json_value_free [13:14:25]json_value_free done [13:14:25]process_json_proto returns [13:14:25]Send response to host [13:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34225,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:14:25]free response buf [13:14:25]execute_script done [13:14:25]execute_script returns [13:14:25]free content buf [13:14:25]Sock 7.Close socket [13:14:25]Sock 7.Thread stoped [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:33:56]accept exits with 9 [13:33:56]New connection [13:33:56]New thread 3067436388 created [13:33:56]Thread 3067293028 joined [13:33:56]Waiting for new connection... [13:33:56] Sock 9.Parse request [13:33:56]Sock 9.Check first char [13:33:56]Sock 9.First char is OK [13:33:56]request: POST /json_proto HTTP/1.0 [13:33:56]Method: POST [13:33:56]URL: /json_proto [13:33:56]Method is POST - this is cgi request [13:33:56]url: /json_proto [13:33:56]query_string will be loaded in cgi processing [13:33:56]execute_cgi json_proto POST (null) [13:33:56]execute_cgi path=json_proto method=POST [13:33:56]POST find Content-Length [13:33:56]Host: 172.17.38.134:8080 [13:33:56]Content-Length: 1091 [13:33:56]Content-Type: application/json [13:33:56] [13:33:56]POST finish read [13:33:56]Found Content-Length = 1091 [13:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184023", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.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" : 566.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:56]execute_script... [13:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184023", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.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" : 566.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:56]POST & json_proto [13:33:56]process_json_proto [13:33:56]json parsed OK: [13:33:56]protocol is kg_v1.0 [13:33:56]action value=close_receipt [13:33:56]process_action close_receipt [13:33:56]cmd_close_receipt [13:33:56]MH_GetDate [13:33:56]Write to MH i2c: F0 00 00 92 12 93 [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: F0 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: F0 09 00 [13:33:56]MH_I2C_Read... [13:33:56]Read from MH i2c: F0 09 00 92 12 00 C8 8C 71 66 13 9C 7C 64 56 [13:33:56]GetLastDocTimeStamp 1718716465 [13:33:56]current date 1718717640 [13:33:56]FM_GetShiftState [13:33:56]SAM_PROTO_GetShiftState [13:33:56]wFMCommunicate request_size=4 [13:33:56]MH_SAM_APDU [13:33:56]CAPDU: 80 13 01 00 [13:33:56]Write to MH i2c: E2 08 00 93 12 80 13 01 00 00 00 00 00 22 [13:33:56]Write i2c OK [13:33:56]MH_I2C_Read... [13:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:57]Read from MH i2c: E2 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 0E 00 [13:33:57]MH_I2C_Read... [13:33:57]Read from MH i2c: E2 0E 00 93 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6D [13:33:57]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:33:57]wFMCommunicate OK [13:33:57]SAM_PROTO_GetShiftState done [13:33:57]FM_GetShiftState done [13:33:57]opened in 1718670230 [13:33:57]opened+sec_in_day 1718756630 [13:33:57]quantity*price = 22600 [13:33:57]sum+1 = 22601 [13:33:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607084351385 Бисквит Чоко пай 12шт 1.000 * 340.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 566.00 НСП 1% : 5.01 НДС 12% : 60.11 Наличными: 0.00 Безнал.: 566.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 48 18.06.2024 13:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34226 ФПД: 220052519311947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133400&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34226&fm=220052519311947&tin=02508201610067®Number=0000000000092786&sum=56600 0 [13:33:58]StoreToDocumentArchive [13:33:58]shift 323 fd 34226 [13:33:58]save to /storage/0323/doc_00034226 [13:33:58]save last doc name /storage/0323/doc_00034226 to /storage/kkm_last_doc_name [13:33:58]save OK [13:33:58]Clear old archive folders... [13:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=380 [13:33:58]tlvbuf is 019F5990 [13:33:58]SAM_PROTO_ClearQueue [13:33:58]wFMCommunicate request_size=4 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 09 00 00 [13:33:58]Write to MH i2c: E2 08 00 A0 12 80 09 00 00 00 00 00 00 24 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 A0 12 00 90 00 26 [13:33:58]RAPDU: 90 00 [13:33:58]wFMCommunicate OK [13:33:58]SAM_PROTO_ClearQueue done [13:33:58]KKMCreateOFDPacket [13:33:58]OFDProtocolAddRootSTLVToBuf [13:33:58]FM_MakeSignedData [13:33:58]FM_MakeSignedData [13:33:58]SAM_PROTO_SignData [13:33:58]wFMCommunicate request_size=4 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 0D 01 02 [13:33:58]Write to MH i2c: E2 08 00 A1 12 80 0D 01 02 00 00 00 00 2C [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 A1 12 00 90 00 27 [13:33:58]RAPDU: 90 00 [13:33:58]wFMCommunicate OK [13:33:58]wFMCommunicate request_size=255 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 01 00 00 [13:33:58]Write to MH i2c: E2 02 01 A2 12 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 01 00 00 00 00 44 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 A2 12 00 90 00 28 [13:33:58]RAPDU: 90 00 [13:33:58]wFMCommunicate OK [13:33:58]wFMCommunicate request_size=139 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 DD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C8 8C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 85 00 00 35 04 06 00 C8 22 F8 3E DA 4B [13:33:58]Write to MH i2c: E2 8E 00 A3 12 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 DD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C8 8C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 85 00 00 35 04 06 00 C8 22 F8 3E DA 4B 00 00 13 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [13:33:58]RAPDU: 90 00 [13:33:58]wFMCommunicate OK [13:33:58]wFMCommunicate request_size=4 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 0D 03 02 [13:33:58]Write to MH i2c: E2 08 00 A4 12 80 0D 03 02 00 00 00 00 31 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 0B 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 0B 00 A4 12 00 2A D8 22 D6 DC 63 47 25 90 00 D7 [13:33:58]RAPDU: 2A D8 22 D6 DC 63 47 25 90 00 [13:33:58]wFMCommunicate OK [13:33:58]SAM_PROTO_SignData done [13:33:58]FM_MakeSignedData done [13:33:58]CreateOFDProtocolMessage [13:33:58]wFMCommunicate request_size=4 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 11 00 00 [13:33:58]Write to MH i2c: E2 08 00 A5 12 80 11 00 00 00 00 00 00 31 [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 17 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 17 00 A5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 86 [13:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:33:58]wFMCommunicate OK [13:33:58]CreateOFDProtocolMessage done [13:33:58]OFDSenderStorePacket 34226 [13:33:58]StoreOFDPacket docnum=34226 [13:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 01 00 00 F7 5B 88 01 37 0F 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 DD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C8 8C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 85 00 00 35 04 06 00 C8 22 F8 3E DA 4B 2A D8 22 D6 DC 63 47 25 [13:33:58]CheckFolder [13:33:58]dirname=/storage/ofd_packets [13:33:58]CheckFolder done [13:33:58]ProducePacketName [13:33:58]name=ofd_packets/00034226 [13:33:58]NVStorageSaveData ofd_packets/00034226 [13:33:58]File name is /storage/ofd_packets/00034226 [13:33:58]Write 430 bytes [13:33:59]NVStorageSaveData done [13:33:59]OFDSenderStorePacket done [13:33:59]KKMCreateOFDPacket done [13:33:59]NVStorageSaveData kkm_last_timestamp [13:33:59]File name is /storage/kkm_last_timestamp [13:33:59]Write 4 bytes [13:33:59]NVStorageSaveData done [13:33:59]ExternCall_PrintAddStr [13:33:59]wPrintStart [13:33:59]Write to MH i2c: 01 00 00 A6 12 B8 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 07 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 07 00 A6 12 00 00 00 00 00 FF 0F CD [13:33:59]RasterBufferAndPrint [13:33:59]line Счет N : (3)184023 [13:33:59]line ИНН: 02508201610067 [13:33:59]line Контрольно-Кассовый Чек [13:33:59]line ПРОДАЖА [13:33:59]line Товар: 5449000006271 [13:33:59]line Напиток Фанта 1л [13:33:59]line 2.000 * 113.00 [13:33:59]line = 226.00 [13:33:59]line НДС 12% НСП 1% [13:33:59]line > о реализуемом товаре [13:33:59]line Товар: 4607084351385 [13:33:59]line Бисквит Чоко пай 12шт [13:33:59]line 1.000 * 340.00 [13:33:59]line = 340.00 [13:33:59]line НДС 12% НСП 1% [13:33:59]line > о реализуемом товаре [13:33:59]line ИТОГО: 566.00 [13:33:59]line НСП 1% : 5.01 [13:33:59]line НДС 12% : 60.11 [13:33:59]line Наличными: 0.00 [13:33:59]line Безнал.: 566.00 [13:33:59]line Место: АЗС № 120 "Партнер Нефть" [13:33:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:33:59]line СНО: Общий режим [13:33:59]line Чек 48 18.06.2024 13:34 [13:33:59]line Смена: 323 ФФД: 1.0 [13:33:59]line ЗНМ: 0300000172 [13:33:59]line РНМ: 0000000000092786 [13:33:59]line Версия ККМ: 001 [13:33:59]line Платежная система: Бакай Банк [13:33:59]line ФМ: 0000000000875095 [13:33:59]line ФД: 34226 [13:33:59]line ФПД: 220052519311947 [13:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T133400&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34226&fm=220052519311947&tin=02508201610067®Number=0000000000092786&sum=56600 [13:33:59]OFD Sender: Processing packet 34226 [packets to send 8, broken 7] [13:33:59]ProducePacketName [13:33:59]name=ofd_packets/00034226 [13:33:59]OFD Sender: To server: pG, [13:33:59]CommunicateWithHost lk.salyk.kg:30040 [13:33:59]ConnectInit lk.salyk.kg [13:33:59]line 0 [13:33:59]written 0, free lines is 4095 [13:33:59]Connected sock=10 [13:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 01 00 00 F7 5B 88 01 37 0F 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 DD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C8 8C 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 85 00 00 35 04 06 00 C8 22 F8 3E DA 4B 2A D8 22 D6 DC 63 47 25 [13:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D1 0A 47 00 90 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B2 85 00 00 F4 03 04 00 98 33 71 66 B6 04 01 00 00 5B DA D8 9B 96 E7 91 29 [13:33:59]CommunicateWithHost err = 0 [13:33:59]CheckOFDResponse [13:33:59]1017 (14) - 77093643461234 [13:33:59]1041 (16) - 0000000000875095 [13:33:59]1040 (4) - 34226 [13:33:59]1012 (4) - 18.06.2024 07:13 [13:33:59]1206 (1) - 0 [13:33:59]OFD Sender: Remove packet 34226 [13:33:59]ProducePacketName [13:33:59]name=ofd_packets/00034226 [13:33:59]NVStorageDeleteData [13:33:59]Write to MH i2c: 01 00 00 D6 12 E8 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 07 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 84 0C 7F [13:33:59]RasterBufferAndPrint [13:33:59]line [13:33:59]line [13:33:59]line [13:33:59]line [13:33:59]line [13:33:59]written 0, free lines is 3211 [13:33:59]MH_Cut [13:33:59]Write to MH i2c: D1 01 00 DD 12 01 C1 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: D1 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: D1 01 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: D1 01 00 DD 12 00 C0 [13:33:59]Write to MH i2c: 01 00 00 DE 12 F0 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:34:00]OFD Sender: No OFD packet to send [13:34:00]*** Cut start [13:34:00]*** Partial cut [13:34:00]*** CUTSNS_PIN = 1 [13:34:00]*** CUTSNS_PIN = 0 [13:34:00]*** Brake cut motor [13:34:01]Read from MH i2c: 01 [13:34:01]MH_I2C_Read... [13:34:01]*** Stop cut motor [13:34:01]*** Cut end [13:34:01]Read from MH i2c: 01 07 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: 01 07 00 DE 12 00 00 00 00 00 FF 0F 05 [13:34:01]process_action close_receipt done [13:34:01]requested_data is exist [13:34:01]produce_requested_data [13:34:01]requested_item fm.sn is exist - process it [13:34:01]wFMCommunicate request_size=4 [13:34:01]MH_SAM_APDU [13:34:01]CAPDU: 80 11 00 00 [13:34:01]Write to MH i2c: E2 08 00 DF 12 80 11 00 00 00 00 00 00 6B [13:34:01]Write i2c OK [13:34:01]MH_I2C_Read... [13:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:01]Read from MH i2c: E2 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 17 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 17 00 DF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C0 [13:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:34:01]wFMCommunicate OK [13:34:01]requested_item fd.num is exist - process it [13:34:01]SAM_PROTO_GetFieldsCounters [13:34:01]wFMCommunicate request_size=4 [13:34:01]MH_SAM_APDU [13:34:01]CAPDU: 80 13 00 00 [13:34:01]Write to MH i2c: E2 08 00 E0 12 80 13 00 00 00 00 00 00 6E [13:34:01]Write i2c OK [13:34:01]MH_I2C_Read... [13:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:01]Read from MH i2c: E2 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 62 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 62 00 E0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B2 85 00 00 0E 04 04 00 43 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 A3 [13:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B2 85 00 00 0E 04 04 00 43 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 [13:34:01]wFMCommunicate OK [13:34:01]SAM_PROTO_GetFieldsCounters done [13:34:01]requested_item shift.num is exist - process it [13:34:01]requested_item shift.opened is exist - process it [13:34:01]req_shift_opened [13:34:01]FM_GetShiftState [13:34:01]SAM_PROTO_GetShiftState [13:34:01]wFMCommunicate request_size=4 [13:34:01]MH_SAM_APDU [13:34:01]CAPDU: 80 13 01 00 [13:34:01]Write to MH i2c: E2 08 00 E1 12 80 13 01 00 00 00 00 00 70 [13:34:01]Write i2c OK [13:34:01]MH_I2C_Read... [13:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:01]Read from MH i2c: E2 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 0E 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 0E 00 E1 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 BB [13:34:01]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:34:01]wFMCommunicate OK [13:34:01]SAM_PROTO_GetShiftState done [13:34:01]FM_GetShiftState done [13:34:01]req_shift_opened done [13:34:01]requested_item shift.open_date is exist - process it [13:34:01]req_shift_open_date [13:34:01]req_shift_open_date done [13:34:01]produce_requested_data done [13:34:01]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34226,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:34:01]process_action_free close_receipt [13:34:01]json_value_free [13:34:01]json_value_free done [13:34:01]process_json_proto returns [13:34:01]Send response to host [13:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34226,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:34:01]free response buf [13:34:01]execute_script done [13:34:01]execute_script returns [13:34:01]free content buf [13:34:01]Sock 9.Close socket [13:34:01]Sock 9.Thread stoped [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:36]accept exits with 7 [13:55:36]New connection [13:55:36]New thread 3067293028 created [13:55:36]Thread 3067436388 joined [13:55:36]Waiting for new connection... [13:55:36] Sock 7.Parse request [13:55:36]Sock 7.Check first char [13:55:36]Sock 7.First char is OK [13:55:36]request: POST /json_proto HTTP/1.0 [13:55:36]Method: POST [13:55:36]URL: /json_proto [13:55:36]Method is POST - this is cgi request [13:55:36]url: /json_proto [13:55:36]query_string will be loaded in cgi processing [13:55:36]execute_cgi json_proto POST (null) [13:55:36]execute_cgi path=json_proto method=POST [13:55:36]POST find Content-Length [13:55:36]Host: 172.17.38.134:8080 [13:55:36]Content-Length: 630 [13:55:36]Content-Type: application/json [13:55:36] [13:55:36]POST finish read [13:55:36]Found Content-Length = 630 [13:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184024", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]execute_script... [13:55: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 : (3)184024", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]POST & json_proto [13:55:36]process_json_proto [13:55:36]json parsed OK: [13:55:36]protocol is kg_v1.0 [13:55:36]action value=close_receipt [13:55:36]process_action close_receipt [13:55:36]cmd_close_receipt [13:55:36]MH_GetDate [13:55:36]Write to MH i2c: F0 00 00 E2 12 E3 [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 E2 12 00 DC 91 71 66 13 9C 7C 64 BF [13:55:36]GetLastDocTimeStamp 1718717640 [13:55:36]current date 1718718940 [13:55:36]FM_GetShiftState [13:55:36]SAM_PROTO_GetShiftState [13:55:36]wFMCommunicate request_size=4 [13:55:36]MH_SAM_APDU [13:55:36]CAPDU: 80 13 01 00 [13:55:36]Write to MH i2c: E2 08 00 E3 12 80 13 01 00 00 00 00 00 72 [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:36]Read from MH i2c: E2 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 E3 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 BD [13:55:36]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:55:36]wFMCommunicate OK [13:55:36]SAM_PROTO_GetShiftState done [13:55:36]FM_GetShiftState done [13:55:36]opened in 1718670230 [13:55:36]opened+sec_in_day 1718756630 [13:55:36]quantity*price = 5000 [13:55:36]sum+1 = 5001 [13:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 49 18.06.2024 13:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34227 ФПД: 182244257474783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135540&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34227&fm=182244257474783&tin=02508201610067®Number=0000000000092786&sum=5000 0 [13:55:37]StoreToDocumentArchive [13:55:37]shift 323 fd 34227 [13:55:37]save to /storage/0323/doc_00034227 [13:55:37]save last doc name /storage/0323/doc_00034227 to /storage/kkm_last_doc_name [13:55:37]save OK [13:55:37]Clear old archive folders... [13:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:55:37]tlvbuf is 01A3BFD0 [13:55:37]SAM_PROTO_ClearQueue [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 09 00 00 [13:55:37]Write to MH i2c: E2 08 00 F0 12 80 09 00 00 00 00 00 00 74 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_ClearQueue done [13:55:37]KKMCreateOFDPacket [13:55:37]OFDProtocolAddRootSTLVToBuf [13:55:37]FM_MakeSignedData [13:55:37]FM_MakeSignedData [13:55:37]SAM_PROTO_SignData [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 01 02 [13:55:37]Write to MH i2c: E2 08 00 F1 12 80 0D 01 02 00 00 00 00 7C [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=255 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC 91 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:55:37]Write to MH i2c: E2 02 01 F2 12 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC 91 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 53 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [13:55:38]RAPDU: 90 00 [13:55:38]wFMCommunicate OK [13:55:38]wFMCommunicate request_size=28 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 0D 02 02 17 37 35 30 39 35 10 04 04 00 B3 85 00 00 35 04 06 00 A5 C0 0C 3A A8 DF [13:55:38]Write to MH i2c: E2 1F 00 F3 12 80 0D 02 02 17 00 37 35 30 39 35 10 04 04 00 B3 85 00 00 35 04 06 00 A5 C0 0C 3A A8 DF 00 00 78 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [13:55:38]RAPDU: 90 00 [13:55:38]wFMCommunicate OK [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 0D 03 02 [13:55:38]Write to MH i2c: E2 08 00 F4 12 80 0D 03 02 00 00 00 00 81 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0B 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0B 00 F4 12 00 91 4E FD E4 1C FF 54 7C 90 00 2D [13:55:38]RAPDU: 91 4E FD E4 1C FF 54 7C 90 00 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_SignData done [13:55:38]FM_MakeSignedData done [13:55:38]CreateOFDProtocolMessage [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 11 00 00 [13:55:38]Write to MH i2c: E2 08 00 F5 12 80 11 00 00 00 00 00 00 81 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 17 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 17 00 F5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D6 [13:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:55:38]wFMCommunicate OK [13:55:38]CreateOFDProtocolMessage done [13:55:38]OFDSenderStorePacket 34227 [13:55:38]StoreOFDPacket docnum=34227 [13:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 A9 E7 19 01 C6 EF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC 91 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 85 00 00 35 04 06 00 A5 C0 0C 3A A8 DF 91 4E FD E4 1C FF 54 7C [13:55:38]CheckFolder [13:55:38]dirname=/storage/ofd_packets [13:55:38]CheckFolder done [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00034227 [13:55:38]NVStorageSaveData ofd_packets/00034227 [13:55:38]File name is /storage/ofd_packets/00034227 [13:55:38]Write 319 bytes [13:55:38]NVStorageSaveData done [13:55:38]OFDSenderStorePacket done [13:55:38]KKMCreateOFDPacket done [13:55:38]NVStorageSaveData kkm_last_timestamp [13:55:38]File name is /storage/kkm_last_timestamp [13:55:38]Write 4 bytes [13:55:38]NVStorageSaveData done [13:55:38]ExternCall_PrintAddStr [13:55:38]wPrintStart [13:55:38]Write to MH i2c: 01 00 00 F6 12 08 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 FF 0F 1D [13:55:38]RasterBufferAndPrint [13:55:38]line Счет N : (3)184024 [13:55:38]line ИНН: 02508201610067 [13:55:38]line Контрольно-Кассовый Чек [13:55:38]line ПРОДАЖА [13:55:38]line Товар: 4700000160358 [13:55:38]line Вода Легенда 1л [13:55:38]line 1.000 * 50.00 [13:55:38]line = 50.00 [13:55:38]line НДС 12% НСП 1% [13:55:38]line > о реализуемом товаре [13:55:38]line ИТОГО: 50.00 [13:55:38]line НСП 1% : 0.44 [13:55:38]line НДС 12% : 5.31 [13:55:38]line Наличными: 50.00 [13:55:38]line Безнал.: 0.00 [13:55:38]line Место: АЗС № 120 "Партнер Нефть" [13:55:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:55:38]line СНО: Общий режим [13:55:38]line Чек 49 18.06.2024 13:55 [13:55:38]line Смена: 323 ФФД: 1.0 [13:55:38]line ЗНМ: 0300000172 [13:55:38]line РНМ: 0000000000092786 [13:55:38]line Версия ККМ: 001 [13:55:38]line ФМ: 0000000000875095 [13:55:38]line ФД: 34227 [13:55:38]line ФПД: 182244257474783 [13:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135540&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34227&fm=182244257474783&tin=02508201610067®Number=0000000000092786&sum=5000 [13:55:38]line 0 [13:55:38]OFD Sender: Processing packet 34227 [packets to send 8, broken 7] [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00034227 [13:55:38]OFD Sender: To server: pG, [13:55:38]CommunicateWithHost lk.salyk.kg:30040 [13:55:38]ConnectInit lk.salyk.kg [13:55:38]written 0, free lines is 4095 [13:55:38]Connected sock=10 [13:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 A9 E7 19 01 C6 EF 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 DC 91 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 85 00 00 35 04 06 00 A5 C0 0C 3A A8 DF 91 4E FD E4 1C FF 54 7C [13:55:39]Write to MH i2c: 01 00 00 1E 13 31 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: 01 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: 01 07 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 F6 0C 3A [13:55:39]RasterBufferAndPrint [13:55:39]line [13:55:39]line [13:55:39]line [13:55:39]line [13:55:39]line [13:55:39]written 0, free lines is 3325 [13:55:39]MH_Cut [13:55:39]Write to MH i2c: D1 01 00 25 13 01 0A [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: D1 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: D1 01 00 [13:55:39]MH_I2C_Read... [13:55:39]Read from MH i2c: D1 01 00 25 13 00 09 [13:55:39]Write to MH i2c: 01 00 00 26 13 39 [13:55:39]Write i2c OK [13:55:39]MH_I2C_Read... [13:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 39 44 47 00 70 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B3 85 00 00 F4 03 04 00 AC 38 71 66 B6 04 01 00 00 2E 42 CC C0 67 EC 6D 2F [13:55:39]CommunicateWithHost err = 0 [13:55:39]CheckOFDResponse [13:55:39]1017 (14) - 77093643461234 [13:55:39]1041 (16) - 0000000000875095 [13:55:39]1040 (4) - 34227 [13:55:39]1012 (4) - 18.06.2024 07:35 [13:55:39]1206 (1) - 0 [13:55:39]OFD Sender: Remove packet 34227 [13:55:39]ProducePacketName [13:55:39]name=ofd_packets/00034227 [13:55:39]NVStorageDeleteData [13:55:39]OFD Sender: No OFD packet to send [13:55:39]*** Cut start [13:55:39]*** Partial cut [13:55:39]*** CUTSNS_PIN = 1 [13:55:39]*** CUTSNS_PIN = 0 [13:55:40]*** Brake cut motor [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]*** Stop cut motor [13:55:40]*** Cut end [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 26 13 00 00 00 00 00 FF 0F 4E [13:55:40]process_action close_receipt done [13:55:40]requested_data is exist [13:55:40]produce_requested_data [13:55:40]requested_item fm.sn is exist - process it [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 11 00 00 [13:55:40]Write to MH i2c: E2 08 00 27 13 80 11 00 00 00 00 00 00 B4 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:40]Read from MH i2c: E2 17 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 27 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 09 [13:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:55:40]wFMCommunicate OK [13:55:40]requested_item fd.num is exist - process it [13:55:40]SAM_PROTO_GetFieldsCounters [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 13 00 00 [13:55:40]Write to MH i2c: E2 08 00 28 13 80 13 00 00 00 00 00 00 B7 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 62 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 62 00 28 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B3 85 00 00 0E 04 04 00 43 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 F0 [13:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B3 85 00 00 0E 04 04 00 43 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 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_GetFieldsCounters done [13:55:40]requested_item shift.num is exist - process it [13:55:40]requested_item shift.opened is exist - process it [13:55:40]req_shift_opened [13:55:40]FM_GetShiftState [13:55:40]SAM_PROTO_GetShiftState [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 13 01 00 [13:55:40]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0E 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 04 [13:55:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_GetShiftState done [13:55:40]FM_GetShiftState done [13:55:40]req_shift_opened done [13:55:40]requested_item shift.open_date is exist - process it [13:55:40]req_shift_open_date [13:55:40]req_shift_open_date done [13:55:40]produce_requested_data done [13:55:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34227,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:55:40]process_action_free close_receipt [13:55:40]json_value_free [13:55:40]json_value_free done [13:55:40]process_json_proto returns [13:55:40]Send response to host [13:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34227,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:55:40]free response buf [13:55:40]execute_script done [13:55:40]execute_script returns [13:55:40]free content buf [13:55:40]Sock 7.Close socket [13:55:40]Sock 7.Thread stoped [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:03]accept exits with 9 [13:59:03]New connection [13:59:03]New thread 3067436388 created [13:59:03]Thread 3067293028 joined [13:59:03]Waiting for new connection... [13:59:03] Sock 9.Parse request [13:59:03]Sock 9.Check first char [13:59:03]Sock 9.First char is OK [13:59:03]request: POST /json_proto HTTP/1.0 [13:59:03]Method: POST [13:59:03]URL: /json_proto [13:59:03]Method is POST - this is cgi request [13:59:03]url: /json_proto [13:59:03]query_string will be loaded in cgi processing [13:59:03]execute_cgi json_proto POST (null) [13:59:03]execute_cgi path=json_proto method=POST [13:59:03]POST find Content-Length [13:59:03]Host: 172.17.38.134:8080 [13:59:03]Content-Length: 646 [13:59:03]Content-Type: application/json [13:59:03] [13:59:03]POST finish read [13:59:03]Found Content-Length = 646 [13:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184025", "tax_sys" : 0, "items" : [ { "code": "6921207777820", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:03]execute_script... [13:59:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184025", "tax_sys" : 0, "items" : [ { "code": "6921207777820", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:03]POST & json_proto [13:59:03]process_json_proto [13:59:03]json parsed OK: [13:59:03]protocol is kg_v1.0 [13:59:03]action value=close_receipt [13:59:03]process_action close_receipt [13:59:03]cmd_close_receipt [13:59:03]MH_GetDate [13:59:03]Write to MH i2c: F0 00 00 2A 13 2C [13:59:03]Write i2c OK [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: F0 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: F0 09 00 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: F0 09 00 2A 13 00 AB 92 71 66 13 9C 7C 64 D8 [13:59:03]GetLastDocTimeStamp 1718718940 [13:59:03]current date 1718719147 [13:59:03]FM_GetShiftState [13:59:03]SAM_PROTO_GetShiftState [13:59:03]wFMCommunicate request_size=4 [13:59:03]MH_SAM_APDU [13:59:03]CAPDU: 80 13 01 00 [13:59:03]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [13:59:03]Write i2c OK [13:59:03]MH_I2C_Read... [13:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:03]Read from MH i2c: E2 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 0E 00 [13:59:03]MH_I2C_Read... [13:59:03]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 06 [13:59:03]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:59:03]wFMCommunicate OK [13:59:03]SAM_PROTO_GetShiftState done [13:59:03]FM_GetShiftState done [13:59:03]opened in 1718670230 [13:59:03]opened+sec_in_day 1718756630 [13:59:03]quantity*price = 39000 [13:59:03]sum+1 = 39001 [13:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 50 18.06.2024 13:59 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34228 ФПД: 178015432787755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135907&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34228&fm=178015432787755&tin=02508201610067®Number=0000000000092786&sum=39000 0 [13:59:04]StoreToDocumentArchive [13:59:04]shift 323 fd 34228 [13:59:04]save to /storage/0323/doc_00034228 [13:59:04]save last doc name /storage/0323/doc_00034228 to /storage/kkm_last_doc_name [13:59:04]save OK [13:59:04]Clear old archive folders... [13:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:59:04]tlvbuf is 01A35B70 [13:59:04]SAM_PROTO_ClearQueue [13:59:04]wFMCommunicate request_size=4 [13:59:04]MH_SAM_APDU [13:59:04]CAPDU: 80 09 00 00 [13:59:04]Write to MH i2c: E2 08 00 38 13 80 09 00 00 00 00 00 00 BD [13:59:04]Write i2c OK [13:59:04]MH_I2C_Read... [13:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:04]Read from MH i2c: E2 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 03 00 [13:59:04]MH_I2C_Read... [13:59:04]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [13:59:04]RAPDU: 90 00 [13:59:04]wFMCommunicate OK [13:59:04]SAM_PROTO_ClearQueue done [13:59:04]KKMCreateOFDPacket [13:59:04]OFDProtocolAddRootSTLVToBuf [13:59:04]FM_MakeSignedData [13:59:04]FM_MakeSignedData [13:59:04]SAM_PROTO_SignData [13:59:04]wFMCommunicate request_size=4 [13:59:04]MH_SAM_APDU [13:59:04]CAPDU: 80 0D 01 02 [13:59:04]Write to MH i2c: E2 08 00 39 13 80 0D 01 02 00 00 00 00 C5 [13:59:04]Write i2c OK [13:59:04]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 03 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [13:59:05]RAPDU: 90 00 [13:59:05]wFMCommunicate OK [13:59:05]wFMCommunicate request_size=255 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB 92 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 [13:59:05]Write to MH i2c: E2 02 01 3A 13 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB 92 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 00 00 91 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 03 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [13:59:05]RAPDU: 90 00 [13:59:05]wFMCommunicate OK [13:59:05]wFMCommunicate request_size=37 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 85 00 00 35 04 06 00 A1 E7 72 A2 C7 2B [13:59:05]Write to MH i2c: E2 28 00 3B 13 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 85 00 00 35 04 06 00 A1 E7 72 A2 C7 2B 00 00 E8 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 03 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [13:59:05]RAPDU: 90 00 [13:59:05]wFMCommunicate OK [13:59:05]wFMCommunicate request_size=4 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 0D 03 02 [13:59:05]Write to MH i2c: E2 08 00 3C 13 80 0D 03 02 00 00 00 00 CA [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0B 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0B 00 3C 13 00 8D 90 C2 97 C3 9D 54 FF 90 00 F4 [13:59:05]RAPDU: 8D 90 C2 97 C3 9D 54 FF 90 00 [13:59:05]wFMCommunicate OK [13:59:05]SAM_PROTO_SignData done [13:59:05]FM_MakeSignedData done [13:59:05]CreateOFDProtocolMessage [13:59:05]wFMCommunicate request_size=4 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 11 00 00 [13:59:05]Write to MH i2c: E2 08 00 3D 13 80 11 00 00 00 00 00 00 CA [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 17 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 17 00 3D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1F [13:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:59:05]wFMCommunicate OK [13:59:05]CreateOFDProtocolMessage done [13:59:05]OFDSenderStorePacket 34228 [13:59:05]StoreOFDPacket docnum=34228 [13:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 F3 0E 22 01 B7 D4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB 92 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 85 00 00 35 04 06 00 A1 E7 72 A2 C7 2B 8D 90 C2 97 C3 9D 54 FF [13:59:05]CheckFolder [13:59:05]dirname=/storage/ofd_packets [13:59:05]CheckFolder done [13:59:05]ProducePacketName [13:59:05]name=ofd_packets/00034228 [13:59:05]NVStorageSaveData ofd_packets/00034228 [13:59:05]File name is /storage/ofd_packets/00034228 [13:59:05]Write 328 bytes [13:59:05]NVStorageSaveData done [13:59:05]OFDSenderStorePacket done [13:59:05]KKMCreateOFDPacket done [13:59:05]NVStorageSaveData kkm_last_timestamp [13:59:05]File name is /storage/kkm_last_timestamp [13:59:05]Write 4 bytes [13:59:05]NVStorageSaveData done [13:59:05]ExternCall_PrintAddStr [13:59:05]wPrintStart [13:59:05]Write to MH i2c: 01 00 00 3E 13 51 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: 01 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: 01 07 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 FF 0F 66 [13:59:05]RasterBufferAndPrint [13:59:05]line Счет N : (3)184025 [13:59:05]line ИНН: 02508201610067 [13:59:05]line Контрольно-Кассовый Чек [13:59:05]line ПРОДАЖА [13:59:05]line Товар: 6921207777820 [13:59:05]line Презерватив Vie Tex 3шт [13:59:05]line 3.000 * 130.00 [13:59:05]line = 390.00 [13:59:05]line НДС 12% НСП 1% [13:59:05]line > о реализуемом товаре [13:59:05]line ИТОГО: 390.00 [13:59:05]line НСП 1% : 3.45 [13:59:05]line НДС 12% : 41.42 [13:59:05]line Наличными: 390.00 [13:59:05]line Безнал.: 0.00 [13:59:05]line Место: АЗС № 120 "Партнер Нефть" [13:59:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:59:05]line СНО: Общий режим [13:59:05]line Чек 50 18.06.2024 13:59 [13:59:05]line Смена: 323 ФФД: 1.0 [13:59:05]line ЗНМ: 0300000172 [13:59:05]line РНМ: 0000000000092786 [13:59:05]line Версия ККМ: 001 [13:59:05]line ФМ: 0000000000875095 [13:59:05]line ФД: 34228 [13:59:05]line ФПД: 178015432787755 [13:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T135907&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34228&fm=178015432787755&tin=02508201610067®Number=0000000000092786&sum=39000 [13:59:05]line 0 [13:59:05]OFD Sender: Processing packet 34228 [packets to send 8, broken 7] [13:59:05]ProducePacketName [13:59:05]name=ofd_packets/00034228 [13:59:05]OFD Sender: To server: pG, [13:59:05]CommunicateWithHost lk.salyk.kg:30040 [13:59:05]ConnectInit lk.salyk.kg [13:59:05]written 0, free lines is 4095 [13:59:05]Connected sock=10 [13:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 F3 0E 22 01 B7 D4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 37 38 32 30 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 AB 92 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 85 00 00 35 04 06 00 A1 E7 72 A2 C7 2B 8D 90 C2 97 C3 9D 54 FF [13:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 99 8B 47 00 8C 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B4 85 00 00 F4 03 04 00 7B 39 71 66 B6 04 01 00 00 1C 70 8A 82 E7 B2 0F 28 [13:59:06]CommunicateWithHost err = 0 [13:59:06]CheckOFDResponse [13:59:06]1017 (14) - 77093643461234 [13:59:06]1041 (16) - 0000000000875095 [13:59:06]1040 (4) - 34228 [13:59:06]1012 (4) - 18.06.2024 07:38 [13:59:06]1206 (1) - 0 [13:59:06]OFD Sender: Remove packet 34228 [13:59:06]ProducePacketName [13:59:06]name=ofd_packets/00034228 [13:59:06]NVStorageDeleteData [13:59:06]Write to MH i2c: 01 00 00 66 13 79 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: 01 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: 01 07 00 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: 01 07 00 66 13 00 00 00 00 00 FE 0C 8A [13:59:06]RasterBufferAndPrint [13:59:06]line [13:59:06]line [13:59:06]line [13:59:06]line [13:59:06]line [13:59:06]written 0, free lines is 3334 [13:59:06]MH_Cut [13:59:06]Write to MH i2c: D1 01 00 6D 13 01 52 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: D1 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: D1 01 00 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: D1 01 00 6D 13 00 51 [13:59:06]Write to MH i2c: 01 00 00 6E 13 81 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]OFD Sender: No OFD packet to send [13:59:06]*** Cut start [13:59:06]*** Partial cut [13:59:06]*** CUTSNS_PIN = 1 [13:59:07]*** CUTSNS_PIN = 0 [13:59:07]*** Brake cut motor [13:59:07]Read from MH i2c: 01 [13:59:07]MH_I2C_Read... [13:59:07]*** Stop cut motor [13:59:07]*** Cut end [13:59:07]Read from MH i2c: 01 07 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 FF 0F 96 [13:59:07]process_action close_receipt done [13:59:07]requested_data is exist [13:59:07]produce_requested_data [13:59:07]requested_item fm.sn is exist - process it [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 11 00 00 [13:59:07]Write to MH i2c: E2 08 00 6F 13 80 11 00 00 00 00 00 00 FC [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 6F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 51 [13:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [13:59:07]wFMCommunicate OK [13:59:07]requested_item fd.num is exist - process it [13:59:07]SAM_PROTO_GetFieldsCounters [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 13 00 00 [13:59:07]Write to MH i2c: E2 08 00 70 13 80 13 00 00 00 00 00 00 FF [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 62 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 62 00 70 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B4 85 00 00 0E 04 04 00 43 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 3C [13:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B4 85 00 00 0E 04 04 00 43 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 [13:59:07]wFMCommunicate OK [13:59:07]SAM_PROTO_GetFieldsCounters done [13:59:07]requested_item shift.num is exist - process it [13:59:07]requested_item shift.opened is exist - process it [13:59:07]req_shift_opened [13:59:07]FM_GetShiftState [13:59:07]SAM_PROTO_GetShiftState [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 13 01 00 [13:59:07]Write to MH i2c: E2 08 00 71 13 80 13 01 00 00 00 00 00 01 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0E 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0E 00 71 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 4C [13:59:07]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [13:59:07]wFMCommunicate OK [13:59:07]SAM_PROTO_GetShiftState done [13:59:07]FM_GetShiftState done [13:59:07]req_shift_opened done [13:59:07]requested_item shift.open_date is exist - process it [13:59:07]req_shift_open_date [13:59:07]req_shift_open_date done [13:59:07]produce_requested_data done [13:59:07]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34228,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [13:59:07]process_action_free close_receipt [13:59:07]json_value_free [13:59:07]json_value_free done [13:59:07]process_json_proto returns [13:59:07]Send response to host [13:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34228,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [13:59:07]free response buf [13:59:07]execute_script done [13:59:07]execute_script returns [13:59:07]free content buf [13:59:07]Sock 9.Close socket [13:59:07]Sock 9.Thread stoped [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:17:58]accept exits with 7 [14:17:58]New connection [14:17:58]New thread 3067293028 created [14:17:58]Thread 3067436388 joined [14:17:58]Waiting for new connection... [14:17:58] Sock 7.Parse request [14:17:58]Sock 7.Check first char [14:17:58]Sock 7.First char is OK [14:17:58]request: POST /json_proto HTTP/1.0 [14:17:58]Method: POST [14:17:58]URL: /json_proto [14:17:58]Method is POST - this is cgi request [14:17:58]url: /json_proto [14:17:58]query_string will be loaded in cgi processing [14:17:58]execute_cgi json_proto POST (null) [14:17:58]execute_cgi path=json_proto method=POST [14:17:58]POST find Content-Length [14:17:58]Host: 172.17.38.134:8080 [14:17:58]Content-Length: 1197 [14:17:58]Content-Type: application/json [14:17:58] [14:17:58]POST finish read [14:17:58]Found Content-Length = 1197 [14:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672603\u000A18.06.2024 13:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 200.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 13280.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\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:58]execute_script... [14:17:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672603\u000A18.06.2024 13:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 200.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 13280.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\u000A03082\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:58]POST & json_proto [14:17:58]process_json_proto [14:17:58]json parsed OK: [14:17:58]protocol is kg_v1.0 [14:17:58]action value=print_text [14:17:58]process_action print_text [14:17:58]cmd_print_text [14:17:58]ExternCall_PrintAddStr [14:17:58]wPrintStart [14:17:58]Write to MH i2c: 01 00 00 72 13 85 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 72 13 00 00 00 00 00 FF 0F 9A [14:17:58]RasterBufferAndPrint [14:17:58]line *****ТОВАРНЫЙ ЧЕК***** [14:17:58]line АЗС 120 [14:17:58]line Партнер нефть [14:17:58]line 02508201610067 [14:17:58]line Кассир : Асанбаев Н. [14:17:58]line Счет N : (1)672603 [14:17:58]line 18.06.2024 13:56 [14:17:58]line ПРОДАЖА [14:17:58]line ТРК (МРК, ГНК): 42 [14:17:58]line Вид ГСМ : 2710124130 [14:17:58]line Аи-92-К-5 [14:17:58]line 200.000 x 66.40 [14:17:58]line ИТОГ: 13280.00 [14:17:58]line Тип оплаты: Талоны: Топливная Карта [14:17:58]line 03082 [14:17:58]line ______________________ [14:17:58]line (подпись) [14:17:58]written 0, free lines is 4095 [14:17:58]Write to MH i2c: 01 00 00 86 13 99 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: 01 07 00 86 13 00 00 00 00 00 11 0E BF [14:17:58]RasterBufferAndPrint [14:17:58]line [14:17:58]line [14:17:58]line [14:17:58]line [14:17:58]line [14:17:58]written 0, free lines is 3603 [14:17:58]MH_Cut [14:17:58]Write to MH i2c: D1 01 00 8D 13 01 72 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: D1 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: D1 01 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: D1 01 00 8D 13 00 71 [14:17:58]Write to MH i2c: 01 00 00 8E 13 A1 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** Cut start [14:17:58]*** Partial cut [14:17:58]*** CUTSNS_PIN = 1 [14:17:58]*** CUTSNS_PIN = 0 [14:17:59]*** Brake cut motor [14:17:59]Read from MH i2c: 01 [14:17:59]MH_I2C_Read... [14:17:59]*** Stop cut motor [14:17:59]*** Cut end [14:17:59]Read from MH i2c: 01 07 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 FF 0F B6 [14:17:59]process_action print_text done [14:17:59]requested_data is exist [14:17:59]produce_requested_data [14:17:59]requested_item fm.sn is exist - process it [14:17:59]wFMCommunicate request_size=4 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 11 00 00 [14:17:59]Write to MH i2c: E2 08 00 8F 13 80 11 00 00 00 00 00 00 1C [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 17 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 17 00 8F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 71 [14:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:17:59]wFMCommunicate OK [14:17:59]requested_item fd.num is exist - process it [14:17:59]SAM_PROTO_GetFieldsCounters [14:17:59]wFMCommunicate request_size=4 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 13 00 00 [14:17:59]Write to MH i2c: E2 08 00 90 13 80 13 00 00 00 00 00 00 1F [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 62 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 62 00 90 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B4 85 00 00 0E 04 04 00 43 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 5C [14:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B4 85 00 00 0E 04 04 00 43 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 [14:17:59]wFMCommunicate OK [14:17:59]SAM_PROTO_GetFieldsCounters done [14:17:59]requested_item shift.num is exist - process it [14:17:59]requested_item shift.opened is exist - process it [14:17:59]req_shift_opened [14:17:59]FM_GetShiftState [14:17:59]SAM_PROTO_GetShiftState [14:17:59]wFMCommunicate request_size=4 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 13 01 00 [14:17:59]Write to MH i2c: E2 08 00 91 13 80 13 01 00 00 00 00 00 21 [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 0E 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 0E 00 91 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6C [14:17:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:17:59]wFMCommunicate OK [14:17:59]SAM_PROTO_GetShiftState done [14:17:59]FM_GetShiftState done [14:17:59]req_shift_opened done [14:17:59]requested_item shift.open_date is exist - process it [14:17:59]req_shift_open_date [14:17:59]req_shift_open_date done [14:17:59]produce_requested_data done [14:17:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34228,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:17:59]process_action_free print_text [14:17:59]json_value_free [14:17:59]json_value_free done [14:17:59]process_json_proto returns [14:17:59]Send response to host [14:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34228,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:17:59]free response buf [14:17:59]execute_script done [14:17:59]execute_script returns [14:17:59]free content buf [14:17:59]Sock 7.Close socket [14:17:59]Sock 7.Thread stoped [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:18]accept exits with 9 [14:20:18]New connection [14:20:18]New thread 3067436388 created [14:20:18]Thread 3067293028 joined [14:20:18]Waiting for new connection... [14:20:18] Sock 9.Parse request [14:20:18]Sock 9.Check first char [14:20:18]Sock 9.First char is OK [14:20:18]request: POST /json_proto HTTP/1.0 [14:20:18]Method: POST [14:20:18]URL: /json_proto [14:20:18]Method is POST - this is cgi request [14:20:18]url: /json_proto [14:20:18]query_string will be loaded in cgi processing [14:20:18]execute_cgi json_proto POST (null) [14:20:18]execute_cgi path=json_proto method=POST [14:20:18]POST find Content-Length [14:20:18]Host: 172.17.38.134:8080 [14:20:18]Content-Length: 1752 [14:20:18]Content-Type: application/json [14:20:18] [14:20:18]POST finish read [14:20:18]Found Content-Length = 1752 [14:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184026", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:18]execute_script... [14:20: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)184026", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:18]POST & json_proto [14:20:18]process_json_proto [14:20:18]json parsed OK: [14:20:18]protocol is kg_v1.0 [14:20:18]action value=close_receipt [14:20:18]process_action close_receipt [14:20:18]cmd_close_receipt [14:20:18]MH_GetDate [14:20:18]Write to MH i2c: F0 00 00 92 13 94 [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: F0 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: F0 09 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: F0 09 00 92 13 00 A6 97 71 66 13 9C 7C 64 40 [14:20:18]GetLastDocTimeStamp 1718719147 [14:20:18]current date 1718720422 [14:20:18]FM_GetShiftState [14:20:18]SAM_PROTO_GetShiftState [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 13 01 00 [14:20:18]Write to MH i2c: E2 08 00 93 13 80 13 01 00 00 00 00 00 23 [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:18]Read from MH i2c: E2 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 0E 00 [14:20:18]MH_I2C_Read... [14:20:18]Read from MH i2c: E2 0E 00 93 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6E [14:20:18]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:20:18]wFMCommunicate OK [14:20:18]SAM_PROTO_GetShiftState done [14:20:18]FM_GetShiftState done [14:20:18]opened in 1718670230 [14:20:18]opened+sec_in_day 1718756630 [14:20:18]quantity*price = 12000 [14:20:18]sum+1 = 12001 [14:20:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 52 18.06.2024 14:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34230 ФПД: 182680457026459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143103&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34230&fm=182680457026459&tin=02508201610067®Number=0000000000092786&sum=8500 0 [14:31:03]StoreToDocumentArchive [14:31:03]shift 323 fd 34230 [14:31:03]save to /storage/0323/doc_00034230 [14:31:03]save last doc name /storage/0323/doc_00034230 to /storage/kkm_last_doc_name [14:31:03]save OK [14:31:03]Clear old archive folders... [14:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=288 [14:31:03]tlvbuf is 018FA6F0 [14:31:03]SAM_PROTO_ClearQueue [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 09 00 00 [14:31:03]Write to MH i2c: E2 08 00 4C 00 80 09 00 00 00 00 00 00 BE [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 4C 00 00 90 00 C0 [14:31:03]RAPDU: 90 00 [14:31:03]wFMCommunicate OK [14:31:03]SAM_PROTO_ClearQueue done [14:31:03]KKMCreateOFDPacket [14:31:03]OFDProtocolAddRootSTLVToBuf [14:31:03]FM_MakeSignedData [14:31:03]FM_MakeSignedData [14:31:03]SAM_PROTO_SignData [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 0D 01 02 [14:31:03]Write to MH i2c: E2 08 00 4D 00 80 0D 01 02 00 00 00 00 C6 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 4D 00 00 90 00 C1 [14:31:03]RAPDU: 90 00 [14:31:03]wFMCommunicate OK [14:31:03]wFMCommunicate request_size=255 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 27 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [14:31:03]Write to MH i2c: E2 02 01 4E 00 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 27 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 9E [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 4E 00 00 90 00 C2 [14:31:04]RAPDU: 90 00 [14:31:04]wFMCommunicate OK [14:31:04]wFMCommunicate request_size=47 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 0D 02 02 2A 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B6 85 00 00 35 04 06 00 A6 25 9B BF 9B 9B [14:31:04]Write to MH i2c: E2 32 00 4F 00 80 0D 02 02 2A 00 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B6 85 00 00 35 04 06 00 A6 25 9B BF 9B 9B 00 00 28 [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 03 00 4F 00 00 90 00 C3 [14:31:04]RAPDU: 90 00 [14:31:04]wFMCommunicate OK [14:31:04]wFMCommunicate request_size=4 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 0D 03 02 [14:31:04]Write to MH i2c: E2 08 00 50 00 80 0D 03 02 00 00 00 00 CB [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 0B 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 0B 00 50 00 00 BC 06 52 8C D5 F6 D3 F6 90 00 00 [14:31:04]RAPDU: BC 06 52 8C D5 F6 D3 F6 90 00 [14:31:04]wFMCommunicate OK [14:31:04]SAM_PROTO_SignData done [14:31:04]FM_MakeSignedData done [14:31:04]CreateOFDProtocolMessage [14:31:04]wFMCommunicate request_size=4 [14:31:04]MH_SAM_APDU [14:31:04]CAPDU: 80 11 00 00 [14:31:04]Write to MH i2c: E2 08 00 51 00 80 11 00 00 00 00 00 00 CB [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 17 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 17 00 51 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 20 [14:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:31:04]wFMCommunicate OK [14:31:04]CreateOFDProtocolMessage done [14:31:04]OFDSenderStorePacket 34230 [14:31:04]StoreOFDPacket docnum=34230 [14:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 3A B6 2C 01 E8 1C 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 27 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B6 85 00 00 35 04 06 00 A6 25 9B BF 9B 9B BC 06 52 8C D5 F6 D3 F6 [14:31:04]CheckFolder [14:31:04]dirname=/storage/ofd_packets [14:31:04]CheckFolder done [14:31:04]ProducePacketName [14:31:04]name=ofd_packets/00034230 [14:31:04]NVStorageSaveData ofd_packets/00034230 [14:31:04]File name is /storage/ofd_packets/00034230 [14:31:04]Write 338 bytes [14:31:04]NVStorageSaveData done [14:31:04]OFDSenderStorePacket done [14:31:04]KKMCreateOFDPacket done [14:31:04]NVStorageSaveData kkm_last_timestamp [14:31:04]File name is /storage/kkm_last_timestamp [14:31:04]Write 4 bytes [14:31:04]NVStorageSaveData done [14:31:04]ExternCall_PrintAddStr [14:31:04]wPrintStart [14:31:04]Write to MH i2c: 01 00 00 52 00 52 [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: 01 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: 01 07 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: 01 07 00 52 00 00 00 00 00 00 FF 0F 67 [14:31:04]RasterBufferAndPrint [14:31:04]line Счет N : (3)184027 [14:31:04]line ИНН: 02508201610067 [14:31:04]line Контрольно-Кассовый Чек [14:31:04]line ПРОДАЖА [14:31:04]line Товар: 4700000481453 [14:31:04]line Напиток энерг Nitro Max 0,45 ж/б [14:31:04]line 1.000 * 85.00 [14:31:04]line = 85.00 [14:31:04]line НДС 12% НСП 1% [14:31:04]line > о реализуемом товаре [14:31:04]line ИТОГО: 85.00 [14:31:04]line НСП 1% : 0.75 [14:31:04]line НДС 12% : 9.03 [14:31:04]line Наличными: 85.00 [14:31:04]line Безнал.: 0.00 [14:31:04]line Место: АЗС № 120 "Партнер Нефть" [14:31:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:31:04]line СНО: Общий режим [14:31:04]line Чек 52 18.06.2024 14:31 [14:31:04]line Смена: 323 ФФД: 1.0 [14:31:04]line ЗНМ: 0300000172 [14:31:04]line РНМ: 0000000000092786 [14:31:04]line Версия ККМ: 001 [14:31:04]line ФМ: 0000000000875095 [14:31:04]line ФД: 34230 [14:31:04]line ФПД: 182680457026459 [14:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143103&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34230&fm=182680457026459&tin=02508201610067®Number=0000000000092786&sum=8500 [14:31:04]OFD Sender: Processing packet 34230 [packets to send 8, broken 7] [14:31:04]ProducePacketName [14:31:04]name=ofd_packets/00034230 [14:31:04]OFD Sender: To server: pG, [14:31:04]CommunicateWithHost lk.salyk.kg:30040 [14:31:04]ConnectInit lk.salyk.kg [14:31:04]line 0 [14:31:04]written 0, free lines is 4095 [14:31:04]Connected sock=10 [14:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 34 01 00 00 3A B6 2C 01 E8 1C 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 27 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B6 85 00 00 35 04 06 00 A6 25 9B BF 9B 9B BC 06 52 8C D5 F6 D3 F6 [14:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E3 16 47 00 53 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B6 85 00 00 F4 03 04 00 F6 40 71 66 B6 04 01 00 00 F6 63 7E 94 EB 1E BC 34 [14:31:04]CommunicateWithHost err = 0 [14:31:04]CheckOFDResponse [14:31:04]1017 (14) - 77093643461234 [14:31:04]1041 (16) - 0000000000875095 [14:31:04]1040 (4) - 34230 [14:31:04]1012 (4) - 18.06.2024 08:10 [14:31:04]1206 (1) - 0 [14:31:04]OFD Sender: Remove packet 34230 [14:31:04]ProducePacketName [14:31:04]name=ofd_packets/00034230 [14:31:04]NVStorageDeleteData [14:31:05]Write to MH i2c: 01 00 00 7B 00 7B [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 EC 0C 7A [14:31:05]RasterBufferAndPrint [14:31:05]line [14:31:05]line [14:31:05]line [14:31:05]line [14:31:05]line [14:31:05]written 0, free lines is 3314 [14:31:05]MH_Cut [14:31:05]Write to MH i2c: D1 01 00 82 00 01 54 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: D1 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: D1 01 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: D1 01 00 82 00 00 53 [14:31:05]Write to MH i2c: 01 00 00 83 00 83 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]OFD Sender: No OFD packet to send [14:31:05]*** Cut start [14:31:05]*** Partial cut [14:31:05]*** CUTSNS_PIN = 1 [14:31:05]*** CUTSNS_PIN = 0 [14:31:06]*** Brake cut motor [14:31:06]Read from MH i2c: 01 [14:31:06]MH_I2C_Read... [14:31:06]*** Stop cut motor [14:31:06]*** Cut end [14:31:06]Read from MH i2c: 01 07 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 83 00 00 00 00 00 00 FF 0F 98 [14:31:06]process_action close_receipt done [14:31:06]requested_data is exist [14:31:06]produce_requested_data [14:31:06]requested_item fm.sn is exist - process it [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 11 00 00 [14:31:06]Write to MH i2c: E2 08 00 84 00 80 11 00 00 00 00 00 00 FE [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 17 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 17 00 84 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 53 [14:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:31:06]wFMCommunicate OK [14:31:06]requested_item fd.num is exist - process it [14:31:06]SAM_PROTO_GetFieldsCounters [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 13 00 00 [14:31:06]Write to MH i2c: E2 08 00 85 00 80 13 00 00 00 00 00 00 01 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 62 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 62 00 85 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B6 85 00 00 0E 04 04 00 43 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 46 [14:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B6 85 00 00 0E 04 04 00 43 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 [14:31:06]wFMCommunicate OK [14:31:06]SAM_PROTO_GetFieldsCounters done [14:31:06]requested_item shift.num is exist - process it [14:31:06]requested_item shift.opened is exist - process it [14:31:06]req_shift_opened [14:31:06]FM_GetShiftState [14:31:06]SAM_PROTO_GetShiftState [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 13 01 00 [14:31:06]Write to MH i2c: E2 08 00 86 00 80 13 01 00 00 00 00 00 03 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 0E 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 0E 00 86 00 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 4E [14:31:06]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:31:06]wFMCommunicate OK [14:31:06]SAM_PROTO_GetShiftState done [14:31:06]FM_GetShiftState done [14:31:06]req_shift_opened done [14:31:06]requested_item shift.open_date is exist - process it [14:31:06]req_shift_open_date [14:31:06]req_shift_open_date done [14:31:06]produce_requested_data done [14:31:06]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34230,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:31:06]process_action_free close_receipt [14:31:06]json_value_free [14:31:06]json_value_free done [14:31:06]process_json_proto returns [14:31:06]Send response to host [14:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34230,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:31:06]free response buf [14:31:06]execute_script done [14:31:06]execute_script returns [14:31:06]free content buf [14:31:06]Sock 7.Close socket [14:31:06]Sock 7.Thread stoped [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:28]accept exits with 9 [14:32:28]New connection [14:32:28]New thread 3067567460 created [14:32:28]Thread 3067424100 joined [14:32:28]Waiting for new connection... [14:32:28] Sock 9.Parse request [14:32:28]Sock 9.Check first char [14:32:28]Sock 9.First char is OK [14:32:28]request: POST /json_proto HTTP/1.0 [14:32:28]Method: POST [14:32:28]URL: /json_proto [14:32:28]Method is POST - this is cgi request [14:32:28]url: /json_proto [14:32:28]query_string will be loaded in cgi processing [14:32:28]execute_cgi json_proto POST (null) [14:32:28]execute_cgi path=json_proto method=POST [14:32:28]POST find Content-Length [14:32:28]Host: 172.17.38.134:8080 [14:32:28]Content-Length: 678 [14:32:28]Content-Type: application/json [14:32:28] [14:32:28]POST finish read [14:32:28]Found Content-Length = 678 [14:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.200, "sum" : 810.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:28]execute_script... [14:32: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)672610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.200, "sum" : 810.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:28]POST & json_proto [14:32:28]process_json_proto [14:32:28]json parsed OK: [14:32:28]protocol is kg_v1.0 [14:32:28]action value=close_receipt [14:32:28]process_action close_receipt [14:32:28]cmd_close_receipt [14:32:28]MH_GetDate [14:32:28]Write to MH i2c: F0 00 00 87 00 76 [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: F0 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: F0 09 00 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: F0 09 00 87 00 00 7C 9A 71 66 13 9C 7C 64 FB [14:32:28]GetLastDocTimeStamp 1718721063 [14:32:28]current date 1718721148 [14:32:28]FM_GetShiftState [14:32:28]SAM_PROTO_GetShiftState [14:32:28]wFMCommunicate request_size=4 [14:32:28]MH_SAM_APDU [14:32:28]CAPDU: 80 13 01 00 [14:32:28]Write to MH i2c: E2 08 00 88 00 80 13 01 00 00 00 00 00 05 [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:28]Read from MH i2c: E2 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: E2 0E 00 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: E2 0E 00 88 00 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 50 [14:32:28]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:32:28]wFMCommunicate OK [14:32:28]SAM_PROTO_GetShiftState done [14:32:28]FM_GetShiftState done [14:32:28]opened in 1718670230 [14:32:28]opened+sec_in_day 1718756630 [14:32:28]quantity*price = 81008 [14:32:28]sum+1 = 81009 [14:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.03 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 53 18.06.2024 14:32 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34231 ФПД: 14948565353368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143228&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34231&fm=14948565353368&tin=02508201610067®Number=0000000000092786&sum=81000 [14:32:29]StoreToDocumentArchive [14:32:29]shift 323 fd 34231 [14:32:29]save to /storage/0323/doc_00034231 [14:32:29]save last doc name /storage/0323/doc_00034231 to /storage/kkm_last_doc_name [14:32:29]save OK [14:32:29]Clear old archive folders... [14:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:29]tlvbuf is 018F1560 [14:32:29]SAM_PROTO_ClearQueue [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 09 00 00 [14:32:29]Write to MH i2c: E2 08 00 95 00 80 09 00 00 00 00 00 00 07 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 95 00 00 90 00 09 [14:32:29]RAPDU: 90 00 [14:32:29]wFMCommunicate OK [14:32:29]SAM_PROTO_ClearQueue done [14:32:29]KKMCreateOFDPacket [14:32:29]OFDProtocolAddRootSTLVToBuf [14:32:29]FM_MakeSignedData [14:32:29]FM_MakeSignedData [14:32:29]SAM_PROTO_SignData [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 0D 01 02 [14:32:29]Write to MH i2c: E2 08 00 96 00 80 0D 01 02 00 00 00 00 0F [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 96 00 00 90 00 0A [14:32:29]RAPDU: 90 00 [14:32:29]wFMCommunicate OK [14:32:29]wFMCommunicate request_size=255 [14:32:29]MH_SAM_APDU [14:32: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 A8 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B7 85 00 00 35 04 06 00 0D [14:32:29]Write to MH i2c: E2 02 01 97 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 A8 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B7 85 00 00 35 04 06 00 0D 00 00 33 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 97 00 00 90 00 0B [14:32:29]RAPDU: 90 00 [14:32:29]wFMCommunicate OK [14:32:29]wFMCommunicate request_size=10 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 0D 02 02 05 98 7B ED 83 98 [14:32:29]Write to MH i2c: E2 0D 00 98 00 80 0D 02 02 05 00 98 7B ED 83 98 00 00 37 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 98 00 00 90 00 0C [14:32:29]RAPDU: 90 00 [14:32:29]wFMCommunicate OK [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 0D 03 02 [14:32:29]Write to MH i2c: E2 08 00 99 00 80 0D 03 02 00 00 00 00 14 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:30]Read from MH i2c: E2 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: E2 0B 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: E2 0B 00 99 00 00 16 7E 3F AF 8D 64 82 82 90 00 8C [14:32:30]RAPDU: 16 7E 3F AF 8D 64 82 82 90 00 [14:32:30]wFMCommunicate OK [14:32:30]SAM_PROTO_SignData done [14:32:30]FM_MakeSignedData done [14:32:30]CreateOFDProtocolMessage [14:32:30]wFMCommunicate request_size=4 [14:32:30]MH_SAM_APDU [14:32:30]CAPDU: 80 11 00 00 [14:32:30]Write to MH i2c: E2 08 00 9A 00 80 11 00 00 00 00 00 00 14 [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:30]Read from MH i2c: E2 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: E2 17 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: E2 17 00 9A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 69 [14:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:32:30]wFMCommunicate OK [14:32:30]CreateOFDProtocolMessage done [14:32:30]OFDSenderStorePacket 34231 [14:32:30]StoreOFDPacket docnum=34231 [14:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 1C C4 07 01 8B B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B7 85 00 00 35 04 06 00 0D 98 7B ED 83 98 16 7E 3F AF 8D 64 82 82 [14:32:30]CheckFolder [14:32:30]dirname=/storage/ofd_packets [14:32:30]CheckFolder done [14:32:30]ProducePacketName [14:32:30]name=ofd_packets/00034231 [14:32:30]NVStorageSaveData ofd_packets/00034231 [14:32:30]File name is /storage/ofd_packets/00034231 [14:32:30]Write 301 bytes [14:32:30]NVStorageSaveData done [14:32:30]OFDSenderStorePacket done [14:32:30]KKMCreateOFDPacket done [14:32:30]NVStorageSaveData kkm_last_timestamp [14:32:30]File name is /storage/kkm_last_timestamp [14:32:30]Write 4 bytes [14:32:30]NVStorageSaveData done [14:32:30]ExternCall_PrintAddStr [14:32:30]wPrintStart [14:32:30]Write to MH i2c: 01 00 00 9B 00 9B [14:32:30]OFD Sender: Processing packet 34231 [packets to send 8, broken 7] [14:32:30]ProducePacketName [14:32:30]name=ofd_packets/00034231 [14:32:30]OFD Sender: To server: pG, [14:32:30]CommunicateWithHost lk.salyk.kg:30040 [14:32:30]ConnectInit lk.salyk.kg [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 07 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 FF 0F B0 [14:32:30]RasterBufferAndPrint [14:32:30]line Счет N : (1)672610 [14:32:30]line ИНН: 02508201610067 [14:32:30]line Контрольно-Кассовый Чек [14:32:30]line ПРОДАЖА [14:32:30]line ТРК (МРК, ГНК) : 42 [14:32:30]line Товар: 2710124130 [14:32:30]line Аи-92-К-5 [14:32:30]line 12.200 * 66.40 [14:32:30]line = 810.08 [14:32:30]line НДС 12% НСП 1% [14:32:30]line > о реализуемом товаре [14:32:30]line ОКРУГЛЕНИЕ: -0.08 [14:32:30]line ИТОГО: 810.00 [14:32:30]line Внесено: 810.00 [14:32:30]line СДАЧА: 0.00 [14:32:30]line НСП 1% : 7.17 [14:32:30]line НДС 12% : 86.03 [14:32:30]line Наличными: 810.00 [14:32:30]line Безнал.: 0.00 [14:32:30]line Место: АЗС № 120 "Партнер Нефть" [14:32:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:32:30]line СНО: Общий режим [14:32:30]line Чек 53 18.06.2024 14:32 [14:32:30]line Смена: 323 ФФД: 1.0 [14:32:30]line ЗНМ: 0300000172 [14:32:30]line РНМ: 0000000000092786 [14:32:30]line Версия ККМ: 001 [14:32:30]line ФМ: 0000000000875095 [14:32:30]line ФД: 34231 [14:32:30]line ФПД: 14948565353368 [14:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143228&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34231&fm=14948565353368&tin=02508201610067®Number=0000000000092786&sum=81000 [14:32:30]Connected sock=10 [14:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 1C C4 07 01 8B B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B7 85 00 00 35 04 06 00 0D 98 7B ED 83 98 16 7E 3F AF 8D 64 82 82 [14:32:30]written 0, free lines is 4095 [14:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7A 8C 47 00 07 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B7 85 00 00 F4 03 04 00 4C 41 71 66 B6 04 01 00 00 91 92 D4 C0 97 33 F2 91 [14:32:30]CommunicateWithHost err = 0 [14:32:30]CheckOFDResponse [14:32:30]1017 (14) - 77093643461234 [14:32:30]1041 (16) - 0000000000875095 [14:32:30]1040 (4) - 34231 [14:32:30]1012 (4) - 18.06.2024 08:11 [14:32:30]1206 (1) - 0 [14:32:30]OFD Sender: Remove packet 34231 [14:32:30]ProducePacketName [14:32:30]name=ofd_packets/00034231 [14:32:30]NVStorageDeleteData [14:32:30]Write to MH i2c: 01 00 00 C6 00 C6 [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 07 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 D7 0C B0 [14:32:30]RasterBufferAndPrint [14:32:30]line [14:32:30]line [14:32:30]line [14:32:30]line [14:32:30]line [14:32:30]written 0, free lines is 3294 [14:32:30]MH_Cut [14:32:30]Write to MH i2c: D1 01 00 CD 00 01 9F [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: D1 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: D1 01 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: D1 01 00 CD 00 00 9E [14:32:30]Write to MH i2c: 01 00 00 CE 00 CE [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:31]OFD Sender: No OFD packet to send [14:32:31]*** Cut start [14:32:31]*** Partial cut [14:32:31]*** CUTSNS_PIN = 1 [14:32:31]*** CUTSNS_PIN = 0 [14:32:31]*** Brake cut motor [14:32:32]Read from MH i2c: 01 [14:32:32]MH_I2C_Read... [14:32:32]*** Stop cut motor [14:32:32]*** Cut end [14:32:32]Read from MH i2c: 01 07 00 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [14:32:32]process_action close_receipt done [14:32:32]requested_data is exist [14:32:32]produce_requested_data [14:32:32]requested_item fm.sn is exist - process it [14:32:32]wFMCommunicate request_size=4 [14:32:32]MH_SAM_APDU [14:32:32]CAPDU: 80 11 00 00 [14:32:32]Write to MH i2c: E2 08 00 CF 00 80 11 00 00 00 00 00 00 49 [14:32:32]Write i2c OK [14:32:32]MH_I2C_Read... [14:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:32]Read from MH i2c: E2 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 17 00 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 17 00 CF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9E [14:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:32:32]wFMCommunicate OK [14:32:32]requested_item fd.num is exist - process it [14:32:32]SAM_PROTO_GetFieldsCounters [14:32:32]wFMCommunicate request_size=4 [14:32:32]MH_SAM_APDU [14:32:32]CAPDU: 80 13 00 00 [14:32:32]Write to MH i2c: E2 08 00 D0 00 80 13 00 00 00 00 00 00 4C [14:32:32]Write i2c OK [14:32:32]MH_I2C_Read... [14:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:32]Read from MH i2c: E2 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 62 00 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 62 00 D0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B7 85 00 00 0E 04 04 00 43 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 95 [14:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B7 85 00 00 0E 04 04 00 43 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 [14:32:32]wFMCommunicate OK [14:32:32]SAM_PROTO_GetFieldsCounters done [14:32:32]requested_item shift.num is exist - process it [14:32:32]requested_item shift.opened is exist - process it [14:32:32]req_shift_opened [14:32:32]FM_GetShiftState [14:32:32]SAM_PROTO_GetShiftState [14:32:32]wFMCommunicate request_size=4 [14:32:32]MH_SAM_APDU [14:32:32]CAPDU: 80 13 01 00 [14:32:32]Write to MH i2c: E2 08 00 D1 00 80 13 01 00 00 00 00 00 4E [14:32:32]Write i2c OK [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 [14:32:32]MH_I2C_Read... [14:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:32]Read from MH i2c: E2 0E 00 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 0E 00 D1 00 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 99 [14:32:32]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:32:32]wFMCommunicate OK [14:32:32]SAM_PROTO_GetShiftState done [14:32:32]FM_GetShiftState done [14:32:32]req_shift_opened done [14:32:32]requested_item shift.open_date is exist - process it [14:32:32]req_shift_open_date [14:32:32]req_shift_open_date done [14:32:32]produce_requested_data done [14:32:32]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34231,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:32:32]process_action_free close_receipt [14:32:32]json_value_free [14:32:32]json_value_free done [14:32:32]process_json_proto returns [14:32:32]Send response to host [14:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34231,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:32:32]free response buf [14:32:32]execute_script done [14:32:32]execute_script returns [14:32:32]free content buf [14:32:32]Sock 9.Close socket [14:32:32]Sock 9.Thread stoped [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:27]accept exits with 7 [14:33:27]New connection [14:33:27]New thread 3067424100 created [14:33:27]Thread 3067567460 joined [14:33:27]Waiting for new connection... [14:33:27] Sock 7.Parse request [14:33:27]Sock 7.Check first char [14:33:27]Sock 7.First char is OK [14:33:27]request: POST /json_proto HTTP/1.0 [14:33:27]Method: POST [14:33:27]URL: /json_proto [14:33:27]Method is POST - this is cgi request [14:33:27]url: /json_proto [14:33:27]query_string will be loaded in cgi processing [14:33:27]execute_cgi json_proto POST (null) [14:33:27]execute_cgi path=json_proto method=POST [14:33:27]POST find Content-Length [14:33:27]Host: 172.17.38.134:8080 [14:33:27]Content-Length: 682 [14:33:27]Content-Type: application/json [14:33:27] [14:33:27]POST finish read [14:33:27]Found Content-Length = 682 [14:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 16.240, "sum" : 1200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:27]execute_script... [14:33: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)672611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 16.240, "sum" : 1200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:27]POST & json_proto [14:33:27]process_json_proto [14:33:27]json parsed OK: [14:33:27]protocol is kg_v1.0 [14:33:27]action value=close_receipt [14:33:27]process_action close_receipt [14:33:27]cmd_close_receipt [14:33:27]MH_GetDate [14:33:27]Write to MH i2c: F0 00 00 D2 00 C1 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: F0 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: F0 09 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: F0 09 00 D2 00 00 B7 9A 71 66 13 9C 7C 64 81 [14:33:27]GetLastDocTimeStamp 1718721148 [14:33:27]current date 1718721207 [14:33:27]FM_GetShiftState [14:33:27]SAM_PROTO_GetShiftState [14:33:27]wFMCommunicate request_size=4 [14:33:27]MH_SAM_APDU [14:33:27]CAPDU: 80 13 01 00 [14:33:27]Write to MH i2c: E2 08 00 D3 00 80 13 01 00 00 00 00 00 50 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 D3 00 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 9B [14:33:27]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:33:27]wFMCommunicate OK [14:33:27]SAM_PROTO_GetShiftState done [14:33:27]FM_GetShiftState done [14:33:27]opened in 1718670230 [14:33:27]opened+sec_in_day 1718756630 [14:33:27]quantity*price = 120013 [14:33:27]sum+1 = 120015 [14:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 54 18.06.2024 14:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34232 ФПД: 133039521003859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143327&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34232&fm=133039521003859&tin=02508201610067®Number=0000000000092786&sum=120000 [14:33:28]StoreToDocumentArchive [14:33:28]shift 323 fd 34232 [14:33:28]save to /storage/0323/doc_00034232 [14:33:28]save last doc name /storage/0323/doc_00034232 to /storage/kkm_last_doc_name [14:33:28]save OK [14:33:28]Clear old archive folders... [14:33:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:28]tlvbuf is 01930780 [14:33:28]SAM_PROTO_ClearQueue [14:33:28]wFMCommunicate request_size=4 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 09 00 00 [14:33:28]Write to MH i2c: E2 08 00 E0 00 80 09 00 00 00 00 00 00 52 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:28]Read from MH i2c: E2 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 E0 00 00 90 00 54 [14:33:28]RAPDU: 90 00 [14:33:28]wFMCommunicate OK [14:33:28]SAM_PROTO_ClearQueue done [14:33:28]KKMCreateOFDPacket [14:33:28]OFDProtocolAddRootSTLVToBuf [14:33:28]FM_MakeSignedData [14:33:28]FM_MakeSignedData [14:33:28]SAM_PROTO_SignData [14:33:28]wFMCommunicate request_size=4 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 0D 01 02 [14:33:28]Write to MH i2c: E2 08 00 E1 00 80 0D 01 02 00 00 00 00 5A [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:28]Read from MH i2c: E2 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 E1 00 00 90 00 55 [14:33:28]RAPDU: 90 00 [14:33:28]wFMCommunicate OK [14:33:28]wFMCommunicate request_size=255 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B7 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B8 85 00 00 35 04 06 00 78 [14:33:28]Write to MH i2c: E2 02 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B7 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B8 85 00 00 35 04 06 00 78 00 00 62 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:28]Read from MH i2c: E2 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 E2 00 00 90 00 56 [14:33:28]RAPDU: 90 00 [14:33:28]wFMCommunicate OK [14:33:28]wFMCommunicate request_size=10 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 0D 02 02 05 FF AD 63 F9 53 [14:33:28]Write to MH i2c: E2 0D 00 E3 00 80 0D 02 02 05 00 FF AD 63 F9 53 00 00 C2 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 03 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 03 00 E3 00 00 90 00 57 [14:33:29]RAPDU: 90 00 [14:33:29]wFMCommunicate OK [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 0D 03 02 [14:33:29]Write to MH i2c: E2 08 00 E4 00 80 0D 03 02 00 00 00 00 5F [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 0B 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 0B 00 E4 00 00 DF 98 ED 8C 25 64 E9 7C 90 00 3E [14:33:29]RAPDU: DF 98 ED 8C 25 64 E9 7C 90 00 [14:33:29]wFMCommunicate OK [14:33:29]SAM_PROTO_SignData done [14:33:29]FM_MakeSignedData done [14:33:29]CreateOFDProtocolMessage [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 11 00 00 [14:33:29]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 17 00 [14:33:29]MH_I2C_Read... [14:33:29]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 35 30 39 35 90 00 B4 [14:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:33:29]wFMCommunicate OK [14:33:29]CreateOFDProtocolMessage done [14:33:29]OFDSenderStorePacket 34232 [14:33:29]StoreOFDPacket docnum=34232 [14:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 08 32 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B7 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B8 85 00 00 35 04 06 00 78 FF AD 63 F9 53 DF 98 ED 8C 25 64 E9 7C [14:33:29]CheckFolder [14:33:29]dirname=/storage/ofd_packets [14:33:29]CheckFolder done [14:33:29]ProducePacketName [14:33:29]name=ofd_packets/00034232 [14:33:29]NVStorageSaveData ofd_packets/00034232 [14:33:29]File name is /storage/ofd_packets/00034232 [14:33:29]Write 301 bytes [14:33:29]NVStorageSaveData done [14:33:29]OFDSenderStorePacket done [14:33:29]KKMCreateOFDPacket done [14:33:29]NVStorageSaveData kkm_last_timestamp [14:33:29]File name is /storage/kkm_last_timestamp [14:33:29]Write 4 bytes [14:33:29]NVStorageSaveData done [14:33:29]ExternCall_PrintAddStr [14:33:29]wPrintStart [14:33:29]Write to MH i2c: 01 00 00 E6 00 E6 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 E6 00 00 00 00 00 00 FF 0F FB [14:33:29]RasterBufferAndPrint [14:33:29]line Счет N : (1)672611 [14:33:29]line ИНН: 02508201610067 [14:33:29]line Контрольно-Кассовый Чек [14:33:29]line ПРОДАЖА [14:33:29]line ТРК (МРК, ГНК) : 31 [14:33:29]line Товар: 2710124500 [14:33:29]line Аи-95-К-5 [14:33:29]line 16.240 * 73.90 [14:33:29]line = 1200.14 [14:33:29]line НДС 12% НСП 1% [14:33:29]line > о реализуемом товаре [14:33:29]line ОКРУГЛЕНИЕ: -0.14 [14:33:29]line ИТОГО: 1200.00 [14:33:29]line Внесено: 1200.00 [14:33:29]line СДАЧА: 0.00 [14:33:29]line НСП 1% : 10.62 [14:33:29]line НДС 12% : 127.45 [14:33:29]line Наличными: 1200.00 [14:33:29]line Безнал.: 0.00 [14:33:29]line Место: АЗС № 120 "Партнер Нефть" [14:33:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:33:29]line СНО: Общий режим [14:33:29]line Чек 54 18.06.2024 14:33 [14:33:29]line Смена: 323 ФФД: 1.0 [14:33:29]line ЗНМ: 0300000172 [14:33:29]line РНМ: 0000000000092786 [14:33:29]line Версия ККМ: 001 [14:33:29]line ФМ: 0000000000875095 [14:33:29]line ФД: 34232 [14:33:29]line ФПД: 133039521003859 [14:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143327&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34232&fm=133039521003859&tin=02508201610067®Number=0000000000092786&sum=120000 [14:33:29]OFD Sender: Processing packet 34232 [packets to send 8, broken 7] [14:33:29]ProducePacketName [14:33:29]name=ofd_packets/00034232 [14:33:29]OFD Sender: To server: pG, [14:33:29]CommunicateWithHost lk.salyk.kg:30040 [14:33:29]ConnectInit lk.salyk.kg [14:33:29]written 0, free lines is 4095 [14:33:29]Connected sock=10 [14:33:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 08 32 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B7 9A 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B8 85 00 00 35 04 06 00 78 FF AD 63 F9 53 DF 98 ED 8C 25 64 E9 7C [14:33:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 85 3E 47 00 FC 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B8 85 00 00 F4 03 04 00 87 41 71 66 B6 04 01 00 00 4E EB ED AA 20 FC EB FE [14:33:29]CommunicateWithHost err = 0 [14:33:29]CheckOFDResponse [14:33:29]1017 (14) - 77093643461234 [14:33:29]1041 (16) - 0000000000875095 [14:33:29]1040 (4) - 34232 [14:33:29]1012 (4) - 18.06.2024 08:12 [14:33:29]1206 (1) - 0 [14:33:29]OFD Sender: Remove packet 34232 [14:33:29]ProducePacketName [14:33:29]name=ofd_packets/00034232 [14:33:29]NVStorageDeleteData [14:33:29]Write to MH i2c: 01 00 00 11 01 12 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 E0 0C 05 [14:33:29]RasterBufferAndPrint [14:33:29]line [14:33:29]line [14:33:29]line [14:33:29]line [14:33:29]line [14:33:29]written 0, free lines is 3301 [14:33:29]MH_Cut [14:33:29]Write to MH i2c: D1 01 00 18 01 01 EB [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: D1 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: D1 01 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: D1 01 00 18 01 00 EA [14:33:29]Write to MH i2c: 01 00 00 19 01 1A [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:30]OFD Sender: No OFD packet to send [14:33:30]*** Cut start [14:33:30]*** Partial cut [14:33:30]*** CUTSNS_PIN = 1 [14:33:30]*** CUTSNS_PIN = 0 [14:33:30]*** Brake cut motor [14:33:31]Read from MH i2c: 01 [14:33:31]MH_I2C_Read... [14:33:31]*** Stop cut motor [14:33:31]*** Cut end [14:33:31]Read from MH i2c: 01 07 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [14:33:31]process_action close_receipt done [14:33:31]requested_data is exist [14:33:31]produce_requested_data [14:33:31]requested_item fm.sn is exist - process it [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 11 00 00 [14:33:31]Write to MH i2c: E2 08 00 1A 01 80 11 00 00 00 00 00 00 95 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 17 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 17 00 1A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EA [14:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:33:31]wFMCommunicate OK [14:33:31]requested_item fd.num is exist - process it [14:33:31]SAM_PROTO_GetFieldsCounters [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 13 00 00 [14:33:31]Write to MH i2c: E2 08 00 1B 01 80 13 00 00 00 00 00 00 98 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 62 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 62 00 1B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B8 85 00 00 0E 04 04 00 43 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 E5 [14:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B8 85 00 00 0E 04 04 00 43 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 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_GetFieldsCounters done [14:33:31]requested_item shift.num is exist - process it [14:33:31]requested_item shift.opened is exist - process it [14:33:31]req_shift_opened [14:33:31]FM_GetShiftState [14:33:31]SAM_PROTO_GetShiftState [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 13 01 00 [14:33:31]Write to MH i2c: E2 08 00 1C 01 80 13 01 00 00 00 00 00 9A [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0E 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0E 00 1C 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E5 [14:33:31]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_GetShiftState done [14:33:31]FM_GetShiftState done [14:33:31]req_shift_opened done [14:33:31]requested_item shift.open_date is exist - process it [14:33:31]req_shift_open_date [14:33:31]req_shift_open_date done [14:33:31]produce_requested_data done [14:33:31]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34232,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:33:31]process_action_free close_receipt [14:33:31]json_value_free [14:33:31]json_value_free done [14:33:31]process_json_proto returns [14:33:31]Send response to host [14:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34232,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:33:31]free response buf [14:33:31]execute_script done [14:33:31]execute_script returns [14:33:31]free content buf [14:33:31]Sock 7.Close socket [14:33:31]Sock 7.Thread stoped [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:23]accept exits with 9 [14:35:23]New connection [14:35:23]New thread 3067567460 created [14:35:23]Thread 3067424100 joined [14:35:23]Waiting for new connection... [14:35:23] Sock 9.Parse request [14:35:23]Sock 9.Check first char [14:35:23]Sock 9.First char is OK [14:35:23]request: POST /json_proto HTTP/1.0 [14:35:23]Method: POST [14:35:23]URL: /json_proto [14:35:23]Method is POST - this is cgi request [14:35:23]url: /json_proto [14:35:23]query_string will be loaded in cgi processing [14:35:23]execute_cgi json_proto POST (null) [14:35:23]execute_cgi path=json_proto method=POST [14:35:23]POST find Content-Length [14:35:23]Host: 172.17.38.134:8080 [14:35:23]Content-Length: 687 [14:35:23]Content-Type: application/json [14:35:23] [14:35:23]POST finish read [14:35:23]Found Content-Length = 687 [14:35:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:23]execute_script... [14:35:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:23]POST & json_proto [14:35:23]process_json_proto [14:35:23]json parsed OK: [14:35:23]protocol is kg_v1.0 [14:35:23]action value=close_receipt [14:35:23]process_action close_receipt [14:35:23]cmd_close_receipt [14:35:23]MH_GetDate [14:35:23]Write to MH i2c: F0 00 00 1D 01 0D [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: F0 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: F0 09 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: F0 09 00 1D 01 00 2B 9B 71 66 13 9C 7C 64 42 [14:35:23]GetLastDocTimeStamp 1718721207 [14:35:23]current date 1718721323 [14:35:23]FM_GetShiftState [14:35:23]SAM_PROTO_GetShiftState [14:35:23]wFMCommunicate request_size=4 [14:35:23]MH_SAM_APDU [14:35:23]CAPDU: 80 13 01 00 [14:35:23]Write to MH i2c: E2 08 00 1E 01 80 13 01 00 00 00 00 00 9C [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:23]Read from MH i2c: E2 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 0E 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 0E 00 1E 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E7 [14:35:23]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:35:23]wFMCommunicate OK [14:35:23]SAM_PROTO_GetShiftState done [14:35:23]FM_GetShiftState done [14:35:23]opened in 1718670230 [14:35:23]opened+sec_in_day 1718756630 [14:35:23]quantity*price = 100018 [14:35:23]sum+1 = 100020 [14:35:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 55 18.06.2024 14:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34233 ФПД: 249097987871156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143523&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34233&fm=249097987871156&tin=02508201610067®Number=0000000000092786&sum=100000 [14:35:24]StoreToDocumentArchive [14:35:24]shift 323 fd 34233 [14:35:24]save to /storage/0323/doc_00034233 [14:35:24]save last doc name /storage/0323/doc_00034233 to /storage/kkm_last_doc_name [14:35:24]save OK [14:35:24]Clear old archive folders... [14:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:35:24]tlvbuf is 018E6420 [14:35:24]SAM_PROTO_ClearQueue [14:35:24]wFMCommunicate request_size=4 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 09 00 00 [14:35:24]Write to MH i2c: E2 08 00 2B 01 80 09 00 00 00 00 00 00 9E [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 2B 01 00 90 00 A0 [14:35:24]RAPDU: 90 00 [14:35:24]wFMCommunicate OK [14:35:24]SAM_PROTO_ClearQueue done [14:35:24]KKMCreateOFDPacket [14:35:24]OFDProtocolAddRootSTLVToBuf [14:35:24]FM_MakeSignedData [14:35:24]FM_MakeSignedData [14:35:24]SAM_PROTO_SignData [14:35:24]wFMCommunicate request_size=4 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 0D 01 02 [14:35:24]Write to MH i2c: E2 08 00 2C 01 80 0D 01 02 00 00 00 00 A6 [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [14:35:24]RAPDU: 90 00 [14:35:24]wFMCommunicate OK [14:35:24]wFMCommunicate request_size=255 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B9 85 00 00 35 04 06 00 [14:35:24]Write to MH i2c: E2 02 01 2D 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B9 85 00 00 35 04 06 00 00 00 53 [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 2D 01 00 90 00 A2 [14:35:24]RAPDU: 90 00 [14:35:24]wFMCommunicate OK [14:35:24]wFMCommunicate request_size=11 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 0D 02 02 06 E2 8D A5 14 D1 B4 [14:35:24]Write to MH i2c: E2 0E 00 2E 01 80 0D 02 02 06 00 E2 8D A5 14 D1 B4 00 00 62 [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 03 00 2E 01 00 90 00 A3 [14:35:24]RAPDU: 90 00 [14:35:24]wFMCommunicate OK [14:35:24]wFMCommunicate request_size=4 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 0D 03 02 [14:35:24]Write to MH i2c: E2 08 00 2F 01 80 0D 03 02 00 00 00 00 AB [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 0B 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 0B 00 2F 01 00 98 6D C4 F6 4E 6D E6 D6 90 00 E2 [14:35:24]RAPDU: 98 6D C4 F6 4E 6D E6 D6 90 00 [14:35:24]wFMCommunicate OK [14:35:24]SAM_PROTO_SignData done [14:35:24]FM_MakeSignedData done [14:35:24]CreateOFDProtocolMessage [14:35:24]wFMCommunicate request_size=4 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 11 00 00 [14:35:24]Write to MH i2c: E2 08 00 30 01 80 11 00 00 00 00 00 00 AB [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 17 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 17 00 30 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 00 [14:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:35:24]wFMCommunicate OK [14:35:24]CreateOFDProtocolMessage done [14:35:24]OFDSenderStorePacket 34233 [14:35:24]StoreOFDPacket docnum=34233 [14:35:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 33 A2 08 01 ED EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B9 85 00 00 35 04 06 00 E2 8D A5 14 D1 B4 98 6D C4 F6 4E 6D E6 D6 [14:35:24]CheckFolder [14:35:24]dirname=/storage/ofd_packets [14:35:24]CheckFolder done [14:35:24]ProducePacketName [14:35:24]name=ofd_packets/00034233 [14:35:24]NVStorageSaveData ofd_packets/00034233 [14:35:24]File name is /storage/ofd_packets/00034233 [14:35:24]Write 302 bytes [14:35:24]NVStorageSaveData done [14:35:24]OFDSenderStorePacket done [14:35:24]KKMCreateOFDPacket done [14:35:24]NVStorageSaveData kkm_last_timestamp [14:35:24]File name is /storage/kkm_last_timestamp [14:35:24]Write 4 bytes [14:35:24]NVStorageSaveData done [14:35:24]ExternCall_PrintAddStr [14:35:24]wPrintStart [14:35:24]Write to MH i2c: 01 00 00 31 01 32 [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: 01 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: 01 07 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: 01 07 00 31 01 00 00 00 00 00 FF 0F 47 [14:35:24]RasterBufferAndPrint [14:35:24]line Счет N : (1)672615 [14:35:24]line ИНН: 02508201610067 [14:35:24]line Контрольно-Кассовый Чек [14:35:24]line ПРОДАЖА [14:35:24]line ТРК (МРК, ГНК) : 11 [14:35:24]line Товар: 2710194210 [14:35:24]line ДТ(л)-К-5 [14:35:24]line 13.720 * 72.90 [14:35:24]line = 1000.19 [14:35:24]line НДС 12% НСП 1% [14:35:24]line > о реализуемом товаре [14:35:24]line ОКРУГЛЕНИЕ: -0.19 [14:35:24]line ИТОГО: 1000.00 [14:35:24]line Внесено: 1000.00 [14:35:24]line СДАЧА: 0.00 [14:35:24]line НСП 1% : 8.85 [14:35:24]line НДС 12% : 106.21 [14:35:24]line Наличными: 1000.00 [14:35:24]line Безнал.: 0.00 [14:35:24]line Место: АЗС № 120 "Партнер Нефть" [14:35:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:35:24]line СНО: Общий режим [14:35:24]line Чек 55 18.06.2024 14:35 [14:35:25]line Смена: 323 ФФД: 1.0 [14:35:25]line ЗНМ: 0300000172 [14:35:25]line РНМ: 0000000000092786 [14:35:25]line Версия ККМ: 001 [14:35:25]line ФМ: 0000000000875095 [14:35:25]line ФД: 34233 [14:35:25]line ФПД: 249097987871156 [14:35:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143523&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34233&fm=249097987871156&tin=02508201610067®Number=0000000000092786&sum=100000 [14:35:25]OFD Sender: Processing packet 34233 [packets to send 8, broken 7] [14:35:25]ProducePacketName [14:35:25]name=ofd_packets/00034233 [14:35:25]OFD Sender: To server: pG, [14:35:25]CommunicateWithHost lk.salyk.kg:30040 [14:35:25]ConnectInit lk.salyk.kg [14:35:25]written 0, free lines is 4095 [14:35:25]Connected sock=10 [14:35:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 33 A2 08 01 ED EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2B 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B9 85 00 00 35 04 06 00 E2 8D A5 14 D1 B4 98 6D C4 F6 4E 6D E6 D6 [14:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F7 C2 47 00 95 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 B9 85 00 00 F4 03 04 00 FB 41 71 66 B6 04 01 00 00 1F 24 10 8E B6 E8 94 BC [14:35:25]CommunicateWithHost err = 0 [14:35:25]CheckOFDResponse [14:35:25]1017 (14) - 77093643461234 [14:35:25]1041 (16) - 0000000000875095 [14:35:25]1040 (4) - 34233 [14:35:25]1012 (4) - 18.06.2024 08:14 [14:35:25]1206 (1) - 0 [14:35:25]OFD Sender: Remove packet 34233 [14:35:25]ProducePacketName [14:35:25]name=ofd_packets/00034233 [14:35:25]NVStorageDeleteData [14:35:25]Write to MH i2c: 01 00 00 5C 01 5D [14:35:25]Write i2c OK [14:35:25]MH_I2C_Read... [14:35:25]Read from MH i2c: 01 [14:35:25]MH_I2C_Read... [14:35:25]Read from MH i2c: 01 07 00 [14:35:25]MH_I2C_Read... [14:35:25]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 DF 0C 4F [14:35:25]RasterBufferAndPrint [14:35:25]line [14:35:25]line [14:35:25]line [14:35:25]line [14:35:25]line [14:35:25]written 0, free lines is 3300 [14:35:25]MH_Cut [14:35:25]Write to MH i2c: D1 01 00 63 01 01 36 [14:35:25]Write i2c OK [14:35:25]MH_I2C_Read... [14:35:25]Read from MH i2c: D1 [14:35:25]MH_I2C_Read... [14:35:25]Read from MH i2c: D1 01 00 [14:35:25]MH_I2C_Read... [14:35:25]Read from MH i2c: D1 01 00 63 01 00 35 [14:35:25]Write to MH i2c: 01 00 00 64 01 65 [14:35:25]Write i2c OK [14:35:25]MH_I2C_Read... [14:35:26]OFD Sender: No OFD packet to send [14:35:26]*** Cut start [14:35:26]*** Partial cut [14:35:26]*** CUTSNS_PIN = 1 [14:35:26]*** CUTSNS_PIN = 0 [14:35:26]*** Brake cut motor [14:35:26]Read from MH i2c: 01 [14:35:26]MH_I2C_Read... [14:35:26]*** Stop cut motor [14:35:26]*** Cut end [14:35:26]Read from MH i2c: 01 07 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [14:35:26]process_action close_receipt done [14:35:26]requested_data is exist [14:35:26]produce_requested_data [14:35:26]requested_item fm.sn is exist - process it [14:35:26]wFMCommunicate request_size=4 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 11 00 00 [14:35:26]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 17 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 35 [14:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:35:26]wFMCommunicate OK [14:35:26]requested_item fd.num is exist - process it [14:35:26]SAM_PROTO_GetFieldsCounters [14:35:26]wFMCommunicate request_size=4 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 13 00 00 [14:35:26]Write to MH i2c: E2 08 00 66 01 80 13 00 00 00 00 00 00 E3 [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:27]Read from MH i2c: E2 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 62 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 62 00 66 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B9 85 00 00 0E 04 04 00 43 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 34 [14:35:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 B9 85 00 00 0E 04 04 00 43 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 [14:35:27]wFMCommunicate OK [14:35:27]SAM_PROTO_GetFieldsCounters done [14:35:27]requested_item shift.num is exist - process it [14:35:27]requested_item shift.opened is exist - process it [14:35:27]req_shift_opened [14:35:27]FM_GetShiftState [14:35:27]SAM_PROTO_GetShiftState [14:35:27]wFMCommunicate request_size=4 [14:35:27]MH_SAM_APDU [14:35:27]CAPDU: 80 13 01 00 [14:35:27]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:27]Read from MH i2c: E2 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 0E 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 30 [14:35:27]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:35:27]wFMCommunicate OK [14:35:27]SAM_PROTO_GetShiftState done [14:35:27]FM_GetShiftState done [14:35:27]req_shift_opened done [14:35:27]requested_item shift.open_date is exist - process it [14:35:27]req_shift_open_date [14:35:27]req_shift_open_date done [14:35:27]produce_requested_data done [14:35:27]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34233,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:35:27]process_action_free close_receipt [14:35:27]json_value_free [14:35:27]json_value_free done [14:35:27]process_json_proto returns [14:35:27]Send response to host [14:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34233,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:35:27]free response buf [14:35:27]execute_script done [14:35:27]execute_script returns [14:35:27]free content buf [14:35:27]Sock 9.Close socket [14:35:27]Sock 9.Thread stoped [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:36]accept exits with 7 [14:35:36]New connection [14:35:36]New thread 3067424100 created [14:35:36]Thread 3067567460 joined [14:35:36]Waiting for new connection... [14:35:36] Sock 7.Parse request [14:35:36]Sock 7.Check first char [14:35:36]Sock 7.First char is OK [14:35:36]request: POST /json_proto HTTP/1.0 [14:35:36]Method: POST [14:35:36]URL: /json_proto [14:35:36]Method is POST - this is cgi request [14:35:36]url: /json_proto [14:35:36]query_string will be loaded in cgi processing [14:35:36]execute_cgi json_proto POST (null) [14:35:36]execute_cgi path=json_proto method=POST [14:35:36]POST find Content-Length [14:35:36]Host: 172.17.38.134:8080 [14:35:36]Content-Length: 743 [14:35:36]Content-Type: application/json [14:35:36] [14:35:36]POST finish read [14:35:36]Found Content-Length = 743 [14:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 34233, "base_FM": "0000000000875095", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:36]execute_script... [14:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 34233, "base_FM": "0000000000875095", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:36]POST & json_proto [14:35:36]process_json_proto [14:35:36]json parsed OK: [14:35:36]protocol is kg_v1.0 [14:35:36]action value=close_receipt [14:35:36]process_action close_receipt [14:35:36]cmd_close_receipt [14:35:36]MH_GetDate [14:35:36]Write to MH i2c: F0 00 00 68 01 58 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: F0 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: F0 09 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: F0 09 00 68 01 00 38 9B 71 66 13 9C 7C 64 9A [14:35:36]GetLastDocTimeStamp 1718721323 [14:35:36]current date 1718721336 [14:35:36]FM_GetShiftState [14:35:36]SAM_PROTO_GetShiftState [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 13 01 00 [14:35:36]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0E 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 32 [14:35:36]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_GetShiftState done [14:35:36]FM_GetShiftState done [14:35:36]opened in 1718670230 [14:35:36]opened+sec_in_day 1718756630 [14:35:36]quantity*price = 100018 [14:35:36]sum+1 = 100020 [14:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 56 18.06.2024 14:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФД осн.: 34233 ФМ осн.: 0000000000875095 ФМ: 0000000000875095 ФД: 34234 ФПД: 117044987069616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143536&type=2&operation_type=1&fn_number=0000000000875095&fd_number=34234&fm=117044987069616&tin=02508201610067®Number=0000000000092786&sum=100000 [14:35:37]StoreToDocumentArchive [14:35:37]shift 323 fd 34234 [14:35:37]save to /storage/0323/doc_00034234 [14:35:37]save last doc name /storage/0323/doc_00034234 to /storage/kkm_last_doc_name [14:35:37]save OK [14:35:37]Clear old archive folders... [14:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:35:37]tlvbuf is 01931DA0 [14:35:37]SAM_PROTO_ClearQueue [14:35:37]wFMCommunicate request_size=4 [14:35:37]MH_SAM_APDU [14:35:37]CAPDU: 80 09 00 00 [14:35:37]Write to MH i2c: E2 08 00 78 01 80 09 00 00 00 00 00 00 EB [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:37]Read from MH i2c: E2 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: E2 03 00 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [14:35:37]RAPDU: 90 00 [14:35:37]wFMCommunicate OK [14:35:37]SAM_PROTO_ClearQueue done [14:35:37]KKMCreateOFDPacket [14:35:37]OFDProtocolAddRootSTLVToBuf [14:35:37]FM_MakeSignedData [14:35:37]FM_MakeSignedData [14:35:37]SAM_PROTO_SignData [14:35:37]wFMCommunicate request_size=4 [14:35:37]MH_SAM_APDU [14:35:37]CAPDU: 80 0D 01 02 [14:35:37]Write to MH i2c: E2 08 00 79 01 80 0D 01 02 00 00 00 00 F3 [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:37]Read from MH i2c: E2 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: E2 03 00 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [14:35:37]RAPDU: 90 00 [14:35:37]wFMCommunicate OK [14:35:37]wFMCommunicate request_size=255 [14:35:37]MH_SAM_APDU [14:35:37]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 38 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 B9 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 [14:35:37]Write to MH i2c: E2 02 01 7A 01 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 38 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 B9 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 00 00 E0 [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 7A 01 00 90 00 EF [14:35:38]RAPDU: 90 00 [14:35:38]wFMCommunicate OK [14:35:38]wFMCommunicate request_size=39 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BA 85 00 00 35 04 06 00 6A 73 A8 E0 84 B0 [14:35:38]Write to MH i2c: E2 2A 00 7B 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BA 85 00 00 35 04 06 00 6A 73 A8 E0 84 B0 00 00 8B [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 7B 01 00 90 00 F0 [14:35:38]RAPDU: 90 00 [14:35:38]wFMCommunicate OK [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 0D 03 02 [14:35:38]Write to MH i2c: E2 08 00 7C 01 80 0D 03 02 00 00 00 00 F8 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 0B 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 0B 00 7C 01 00 F5 D1 05 84 57 BF D7 12 90 00 47 [14:35:38]RAPDU: F5 D1 05 84 57 BF D7 12 90 00 [14:35:38]wFMCommunicate OK [14:35:38]SAM_PROTO_SignData done [14:35:38]FM_MakeSignedData done [14:35:38]CreateOFDProtocolMessage [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 11 00 00 [14:35:38]Write to MH i2c: E2 08 00 7D 01 80 11 00 00 00 00 00 00 F8 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 17 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 17 00 7D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4D [14:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:35:38]wFMCommunicate OK [14:35:38]CreateOFDProtocolMessage done [14:35:38]OFDSenderStorePacket 34234 [14:35:38]StoreOFDPacket docnum=34234 [14:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 6F 83 24 01 AD 36 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 38 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 B9 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BA 85 00 00 35 04 06 00 6A 73 A8 E0 84 B0 F5 D1 05 84 57 BF D7 12 [14:35:38]CheckFolder [14:35:38]dirname=/storage/ofd_packets [14:35:38]CheckFolder done [14:35:38]ProducePacketName [14:35:38]name=ofd_packets/00034234 [14:35:38]NVStorageSaveData ofd_packets/00034234 [14:35:38]File name is /storage/ofd_packets/00034234 [14:35:38]Write 330 bytes [14:35:38]NVStorageSaveData done [14:35:38]OFDSenderStorePacket done [14:35:38]KKMCreateOFDPacket done [14:35:38]NVStorageSaveData kkm_last_timestamp [14:35:38]File name is /storage/kkm_last_timestamp [14:35:38]Write 4 bytes [14:35:38]NVStorageSaveData done [14:35:38]ExternCall_PrintAddStr [14:35:38]wPrintStart [14:35:38]Write to MH i2c: 01 00 00 7E 01 7F [14:35:38]OFD Sender: Processing packet 34234 [packets to send 8, broken 7] [14:35:38]ProducePacketName [14:35:38]name=ofd_packets/00034234 [14:35:38]OFD Sender: To server: pG, [14:35:38]CommunicateWithHost lk.salyk.kg:30040 [14:35:38]ConnectInit lk.salyk.kg [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: 01 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: 01 07 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [14:35:38]RasterBufferAndPrint [14:35:38]line Счет N : (1)672615 [14:35:38]line ИНН: 02508201610067 [14:35:38]line Контрольно-Кассовый Чек [14:35:38]line ВОЗВРАТ ПРОДАЖИ [14:35:38]line ТРК (МРК, ГНК) : 11 [14:35:38]line Товар: 2710194210 [14:35:38]line ДТ(л)-К-5 [14:35:38]line 13.720 * 72.90 [14:35:38]line = 1000.19 [14:35:38]line НДС 12% НСП 1% [14:35:38]line > о реализуемом товаре [14:35:38]line ОКРУГЛЕНИЕ: -0.19 [14:35:38]line ИТОГО: 1000.00 [14:35:38]line НСП 1% : 8.85 [14:35:38]line НДС 12% : 106.21 [14:35:38]line Наличными: 1000.00 [14:35:38]line Безнал.: 0.00 [14:35:38]line Место: АЗС № 120 "Партнер Нефть" [14:35:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:35:38]line СНО: Общий режим [14:35:38]line Чек 56 18.06.2024 14:35 [14:35:38]line Смена: 323 ФФД: 1.0 [14:35:38]line ЗНМ: 0300000172 [14:35:38]line РНМ: 0000000000092786 [14:35:38]line Версия ККМ: 001 [14:35:38]line ФД осн.: 34233 [14:35:38]line ФМ осн.: 0000000000875095 [14:35:38]line ФМ: 0000000000875095 [14:35:38]line ФД: 34234 [14:35:38]line ФПД: 117044987069616 [14:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143536&type=2&operation_type=1&fn_number=0000000000875095&fd_number=34234&fm=117044987069616&tin=02508201610067®Number=0000000000092786&sum=100000 [14:35:38]Connected sock=10 [14:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 6F 83 24 01 AD 36 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 38 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 B9 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BA 85 00 00 35 04 06 00 6A 73 A8 E0 84 B0 F5 D1 05 84 57 BF D7 12 [14:35:38]written 0, free lines is 4095 [14:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BA 8C 47 00 5F 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 35 30 39 35 10 04 04 00 BA 85 00 00 F4 03 04 00 08 42 71 66 B6 04 01 00 00 7C D7 BD C9 7C 4F 29 9E [14:35:38]CommunicateWithHost err = 0 [14:35:38]CheckOFDResponse [14:35:38]1017 (14) - 77093643461234 [14:35:38]1041 (16) - 0000000000875095 [14:35:38]1040 (4) - 34234 [14:35:38]1012 (4) - 18.06.2024 08:15 [14:35:38]1206 (1) - 0 [14:35:38]OFD Sender: Remove packet 34234 [14:35:38]ProducePacketName [14:35:38]name=ofd_packets/00034234 [14:35:38]NVStorageDeleteData [14:35:39]Write to MH i2c: 01 00 00 A9 01 AA [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 07 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 07 00 A9 01 00 00 00 00 00 DF 0C 9C [14:35:39]RasterBufferAndPrint [14:35:39]line [14:35:39]line [14:35:39]line [14:35:39]line [14:35:39]line [14:35:39]written 0, free lines is 3303 [14:35:39]MH_Cut [14:35:39]Write to MH i2c: D1 01 00 B0 01 01 83 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: D1 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: D1 01 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: D1 01 00 B0 01 00 82 [14:35:39]Write to MH i2c: 01 00 00 B1 01 B2 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]OFD Sender: No OFD packet to send [14:35:39]*** Cut start [14:35:39]*** Partial cut [14:35:39]*** CUTSNS_PIN = 1 [14:35:39]*** CUTSNS_PIN = 0 [14:35:40]*** Brake cut motor [14:35:40]Read from MH i2c: 01 [14:35:40]MH_I2C_Read... [14:35:40]*** Stop cut motor [14:35:40]*** Cut end [14:35:40]Read from MH i2c: 01 07 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 B1 01 00 00 00 00 00 FF 0F C7 [14:35:40]process_action close_receipt done [14:35:40]requested_data is exist [14:35:40]produce_requested_data [14:35:40]requested_item fm.sn is exist - process it [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 11 00 00 [14:35:40]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 82 [14:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:35:40]wFMCommunicate OK [14:35:40]requested_item fd.num is exist - process it [14:35:40]SAM_PROTO_GetFieldsCounters [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 13 00 00 [14:35:40]Write to MH i2c: E2 08 00 B3 01 80 13 00 00 00 00 00 00 30 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 62 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 62 00 B3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BA 85 00 00 0E 04 04 00 43 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 85 [14:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BA 85 00 00 0E 04 04 00 43 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 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_GetFieldsCounters done [14:35:40]requested_item shift.num is exist - process it [14:35:40]requested_item shift.opened is exist - process it [14:35:40]req_shift_opened [14:35:40]FM_GetShiftState [14:35:40]SAM_PROTO_GetShiftState [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 13 01 00 [14:35:40]Write to MH i2c: E2 08 00 B4 01 80 13 01 00 00 00 00 00 32 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 B4 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 7D [14:35:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_GetShiftState done [14:35:40]FM_GetShiftState done [14:35:40]req_shift_opened done [14:35:40]requested_item shift.open_date is exist - process it [14:35:40]req_shift_open_date [14:35:40]req_shift_open_date done [14:35:40]produce_requested_data done [14:35:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34234,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:35:40]process_action_free close_receipt [14:35:40]json_value_free [14:35:40]json_value_free done [14:35:40]process_json_proto returns [14:35:40]Send response to host [14:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34234,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:35:40]free response buf [14:35:40]execute_script done [14:35:40]execute_script returns [14:35:40]free content buf [14:35:40]Sock 7.Close socket [14:35:40]Sock 7.Thread stoped [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:04]accept exits with 9 [14:36:04]New connection [14:36:04]New thread 3067567460 created [14:36:04]Thread 3067424100 joined [14:36:04]Waiting for new connection... [14:36:04] Sock 9.Parse request [14:36:04]Sock 9.Check first char [14:36:04]Sock 9.First char is OK [14:36:04]request: POST /json_proto HTTP/1.0 [14:36:04]Method: POST [14:36:04]URL: /json_proto [14:36:04]Method is POST - this is cgi request [14:36:04]url: /json_proto [14:36:04]query_string will be loaded in cgi processing [14:36:04]execute_cgi json_proto POST (null) [14:36:04]execute_cgi path=json_proto method=POST [14:36:04]POST find Content-Length [14:36:04]Host: 172.17.38.134:8080 [14:36:04]Content-Length: 677 [14:36:04]Content-Type: application/json [14:36:04] [14:36:04]POST finish read [14:36:04]Found Content-Length = 677 [14:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.340, "sum" : 155.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 155.00, "total" : 155.00, "payments": [ { "type": 0, "sum" : 155.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:04]execute_script... [14:36:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.340, "sum" : 155.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 155.00, "total" : 155.00, "payments": [ { "type": 0, "sum" : 155.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:04]POST & json_proto [14:36:04]process_json_proto [14:36:04]json parsed OK: [14:36:04]protocol is kg_v1.0 [14:36:04]action value=close_receipt [14:36:04]process_action close_receipt [14:36:04]cmd_close_receipt [14:36:04]MH_GetDate [14:36:04]Write to MH i2c: F0 00 00 B5 01 A5 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: F0 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: F0 09 00 [14:36:04]MH_I2C_Read... [14:36:04]Read from MH i2c: F0 09 00 B5 01 00 55 9B 71 66 13 9C 7C 64 04 [14:36:04]GetLastDocTimeStamp 1718721336 [14:36:04]current date 1718721365 [14:36:04]FM_GetShiftState [14:36:04]SAM_PROTO_GetShiftState [14:36:04]wFMCommunicate request_size=4 [14:36:04]MH_SAM_APDU [14:36:04]CAPDU: 80 13 01 00 [14:36:04]Write to MH i2c: E2 08 00 B6 01 80 13 01 00 00 00 00 00 34 [14:36:04]Write i2c OK [14:36:04]MH_I2C_Read... [14:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:05]Read from MH i2c: E2 [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: E2 0E 00 [14:36:05]MH_I2C_Read... [14:36:05]Read from MH i2c: E2 0E 00 B6 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 7F [14:36:05]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:36:05]wFMCommunicate OK [14:36:05]SAM_PROTO_GetShiftState done [14:36:05]FM_GetShiftState done [14:36:05]opened in 1718670230 [14:36:05]opened+sec_in_day 1718756630 [14:36:05]quantity*price = 15537 [14:36:05]sum+1 = 15539 [14:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 155.00 Внесено: 155.00 СДАЧА: 0.00 НСП 1% : 1.37 НДС 12% : 16.50 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 57 18.06.2024 14:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34235 ФПД: 230244129924992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143605&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34235&fm=230244129924992&tin=02508201610067®Number=0000000000092786&sum=15500 [14:36:06]StoreToDocumentArchive [14:36:06]shift 323 fd 34235 [14:36:06]save to /storage/0323/doc_00034235 [14:36:06]save last doc name /storage/0323/doc_00034235 to /storage/kkm_last_doc_name [14:36:06]save OK [14:36:06]Clear old archive folders... [14:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:06]tlvbuf is 018E99A0 [14:36:06]SAM_PROTO_ClearQueue [14:36:06]wFMCommunicate request_size=4 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 09 00 00 [14:36:06]Write to MH i2c: E2 08 00 C3 01 80 09 00 00 00 00 00 00 36 [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [14:36:06]RAPDU: 90 00 [14:36:06]wFMCommunicate OK [14:36:06]SAM_PROTO_ClearQueue done [14:36:06]KKMCreateOFDPacket [14:36:06]OFDProtocolAddRootSTLVToBuf [14:36:06]FM_MakeSignedData [14:36:06]FM_MakeSignedData [14:36:06]SAM_PROTO_SignData [14:36:06]wFMCommunicate request_size=4 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 0D 01 02 [14:36:06]Write to MH i2c: E2 08 00 C4 01 80 0D 01 02 00 00 00 00 3E [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [14:36:06]RAPDU: 90 00 [14:36:06]wFMCommunicate OK [14:36:06]wFMCommunicate request_size=255 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 55 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BB 85 00 00 35 04 06 00 D1 [14:36:06]Write to MH i2c: E2 02 01 C5 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 24 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 55 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BB 85 00 00 35 04 06 00 D1 00 00 5B [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 C5 01 00 90 00 3A [14:36:06]RAPDU: 90 00 [14:36:06]wFMCommunicate OK [14:36:06]wFMCommunicate request_size=10 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 0D 02 02 05 67 E3 93 67 80 [14:36:06]Write to MH i2c: E2 0D 00 C6 01 80 0D 02 02 05 00 67 E3 93 67 80 00 00 0F [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 03 00 C6 01 00 90 00 3B [14:36:06]RAPDU: 90 00 [14:36:06]wFMCommunicate OK [14:36:06]wFMCommunicate request_size=4 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 0D 03 02 [14:36:06]Write to MH i2c: E2 08 00 C7 01 80 0D 03 02 00 00 00 00 43 [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 0B 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 0B 00 C7 01 00 3B C1 CF CC BA 14 88 B0 90 00 E1 [14:36:06]RAPDU: 3B C1 CF CC BA 14 88 B0 90 00 [14:36:06]wFMCommunicate OK [14:36:06]SAM_PROTO_SignData done [14:36:06]FM_MakeSignedData done [14:36:06]CreateOFDProtocolMessage [14:36:06]wFMCommunicate request_size=4 [14:36:06]MH_SAM_APDU [14:36:06]CAPDU: 80 11 00 00 [14:36:06]Write to MH i2c: E2 08 00 C8 01 80 11 00 00 00 00 00 00 43 [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:06]Read from MH i2c: E2 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 17 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: E2 17 00 C8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 98 [14:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:36:06]wFMCommunicate OK [14:36:06]CreateOFDProtocolMessage done [14:36:06]OFDSenderStorePacket 34235 [14:36:06]StoreOFDPacket docnum=34235 [14:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 B7 BD 07 01 AC D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 55 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BB 85 00 00 35 04 06 00 D1 67 E3 93 67 80 3B C1 CF CC BA 14 88 B0 [14:36:06]CheckFolder [14:36:06]dirname=/storage/ofd_packets [14:36:06]CheckFolder done [14:36:06]ProducePacketName [14:36:06]name=ofd_packets/00034235 [14:36:06]NVStorageSaveData ofd_packets/00034235 [14:36:06]File name is /storage/ofd_packets/00034235 [14:36:06]Write 301 bytes [14:36:06]NVStorageSaveData done [14:36:06]OFDSenderStorePacket done [14:36:06]KKMCreateOFDPacket done [14:36:06]NVStorageSaveData kkm_last_timestamp [14:36:06]File name is /storage/kkm_last_timestamp [14:36:06]Write 4 bytes [14:36:06]NVStorageSaveData done [14:36:06]ExternCall_PrintAddStr [14:36:06]wPrintStart [14:36:06]Write to MH i2c: 01 00 00 C9 01 CA [14:36:06]Write i2c OK [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: 01 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: 01 07 00 [14:36:06]MH_I2C_Read... [14:36:06]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [14:36:06]RasterBufferAndPrint [14:36:06]line Счет N : (1)672614 [14:36:06]line ИНН: 02508201610067 [14:36:06]line Контрольно-Кассовый Чек [14:36:06]line ПРОДАЖА [14:36:06]line ТРК (МРК, ГНК) : 42 [14:36:06]line Товар: 2710124130 [14:36:06]line Аи-92-К-5 [14:36:06]line 2.340 * 66.40 [14:36:06]line = 155.38 [14:36:06]line НДС 12% НСП 1% [14:36:06]line > о реализуемом товаре [14:36:06]line ОКРУГЛЕНИЕ: -0.38 [14:36:06]line ИТОГО: 155.00 [14:36:06]line Внесено: 155.00 [14:36:06]line СДАЧА: 0.00 [14:36:06]line НСП 1% : 1.37 [14:36:06]line НДС 12% : 16.50 [14:36:06]line Наличными: 155.00 [14:36:06]line Безнал.: 0.00 [14:36:06]line Место: АЗС № 120 "Партнер Нефть" [14:36:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:36:06]line СНО: Общий режим [14:36:06]line Чек 57 18.06.2024 14:36 [14:36:06]line Смена: 323 ФФД: 1.0 [14:36:06]line ЗНМ: 0300000172 [14:36:06]line РНМ: 0000000000092786 [14:36:06]line Версия ККМ: 001 [14:36:06]line ФМ: 0000000000875095 [14:36:06]line ФД: 34235 [14:36:06]line ФПД: 230244129924992 [14:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143605&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34235&fm=230244129924992&tin=02508201610067®Number=0000000000092786&sum=15500 [14:36:07]OFD Sender: Processing packet 34235 [packets to send 8, broken 7] [14:36:07]ProducePacketName [14:36:07]name=ofd_packets/00034235 [14:36:07]OFD Sender: To server: pG, [14:36:07]CommunicateWithHost lk.salyk.kg:30040 [14:36:07]ConnectInit lk.salyk.kg [14:36:07]written 0, free lines is 4095 [14:36:07]Connected sock=11 [14:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 B7 BD 07 01 AC D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 55 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BB 85 00 00 35 04 06 00 D1 67 E3 93 67 80 3B C1 CF CC BA 14 88 B0 [14:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 18 39 47 00 0E 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BB 85 00 00 F4 03 04 00 25 42 71 66 B6 04 01 00 00 45 D8 50 7B E4 FA 55 9E [14:36:07]CommunicateWithHost err = 0 [14:36:07]CheckOFDResponse [14:36:07]1017 (14) - 77093643461234 [14:36:07]1041 (16) - 0000000000875095 [14:36:07]1040 (4) - 34235 [14:36:07]1012 (4) - 18.06.2024 08:15 [14:36:07]1206 (1) - 0 [14:36:07]OFD Sender: Remove packet 34235 [14:36:07]ProducePacketName [14:36:07]name=ofd_packets/00034235 [14:36:07]NVStorageDeleteData [14:36:07]Write to MH i2c: 01 00 00 F4 01 F5 [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: 01 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: 01 07 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: 01 07 00 F4 01 00 00 00 00 00 DA 0C E2 [14:36:07]RasterBufferAndPrint [14:36:07]line [14:36:07]line [14:36:07]line [14:36:07]line [14:36:07]line [14:36:07]written 0, free lines is 3298 [14:36:07]MH_Cut [14:36:07]Write to MH i2c: D1 01 00 FB 01 01 CE [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: D1 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: D1 01 00 [14:36:07]MH_I2C_Read... [14:36:07]Read from MH i2c: D1 01 00 FB 01 00 CD [14:36:07]Write to MH i2c: 01 00 00 FC 01 FD [14:36:07]Write i2c OK [14:36:07]MH_I2C_Read... [14:36:07]OFD Sender: No OFD packet to send [14:36:08]*** Cut start [14:36:08]*** Partial cut [14:36:08]*** CUTSNS_PIN = 1 [14:36:08]*** CUTSNS_PIN = 0 [14:36:08]*** Brake cut motor [14:36:08]Read from MH i2c: 01 [14:36:08]MH_I2C_Read... [14:36:08]*** Stop cut motor [14:36:08]*** Cut end [14:36:08]Read from MH i2c: 01 07 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [14:36:08]process_action close_receipt done [14:36:08]requested_data is exist [14:36:08]produce_requested_data [14:36:08]requested_item fm.sn is exist - process it [14:36:08]wFMCommunicate request_size=4 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 11 00 00 [14:36:08]Write to MH i2c: E2 08 00 FD 01 80 11 00 00 00 00 00 00 78 [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 17 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 17 00 FD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CD [14:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:36:08]wFMCommunicate OK [14:36:08]requested_item fd.num is exist - process it [14:36:08]SAM_PROTO_GetFieldsCounters [14:36:08]wFMCommunicate request_size=4 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 13 00 00 [14:36:08]Write to MH i2c: E2 08 00 FE 01 80 13 00 00 00 00 00 00 7B [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 62 00 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 62 00 FE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BB 85 00 00 0E 04 04 00 43 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 D4 [14:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BB 85 00 00 0E 04 04 00 43 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 [14:36:09]wFMCommunicate OK [14:36:09]SAM_PROTO_GetFieldsCounters done [14:36:09]requested_item shift.num is exist - process it [14:36:09]requested_item shift.opened is exist - process it [14:36:09]req_shift_opened [14:36:09]FM_GetShiftState [14:36:09]SAM_PROTO_GetShiftState [14:36:09]wFMCommunicate request_size=4 [14:36:09]MH_SAM_APDU [14:36:09]CAPDU: 80 13 01 00 [14:36:09]Write to MH i2c: E2 08 00 FF 01 80 13 01 00 00 00 00 00 7D [14:36:09]Write i2c OK [14:36:09]MH_I2C_Read... [14:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:09]Read from MH i2c: E2 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 0E 00 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 0E 00 FF 01 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 C8 [14:36:09]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:36:09]wFMCommunicate OK [14:36:09]SAM_PROTO_GetShiftState done [14:36:09]FM_GetShiftState done [14:36:09]req_shift_opened done [14:36:09]requested_item shift.open_date is exist - process it [14:36:09]req_shift_open_date [14:36:09]req_shift_open_date done [14:36:09]produce_requested_data done [14:36:09]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34235,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:36:09]process_action_free close_receipt [14:36:09]json_value_free [14:36:09]json_value_free done [14:36:09]process_json_proto returns [14:36:09]Send response to host [14:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34235,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:36:09]free response buf [14:36:09]execute_script done [14:36:09]execute_script returns [14:36:09]free content buf [14:36:09]Sock 9.Close socket [14:36:09]Sock 9.Thread stoped [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:21]accept exits with 7 [14:36:21]New connection [14:36:21]New thread 3067424100 created [14:36:21]Thread 3067567460 joined [14:36:21]Waiting for new connection... [14:36:21] Sock 7.Parse request [14:36:21]Sock 7.Check first char [14:36:21]Sock 7.First char is OK [14:36:21]request: POST /json_proto HTTP/1.0 [14:36:21]Method: POST [14:36:21]URL: /json_proto [14:36:21]Method is POST - this is cgi request [14:36:21]url: /json_proto [14:36:21]query_string will be loaded in cgi processing [14:36:21]execute_cgi json_proto POST (null) [14:36:21]execute_cgi path=json_proto method=POST [14:36:21]POST find Content-Length [14:36:21]Host: 172.17.38.134:8080 [14:36:21]Content-Length: 687 [14:36:21]Content-Type: application/json [14:36:21] [14:36:21]POST finish read [14:36:21]Found Content-Length = 687 [14:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:21]execute_script... [14:36:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:21]POST & json_proto [14:36:21]process_json_proto [14:36:21]json parsed OK: [14:36:21]protocol is kg_v1.0 [14:36:21]action value=close_receipt [14:36:21]process_action close_receipt [14:36:21]cmd_close_receipt [14:36:21]MH_GetDate [14:36:21]Write to MH i2c: F0 00 00 00 02 F1 [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: F0 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: F0 09 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: F0 09 00 00 02 00 66 9B 71 66 13 9C 7C 64 61 [14:36:21]GetLastDocTimeStamp 1718721365 [14:36:21]current date 1718721382 [14:36:21]FM_GetShiftState [14:36:21]SAM_PROTO_GetShiftState [14:36:21]wFMCommunicate request_size=4 [14:36:21]MH_SAM_APDU [14:36:21]CAPDU: 80 13 01 00 [14:36:21]Write to MH i2c: E2 08 00 01 02 80 13 01 00 00 00 00 00 80 [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:21]Read from MH i2c: E2 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 0E 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 0E 00 01 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CB [14:36:21]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:36:21]wFMCommunicate OK [14:36:21]SAM_PROTO_GetShiftState done [14:36:21]FM_GetShiftState done [14:36:21]opened in 1718670230 [14:36:21]opened+sec_in_day 1718756630 [14:36:21]quantity*price = 100018 [14:36:21]sum+1 = 100020 [14:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 58 18.06.2024 14:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34236 ФПД: 110812593780130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143622&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34236&fm=110812593780130&tin=02508201610067®Number=0000000000092786&sum=100000 [14:36:22]StoreToDocumentArchive [14:36:22]shift 323 fd 34236 [14:36:22]save to /storage/0323/doc_00034236 [14:36:22]save last doc name /storage/0323/doc_00034236 to /storage/kkm_last_doc_name [14:36:22]save OK [14:36:22]Clear old archive folders... [14:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:36:22]tlvbuf is 0191C790 [14:36:22]SAM_PROTO_ClearQueue [14:36:22]wFMCommunicate request_size=4 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 09 00 00 [14:36:22]Write to MH i2c: E2 08 00 0E 02 80 09 00 00 00 00 00 00 82 [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 0E 02 00 90 00 84 [14:36:22]RAPDU: 90 00 [14:36:22]wFMCommunicate OK [14:36:22]SAM_PROTO_ClearQueue done [14:36:22]KKMCreateOFDPacket [14:36:22]OFDProtocolAddRootSTLVToBuf [14:36:22]FM_MakeSignedData [14:36:22]FM_MakeSignedData [14:36:22]SAM_PROTO_SignData [14:36:22]wFMCommunicate request_size=4 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 0D 01 02 [14:36:22]Write to MH i2c: E2 08 00 0F 02 80 0D 01 02 00 00 00 00 8A [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:22]Read from MH i2c: E2 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 [14:36:22]MH_I2C_Read... [14:36:22]Read from MH i2c: E2 03 00 0F 02 00 90 00 85 [14:36:22]RAPDU: 90 00 [14:36:22]wFMCommunicate OK [14:36:22]wFMCommunicate request_size=255 [14:36:22]MH_SAM_APDU [14:36:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BC 85 00 00 35 04 06 00 [14:36:22]Write to MH i2c: E2 02 01 10 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BC 85 00 00 35 04 06 00 00 00 78 [14:36:22]Write i2c OK [14:36:22]MH_I2C_Read... [14:36:22]OFD Sender: No OFD packet to send [14:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 10 02 00 90 00 86 [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=11 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 02 02 06 64 C8 91 49 F5 A2 [14:36:23]Write to MH i2c: E2 0E 00 11 02 80 0D 02 02 06 00 64 C8 91 49 F5 A2 00 00 36 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 03 00 11 02 00 90 00 87 [14:36:23]RAPDU: 90 00 [14:36:23]wFMCommunicate OK [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 0D 03 02 [14:36:23]Write to MH i2c: E2 08 00 12 02 80 0D 03 02 00 00 00 00 8F [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 0B 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 0B 00 12 02 00 29 79 6E 6F 54 02 D8 50 90 00 8D [14:36:23]RAPDU: 29 79 6E 6F 54 02 D8 50 90 00 [14:36:23]wFMCommunicate OK [14:36:23]SAM_PROTO_SignData done [14:36:23]FM_MakeSignedData done [14:36:23]CreateOFDProtocolMessage [14:36:23]wFMCommunicate request_size=4 [14:36:23]MH_SAM_APDU [14:36:23]CAPDU: 80 11 00 00 [14:36:23]Write to MH i2c: E2 08 00 13 02 80 11 00 00 00 00 00 00 8F [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:23]Read from MH i2c: E2 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 17 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: E2 17 00 13 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E4 [14:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:36:23]wFMCommunicate OK [14:36:23]CreateOFDProtocolMessage done [14:36:23]OFDSenderStorePacket 34236 [14:36:23]StoreOFDPacket docnum=34236 [14:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 02 0A 08 01 A2 F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BC 85 00 00 35 04 06 00 64 C8 91 49 F5 A2 29 79 6E 6F 54 02 D8 50 [14:36:23]CheckFolder [14:36:23]dirname=/storage/ofd_packets [14:36:23]CheckFolder done [14:36:23]ProducePacketName [14:36:23]name=ofd_packets/00034236 [14:36:23]NVStorageSaveData ofd_packets/00034236 [14:36:23]File name is /storage/ofd_packets/00034236 [14:36:23]Write 302 bytes [14:36:23]NVStorageSaveData done [14:36:23]OFDSenderStorePacket done [14:36:23]KKMCreateOFDPacket done [14:36:23]NVStorageSaveData kkm_last_timestamp [14:36:23]File name is /storage/kkm_last_timestamp [14:36:23]Write 4 bytes [14:36:23]NVStorageSaveData done [14:36:23]ExternCall_PrintAddStr [14:36:23]wPrintStart [14:36:23]Write to MH i2c: 01 00 00 14 02 16 [14:36:23]Write i2c OK [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 07 00 [14:36:23]MH_I2C_Read... [14:36:23]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 FF 0F 2B [14:36:23]RasterBufferAndPrint [14:36:23]line Счет N : (1)672613 [14:36:23]line ИНН: 02508201610067 [14:36:23]line Контрольно-Кассовый Чек [14:36:23]line ПРОДАЖА [14:36:23]line ТРК (МРК, ГНК) : 21 [14:36:23]line Товар: 2710194210 [14:36:23]line ДТ(л)-К-5 [14:36:23]line 13.720 * 72.90 [14:36:23]line = 1000.19 [14:36:23]line НДС 12% НСП 1% [14:36:23]line > о реализуемом товаре [14:36:23]line ОКРУГЛЕНИЕ: -0.19 [14:36:23]line ИТОГО: 1000.00 [14:36:23]line Внесено: 1000.00 [14:36:23]line СДАЧА: 0.00 [14:36:23]line НСП 1% : 8.85 [14:36:23]line НДС 12% : 106.21 [14:36:23]line Наличными: 1000.00 [14:36:23]line Безнал.: 0.00 [14:36:23]line Место: АЗС № 120 "Партнер Нефть" [14:36:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:36:23]line СНО: Общий режим [14:36:23]line Чек 58 18.06.2024 14:36 [14:36:23]line Смена: 323 ФФД: 1.0 [14:36:23]line ЗНМ: 0300000172 [14:36:23]line РНМ: 0000000000092786 [14:36:23]line Версия ККМ: 001 [14:36:23]line ФМ: 0000000000875095 [14:36:23]line ФД: 34236 [14:36:23]line ФПД: 110812593780130 [14:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T143622&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34236&fm=110812593780130&tin=02508201610067®Number=0000000000092786&sum=100000 [14:36:23]OFD Sender: Processing packet 34236 [packets to send 8, broken 7] [14:36:23]ProducePacketName [14:36:23]name=ofd_packets/00034236 [14:36:23]OFD Sender: To server: pG, [14:36:23]CommunicateWithHost lk.salyk.kg:30040 [14:36:23]ConnectInit lk.salyk.kg [14:36:23]written 0, free lines is 4095 [14:36:23]Connected sock=10 [14:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 02 0A 08 01 A2 F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 9B 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BC 85 00 00 35 04 06 00 64 C8 91 49 F5 A2 29 79 6E 6F 54 02 D8 50 [14:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 91 CE 47 00 7B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BC 85 00 00 F4 03 04 00 35 42 71 66 B6 04 01 00 00 2B 49 27 12 26 1D 3C 06 [14:36:24]CommunicateWithHost err = 0 [14:36:24]CheckOFDResponse [14:36:24]1017 (14) - 77093643461234 [14:36:24]1041 (16) - 0000000000875095 [14:36:24]1040 (4) - 34236 [14:36:24]1012 (4) - 18.06.2024 08:15 [14:36:24]1206 (1) - 0 [14:36:24]OFD Sender: Remove packet 34236 [14:36:24]ProducePacketName [14:36:24]name=ofd_packets/00034236 [14:36:24]NVStorageDeleteData [14:36:24]Write to MH i2c: 01 00 00 3F 02 41 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 D8 0C 2C [14:36:24]RasterBufferAndPrint [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]line [14:36:24]written 0, free lines is 3293 [14:36:24]MH_Cut [14:36:24]Write to MH i2c: D1 01 00 46 02 01 1A [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 01 00 [14:36:24]MH_I2C_Read... [14:36:24]Read from MH i2c: D1 01 00 46 02 00 19 [14:36:24]Write to MH i2c: 01 00 00 47 02 49 [14:36:24]Write i2c OK [14:36:24]MH_I2C_Read... [14:36:24]OFD Sender: No OFD packet to send [14:36:24]*** Cut start [14:36:24]*** Partial cut [14:36:24]*** CUTSNS_PIN = 1 [14:36:24]*** CUTSNS_PIN = 0 [14:36:25]*** Brake cut motor [14:36:25]Read from MH i2c: 01 [14:36:25]MH_I2C_Read... [14:36:25]*** Stop cut motor [14:36:25]*** Cut end [14:36:25]Read from MH i2c: 01 07 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: 01 07 00 47 02 00 00 00 00 00 FF 0F 5E [14:36:25]process_action close_receipt done [14:36:25]requested_data is exist [14:36:25]produce_requested_data [14:36:25]requested_item fm.sn is exist - process it [14:36:25]wFMCommunicate request_size=4 [14:36:25]MH_SAM_APDU [14:36:25]CAPDU: 80 11 00 00 [14:36:25]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:25]Read from MH i2c: E2 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 17 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 19 [14:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:36:25]wFMCommunicate OK [14:36:25]requested_item fd.num is exist - process it [14:36:25]SAM_PROTO_GetFieldsCounters [14:36:25]wFMCommunicate request_size=4 [14:36:25]MH_SAM_APDU [14:36:25]CAPDU: 80 13 00 00 [14:36:25]Write to MH i2c: E2 08 00 49 02 80 13 00 00 00 00 00 00 C7 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:25]Read from MH i2c: E2 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 62 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 62 00 49 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BC 85 00 00 0E 04 04 00 43 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 24 [14:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BC 85 00 00 0E 04 04 00 43 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 [14:36:25]wFMCommunicate OK [14:36:25]SAM_PROTO_GetFieldsCounters done [14:36:25]requested_item shift.num is exist - process it [14:36:25]requested_item shift.opened is exist - process it [14:36:25]req_shift_opened [14:36:25]FM_GetShiftState [14:36:25]SAM_PROTO_GetShiftState [14:36:25]wFMCommunicate request_size=4 [14:36:25]MH_SAM_APDU [14:36:25]CAPDU: 80 13 01 00 [14:36:25]Write to MH i2c: E2 08 00 4A 02 80 13 01 00 00 00 00 00 C9 [14:36:25]Write i2c OK [14:36:25]MH_I2C_Read... [14:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:25]Read from MH i2c: E2 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 0E 00 [14:36:25]MH_I2C_Read... [14:36:25]Read from MH i2c: E2 0E 00 4A 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 14 [14:36:25]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:36:25]wFMCommunicate OK [14:36:25]SAM_PROTO_GetShiftState done [14:36:25]FM_GetShiftState done [14:36:25]req_shift_opened done [14:36:25]requested_item shift.open_date is exist - process it [14:36:25]req_shift_open_date [14:36:25]req_shift_open_date done [14:36:25]produce_requested_data done [14:36:25]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34236,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:36:25]process_action_free close_receipt [14:36:25]json_value_free [14:36:25]json_value_free done [14:36:25]process_json_proto returns [14:36:25]Send response to host [14:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34236,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:36:25]free response buf [14:36:25]execute_script done [14:36:25]execute_script returns [14:36:25]free content buf [14:36:25]Sock 7.Close socket [14:36:25]Sock 7.Thread stoped [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:27]accept exits with 9 [14:54:27]New connection [14:54:27]New thread 3067567460 created [14:54:27]Thread 3067424100 joined [14:54:27]Waiting for new connection... [14:54:27] Sock 9.Parse request [14:54:27]Sock 9.Check first char [14:54:27]Sock 9.First char is OK [14:54:27]request: POST /json_proto HTTP/1.0 [14:54:27]Method: POST [14:54:27]URL: /json_proto [14:54:27]Method is POST - this is cgi request [14:54:27]url: /json_proto [14:54:27]query_string will be loaded in cgi processing [14:54:27]execute_cgi json_proto POST (null) [14:54:27]execute_cgi path=json_proto method=POST [14:54:27]POST find Content-Length [14:54:27]Host: 172.17.38.134:8080 [14:54:27]Content-Length: 798 [14:54:27]Content-Type: application/json [14:54:27] [14:54:27]POST finish read [14:54:27]Found Content-Length = 798 [14:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184028", "tax_sys" : 0, "items" : [ { "code": "4700000281992", "name": "Kyrgyz Whisky 0.7 \u043B 3 \u043B\u0435\u0442\u043D\u0438\u0439", "price" : 790.00, "quantity" : 1.000, "sum" : 790.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" : 790.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:27]execute_script... [14:54:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184028", "tax_sys" : 0, "items" : [ { "code": "4700000281992", "name": "Kyrgyz Whisky 0.7 \u043B 3 \u043B\u0435\u0442\u043D\u0438\u0439", "price" : 790.00, "quantity" : 1.000, "sum" : 790.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" : 790.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:27]POST & json_proto [14:54:27]process_json_proto [14:54:27]json parsed OK: [14:54:27]protocol is kg_v1.0 [14:54:27]action value=close_receipt [14:54:27]process_action close_receipt [14:54:27]cmd_close_receipt [14:54:27]MH_GetDate [14:54:27]Write to MH i2c: F0 00 00 4B 02 3C [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: F0 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: F0 09 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: F0 09 00 4B 02 00 A3 9F 71 66 13 9C 7C 64 ED [14:54:27]GetLastDocTimeStamp 1718721382 [14:54:27]current date 1718722467 [14:54:27]FM_GetShiftState [14:54:27]SAM_PROTO_GetShiftState [14:54:27]wFMCommunicate request_size=4 [14:54:27]MH_SAM_APDU [14:54:27]CAPDU: 80 13 01 00 [14:54:27]Write to MH i2c: E2 08 00 4C 02 80 13 01 00 00 00 00 00 CB [14:54:27]Write i2c OK [14:54:27]MH_I2C_Read... [14:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:27]Read from MH i2c: E2 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0E 00 [14:54:27]MH_I2C_Read... [14:54:27]Read from MH i2c: E2 0E 00 4C 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 16 [14:54:27]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:54:27]wFMCommunicate OK [14:54:27]SAM_PROTO_GetShiftState done [14:54:27]FM_GetShiftState done [14:54:27]opened in 1718670230 [14:54:27]opened+sec_in_day 1718756630 [14:54:27]quantity*price = 79000 [14:54:27]sum+1 = 79001 [14:54:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 790.00 НСП 1% : 6.99 НДС 12% : 83.89 Наличными: 0.00 Безнал.: 790.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 59 18.06.2024 14:54 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34237 ФПД: 122449850246382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T145427&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34237&fm=122449850246382&tin=02508201610067®Number=0000000000092786&sum=79000 0 [14:54:28]StoreToDocumentArchive [14:54:28]shift 323 fd 34237 [14:54:28]save to /storage/0323/doc_00034237 [14:54:28]save last doc name /storage/0323/doc_00034237 to /storage/kkm_last_doc_name [14:54:28]save OK [14:54:28]Clear old archive folders... [14:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=277 [14:54:28]tlvbuf is 019282F0 [14:54:28]SAM_PROTO_ClearQueue [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 09 00 00 [14:54:28]Write to MH i2c: E2 08 00 59 02 80 09 00 00 00 00 00 00 CD [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 59 02 00 90 00 CF [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]SAM_PROTO_ClearQueue done [14:54:28]KKMCreateOFDPacket [14:54:28]OFDProtocolAddRootSTLVToBuf [14:54:28]FM_MakeSignedData [14:54:28]FM_MakeSignedData [14:54:28]SAM_PROTO_SignData [14:54:28]wFMCommunicate request_size=4 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 0D 01 02 [14:54:28]Write to MH i2c: E2 08 00 5A 02 80 0D 01 02 00 00 00 00 D5 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 5A 02 00 90 00 D0 [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]wFMCommunicate request_size=255 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 39 32 06 04 23 00 4B 79 72 67 79 7A 20 57 68 69 73 6B 79 20 30 2E 37 20 D0 BB 20 33 20 D0 BB D0 B5 D1 82 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 34 01 00 00 00 13 04 06 00 98 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 34 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 9F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 [14:54:28]Write to MH i2c: E2 02 01 5B 02 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 39 32 06 04 23 00 4B 79 72 67 79 7A 20 57 68 69 73 6B 79 20 30 2E 37 20 D0 BB 20 33 20 D0 BB D0 B5 D1 82 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 34 01 00 00 00 13 04 06 00 98 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 34 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 9F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 00 00 D6 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:28]Read from MH i2c: E2 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 [14:54:28]MH_I2C_Read... [14:54:28]Read from MH i2c: E2 03 00 5B 02 00 90 00 D1 [14:54:28]RAPDU: 90 00 [14:54:28]wFMCommunicate OK [14:54:28]wFMCommunicate request_size=36 [14:54:28]MH_SAM_APDU [14:54:28]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BD 85 00 00 35 04 06 00 6F 5E 13 D3 A4 EE [14:54:28]Write to MH i2c: E2 27 00 5C 02 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BD 85 00 00 35 04 06 00 6F 5E 13 D3 A4 EE 00 00 86 [14:54:28]Write i2c OK [14:54:28]MH_I2C_Read... [14:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:29]Read from MH i2c: E2 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 03 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [14:54:29]RAPDU: 90 00 [14:54:29]wFMCommunicate OK [14:54:29]wFMCommunicate request_size=4 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 0D 03 02 [14:54:29]Write to MH i2c: E2 08 00 5D 02 80 0D 03 02 00 00 00 00 DA [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:29]Read from MH i2c: E2 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 0B 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 0B 00 5D 02 00 4E B4 B3 F9 EF 7A D6 5E 90 00 26 [14:54:29]RAPDU: 4E B4 B3 F9 EF 7A D6 5E 90 00 [14:54:29]wFMCommunicate OK [14:54:29]SAM_PROTO_SignData done [14:54:29]FM_MakeSignedData done [14:54:29]CreateOFDProtocolMessage [14:54:29]wFMCommunicate request_size=4 [14:54:29]MH_SAM_APDU [14:54:29]CAPDU: 80 11 00 00 [14:54:29]Write to MH i2c: E2 08 00 5E 02 80 11 00 00 00 00 00 00 DA [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:29]Read from MH i2c: E2 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 17 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: E2 17 00 5E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2F [14:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:54:29]wFMCommunicate OK [14:54:29]CreateOFDProtocolMessage done [14:54:29]OFDSenderStorePacket 34237 [14:54:29]StoreOFDPacket docnum=34237 [14:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 29 01 00 00 7F 3F 21 01 57 CA 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 39 32 06 04 23 00 4B 79 72 67 79 7A 20 57 68 69 73 6B 79 20 30 2E 37 20 D0 BB 20 33 20 D0 BB D0 B5 D1 82 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 34 01 00 00 00 13 04 06 00 98 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 34 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 9F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BD 85 00 00 35 04 06 00 6F 5E 13 D3 A4 EE 4E B4 B3 F9 EF 7A D6 5E [14:54:29]CheckFolder [14:54:29]dirname=/storage/ofd_packets [14:54:29]CheckFolder done [14:54:29]ProducePacketName [14:54:29]name=ofd_packets/00034237 [14:54:29]NVStorageSaveData ofd_packets/00034237 [14:54:29]File name is /storage/ofd_packets/00034237 [14:54:29]Write 327 bytes [14:54:29]NVStorageSaveData done [14:54:29]OFDSenderStorePacket done [14:54:29]KKMCreateOFDPacket done [14:54:29]NVStorageSaveData kkm_last_timestamp [14:54:29]File name is /storage/kkm_last_timestamp [14:54:29]Write 4 bytes [14:54:29]NVStorageSaveData done [14:54:29]ExternCall_PrintAddStr [14:54:29]wPrintStart [14:54:29]Write to MH i2c: 01 00 00 5F 02 61 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 FF 0F 76 [14:54:29]RasterBufferAndPrint [14:54:29]line Счет N : (3)184028 [14:54:29]line ИНН: 02508201610067 [14:54:29]line Контрольно-Кассовый Чек [14:54:29]line ПРОДАЖА [14:54:29]line Товар: 4700000281992 [14:54:29]line Kyrgyz Whisky 0.7 л 3 летний [14:54:29]line 1.000 * 790.00 [14:54:29]line = 790.00 [14:54:29]line НДС 12% НСП 1% [14:54:29]line > о реализуемом товаре [14:54:29]line ИТОГО: 790.00 [14:54:29]line НСП 1% : 6.99 [14:54:29]line НДС 12% : 83.89 [14:54:29]line Наличными: 0.00 [14:54:29]line Безнал.: 790.00 [14:54:29]line Место: АЗС № 120 "Партнер Нефть" [14:54:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:54:29]line СНО: Общий режим [14:54:29]line Чек 59 18.06.2024 14:54 [14:54:29]line Смена: 323 ФФД: 1.0 [14:54:29]line ЗНМ: 0300000172 [14:54:29]line РНМ: 0000000000092786 [14:54:29]line Версия ККМ: 001 [14:54:29]line Платежная система: Бакай Банк [14:54:29]line ФМ: 0000000000875095 [14:54:29]line ФД: 34237 [14:54:29]line ФПД: 122449850246382 [14:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T145427&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34237&fm=122449850246382&tin=02508201610067®Number=0000000000092786&sum=79000 [14:54:29]line 0 [14:54:29]OFD Sender: Processing packet 34237 [packets to send 8, broken 7] [14:54:29]ProducePacketName [14:54:29]name=ofd_packets/00034237 [14:54:29]OFD Sender: To server: pG, [14:54:29]CommunicateWithHost lk.salyk.kg:30040 [14:54:29]ConnectInit lk.salyk.kg [14:54:29]written 0, free lines is 4095 [14:54:29]Connected sock=10 [14:54:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 29 01 00 00 7F 3F 21 01 57 CA 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 39 32 06 04 23 00 4B 79 72 67 79 7A 20 57 68 69 73 6B 79 20 30 2E 37 20 D0 BB 20 33 20 D0 BB D0 B5 D1 82 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 34 01 00 00 00 13 04 06 00 98 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 34 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 9F 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BD 85 00 00 35 04 06 00 6F 5E 13 D3 A4 EE 4E B4 B3 F9 EF 7A D6 5E [14:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 68 C7 47 00 24 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BD 85 00 00 F4 03 04 00 73 46 71 66 B6 04 01 00 00 AF C3 4F 4A C1 95 F0 2E [14:54:29]CommunicateWithHost err = 0 [14:54:29]CheckOFDResponse [14:54:29]1017 (14) - 77093643461234 [14:54:29]1041 (16) - 0000000000875095 [14:54:29]1040 (4) - 34237 [14:54:29]1012 (4) - 18.06.2024 08:33 [14:54:29]1206 (1) - 0 [14:54:29]OFD Sender: Remove packet 34237 [14:54:29]ProducePacketName [14:54:29]name=ofd_packets/00034237 [14:54:29]NVStorageDeleteData [14:54:29]Write to MH i2c: 01 00 00 89 02 8B [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 F6 0C 94 [14:54:29]RasterBufferAndPrint [14:54:29]line [14:54:29]line [14:54:29]line [14:54:29]line [14:54:29]line [14:54:29]written 0, free lines is 3323 [14:54:29]MH_Cut [14:54:29]Write to MH i2c: D1 01 00 90 02 01 64 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: D1 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: D1 01 00 [14:54:29]MH_I2C_Read... [14:54:29]Read from MH i2c: D1 01 00 90 02 00 63 [14:54:29]Write to MH i2c: 01 00 00 91 02 93 [14:54:29]Write i2c OK [14:54:29]MH_I2C_Read... [14:54:30]OFD Sender: No OFD packet to send [14:54:30]*** Cut start [14:54:30]*** Partial cut [14:54:30]*** CUTSNS_PIN = 1 [14:54:30]*** CUTSNS_PIN = 0 [14:54:30]*** Brake cut motor [14:54:31]Read from MH i2c: 01 [14:54:31]MH_I2C_Read... [14:54:31]*** Stop cut motor [14:54:31]*** Cut end [14:54:31]Read from MH i2c: 01 07 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [14:54:31]process_action close_receipt done [14:54:31]requested_data is exist [14:54:31]produce_requested_data [14:54:31]requested_item fm.sn is exist - process it [14:54:31]wFMCommunicate request_size=4 [14:54:31]MH_SAM_APDU [14:54:31]CAPDU: 80 11 00 00 [14:54:31]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:31]Read from MH i2c: E2 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 17 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 63 [14:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:54:31]wFMCommunicate OK [14:54:31]requested_item fd.num is exist - process it [14:54:31]SAM_PROTO_GetFieldsCounters [14:54:31]wFMCommunicate request_size=4 [14:54:31]MH_SAM_APDU [14:54:31]CAPDU: 80 13 00 00 [14:54:31]Write to MH i2c: E2 08 00 93 02 80 13 00 00 00 00 00 00 11 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:31]Read from MH i2c: E2 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 62 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 62 00 93 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BD 85 00 00 0E 04 04 00 43 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 72 [14:54:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BD 85 00 00 0E 04 04 00 43 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 [14:54:31]wFMCommunicate OK [14:54:31]SAM_PROTO_GetFieldsCounters done [14:54:31]requested_item shift.num is exist - process it [14:54:31]requested_item shift.opened is exist - process it [14:54:31]req_shift_opened [14:54:31]FM_GetShiftState [14:54:31]SAM_PROTO_GetShiftState [14:54:31]wFMCommunicate request_size=4 [14:54:31]MH_SAM_APDU [14:54:31]CAPDU: 80 13 01 00 [14:54:31]Write to MH i2c: E2 08 00 94 02 80 13 01 00 00 00 00 00 13 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:31]Read from MH i2c: E2 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 0E 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: E2 0E 00 94 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 5E [14:54:31]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:54:31]wFMCommunicate OK [14:54:31]SAM_PROTO_GetShiftState done [14:54:31]FM_GetShiftState done [14:54:31]req_shift_opened done [14:54:31]requested_item shift.open_date is exist - process it [14:54:31]req_shift_open_date [14:54:31]req_shift_open_date done [14:54:31]produce_requested_data done [14:54:31]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34237,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:54:31]process_action_free close_receipt [14:54:31]json_value_free [14:54:31]json_value_free done [14:54:31]process_json_proto returns [14:54:31]Send response to host [14:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34237,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:54:31]free response buf [14:54:31]execute_script done [14:54:31]execute_script returns [14:54:31]free content buf [14:54:31]Sock 9.Close socket [14:54:31]Sock 9.Thread stoped [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:44]accept exits with 7 [14:58:44]New connection [14:58:44]New thread 3067424100 created [14:58:44]Thread 3067567460 joined [14:58:44]Waiting for new connection... [14:58:44] Sock 7.Parse request [14:58:44]Sock 7.Check first char [14:58:44]Sock 7.First char is OK [14:58:44]request: POST /json_proto HTTP/1.0 [14:58:44]Method: POST [14:58:44]URL: /json_proto [14:58:44]Method is POST - this is cgi request [14:58:44]url: /json_proto [14:58:44]query_string will be loaded in cgi processing [14:58:44]execute_cgi json_proto POST (null) [14:58:44]execute_cgi path=json_proto method=POST [14:58:44]POST find Content-Length [14:58:44]Host: 172.17.38.134:8080 [14:58:44]Content-Length: 698 [14:58:44]Content-Type: application/json [14:58:44] [14:58:44]POST finish read [14:58:44]Found Content-Length = 698 [14:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184029", "tax_sys" : 0, "items" : [ { "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:44]execute_script... [14:58:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184029", "tax_sys" : 0, "items" : [ { "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:44]POST & json_proto [14:58:44]process_json_proto [14:58:44]json parsed OK: [14:58:44]protocol is kg_v1.0 [14:58:44]action value=close_receipt [14:58:44]process_action close_receipt [14:58:44]cmd_close_receipt [14:58:44]MH_GetDate [14:58:44]Write to MH i2c: F0 00 00 95 02 86 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 09 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: F0 09 00 95 02 00 A4 A0 71 66 13 9C 7C 64 39 [14:58:44]GetLastDocTimeStamp 1718722467 [14:58:44]current date 1718722724 [14:58:44]FM_GetShiftState [14:58:44]SAM_PROTO_GetShiftState [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 13 01 00 [14:58:44]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0E 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 60 [14:58:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:58:44]wFMCommunicate OK [14:58:44]SAM_PROTO_GetShiftState done [14:58:44]FM_GetShiftState done [14:58:44]opened in 1718670230 [14:58:44]opened+sec_in_day 1718756630 [14:58:44]quantity*price = 16500 [14:58:44]sum+1 = 16501 [14:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 60 18.06.2024 14:58 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34238 ФПД: 100956405998942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T145845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34238&fm=100956405998942&tin=02508201610067®Number=0000000000092786&sum=16500 0 [14:58:45]StoreToDocumentArchive [14:58:45]shift 323 fd 34238 [14:58:45]save to /storage/0323/doc_00034238 [14:58:45]save last doc name /storage/0323/doc_00034238 to /storage/kkm_last_doc_name [14:58:45]save OK [14:58:45]Clear old archive folders... [14:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:58:45]tlvbuf is 01928D70 [14:58:45]SAM_PROTO_ClearQueue [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 09 00 00 [14:58:45]Write to MH i2c: E2 08 00 A3 02 80 09 00 00 00 00 00 00 17 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]SAM_PROTO_ClearQueue done [14:58:45]KKMCreateOFDPacket [14:58:45]OFDProtocolAddRootSTLVToBuf [14:58:45]FM_MakeSignedData [14:58:45]FM_MakeSignedData [14:58:45]SAM_PROTO_SignData [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 01 02 [14:58:45]Write to MH i2c: E2 08 00 A4 02 80 0D 01 02 00 00 00 00 1F [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [14:58:45]RAPDU: 90 00 [14:58:45]wFMCommunicate OK [14:58:45]wFMCommunicate request_size=255 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A5 A0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:58:45]Write to MH i2c: E2 02 01 A5 02 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A5 A0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 82 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 03 00 [14:58:45]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [14:58:46]RAPDU: 90 00 [14:58:46]wFMCommunicate OK [14:58:46]wFMCommunicate request_size=53 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BE 85 00 00 35 04 06 00 5B D1 BE B7 A5 5E [14:58:46]Write to MH i2c: E2 38 00 A6 02 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BE 85 00 00 35 04 06 00 5B D1 BE B7 A5 5E 00 00 07 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [14:58:46]RAPDU: 90 00 [14:58:46]wFMCommunicate OK [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 0D 03 02 [14:58:46]Write to MH i2c: E2 08 00 A7 02 80 0D 03 02 00 00 00 00 24 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 0B 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 0B 00 A7 02 00 B2 B9 C5 ED 24 66 65 92 90 00 C3 [14:58:46]RAPDU: B2 B9 C5 ED 24 66 65 92 90 00 [14:58:46]wFMCommunicate OK [14:58:46]SAM_PROTO_SignData done [14:58:46]FM_MakeSignedData done [14:58:46]CreateOFDProtocolMessage [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 11 00 00 [14:58:46]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 79 [14:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:58:46]wFMCommunicate OK [14:58:46]CreateOFDProtocolMessage done [14:58:46]OFDSenderStorePacket 34238 [14:58:46]StoreOFDPacket docnum=34238 [14:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 22 6F 32 01 2F EB 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A5 A0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BE 85 00 00 35 04 06 00 5B D1 BE B7 A5 5E B2 B9 C5 ED 24 66 65 92 [14:58:46]CheckFolder [14:58:46]dirname=/storage/ofd_packets [14:58:46]CheckFolder done [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00034238 [14:58:46]NVStorageSaveData ofd_packets/00034238 [14:58:46]File name is /storage/ofd_packets/00034238 [14:58:46]Write 344 bytes [14:58:46]NVStorageSaveData done [14:58:46]OFDSenderStorePacket done [14:58:46]KKMCreateOFDPacket done [14:58:46]NVStorageSaveData kkm_last_timestamp [14:58:46]File name is /storage/kkm_last_timestamp [14:58:46]Write 4 bytes [14:58:46]NVStorageSaveData done [14:58:46]ExternCall_PrintAddStr [14:58:46]wPrintStart [14:58:46]Write to MH i2c: 01 00 00 A9 02 AB [14:58:46]OFD Sender: Processing packet 34238 [packets to send 8, broken 7] [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00034238 [14:58:46]OFD Sender: To server: pG, [14:58:46]CommunicateWithHost lk.salyk.kg:30040 [14:58:46]ConnectInit lk.salyk.kg [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [14:58:46]RasterBufferAndPrint [14:58:46]line Счет N : (3)184029 [14:58:46]line ИНН: 02508201610067 [14:58:46]line Контрольно-Кассовый Чек [14:58:46]line ПРОДАЖА [14:58:46]line Товар: 4680988568943 [14:58:46]line Жид/ст ПН апельсин летняя 4,5л [14:58:46]line 1.000 * 165.00 [14:58:46]line = 165.00 [14:58:46]line НДС 12% НСП 1% [14:58:46]line > о реализуемом товаре [14:58:46]line ИТОГО: 165.00 [14:58:46]line НСП 1% : 1.46 [14:58:46]line НДС 12% : 17.52 [14:58:46]line Наличными: 165.00 [14:58:46]line Безнал.: 0.00 [14:58:46]line Место: АЗС № 120 "Партнер Нефть" [14:58:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:58:46]line СНО: Общий режим [14:58:46]line Чек 60 18.06.2024 14:58 [14:58:46]line Смена: 323 ФФД: 1.0 [14:58:46]line ЗНМ: 0300000172 [14:58:46]line РНМ: 0000000000092786 [14:58:46]line Версия ККМ: 001 [14:58:46]line ФМ: 0000000000875095 [14:58:46]line ФД: 34238 [14:58:46]line ФПД: 100956405998942 [14:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T145845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34238&fm=100956405998942&tin=02508201610067®Number=0000000000092786&sum=16500 [14:58:46]line 0 [14:58:46]Connected sock=10 [14:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 22 6F 32 01 2F EB 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A5 A0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BE 85 00 00 35 04 06 00 5B D1 BE B7 A5 5E B2 B9 C5 ED 24 66 65 92 [14:58:46]written 0, free lines is 4095 [14:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 B3 B3 47 00 A1 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BE 85 00 00 F4 03 04 00 74 47 71 66 B6 04 01 00 00 E8 E2 16 E8 8A A2 FB 58 [14:58:46]CommunicateWithHost err = 0 [14:58:46]CheckOFDResponse [14:58:46]1017 (14) - 77093643461234 [14:58:46]1041 (16) - 0000000000875095 [14:58:46]1040 (4) - 34238 [14:58:46]1012 (4) - 18.06.2024 08:38 [14:58:46]1206 (1) - 0 [14:58:46]OFD Sender: Remove packet 34238 [14:58:46]ProducePacketName [14:58:46]name=ofd_packets/00034238 [14:58:46]NVStorageDeleteData [14:58:46]Write to MH i2c: 01 00 00 D2 02 D4 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 DE 0C C5 [14:58:46]RasterBufferAndPrint [14:58:46]line [14:58:46]line [14:58:46]line [14:58:46]line [14:58:46]line [14:58:46]written 0, free lines is 3299 [14:58:47]MH_Cut [14:58:47]Write to MH i2c: D1 01 00 D9 02 01 AD [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: D1 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: D1 01 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: D1 01 00 D9 02 00 AC [14:58:47]Write to MH i2c: 01 00 00 DA 02 DC [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]OFD Sender: No OFD packet to send [14:58:47]*** Cut start [14:58:47]*** Partial cut [14:58:47]*** CUTSNS_PIN = 1 [14:58:47]*** CUTSNS_PIN = 0 [14:58:48]*** Brake cut motor [14:58:48]Read from MH i2c: 01 [14:58:48]MH_I2C_Read... [14:58:48]*** Stop cut motor [14:58:48]*** Cut end [14:58:48]Read from MH i2c: 01 07 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 FF 0F F1 [14:58:48]process_action close_receipt done [14:58:48]requested_data is exist [14:58:48]produce_requested_data [14:58:48]requested_item fm.sn is exist - process it [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 11 00 00 [14:58:48]Write to MH i2c: E2 08 00 DB 02 80 11 00 00 00 00 00 00 57 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 17 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 17 00 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AC [14:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [14:58:48]wFMCommunicate OK [14:58:48]requested_item fd.num is exist - process it [14:58:48]SAM_PROTO_GetFieldsCounters [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 00 00 [14:58:48]Write to MH i2c: E2 08 00 DC 02 80 13 00 00 00 00 00 00 5A [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 62 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 62 00 DC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BE 85 00 00 0E 04 04 00 43 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 BF [14:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BE 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetFieldsCounters done [14:58:48]requested_item shift.num is exist - process it [14:58:48]requested_item shift.opened is exist - process it [14:58:48]req_shift_opened [14:58:48]FM_GetShiftState [14:58:48]SAM_PROTO_GetShiftState [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 01 00 [14:58:48]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:48]Read from MH i2c: E2 0E 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 A7 [14:58:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetShiftState done [14:58:48]FM_GetShiftState done [14:58:48]req_shift_opened done [14:58:48]requested_item shift.open_date is exist - process it [14:58:48]req_shift_open_date [14:58:48]req_shift_open_date done [14:58:48]produce_requested_data done [14:58:48]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34238,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [14:58:48]process_action_free close_receipt [14:58:48]json_value_free [14:58:48]json_value_free done [14:58:48]process_json_proto returns [14:58:48]Send response to host [14:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34238,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [14:58:48]free response buf [14:58:48]execute_script done [14:58:48]execute_script returns [14:58:48]free content buf [14:58:48]Sock 7.Close socket [14:58:48]Sock 7.Thread stoped [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]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:29]accept exits with 9 [15:05:29]New connection [15:05:29]New thread 3067567460 created [15:05:29]Thread 3067424100 joined [15:05:29]Waiting for new connection... [15:05:29] Sock 9.Parse request [15:05:29]Sock 9.Check first char [15:05:29]Sock 9.First char is OK [15:05:29]request: POST /json_proto HTTP/1.0 [15:05:29]Method: POST [15:05:29]URL: /json_proto [15:05:29]Method is POST - this is cgi request [15:05:29]url: /json_proto [15:05:29]query_string will be loaded in cgi processing [15:05:29]execute_cgi json_proto POST (null) [15:05:29]execute_cgi path=json_proto method=POST [15:05:29]POST find Content-Length [15:05:29]Host: 172.17.38.134:8080 [15:05:29]Content-Length: 696 [15:05:29]Content-Type: application/json [15:05:29] [15:05:29]POST finish read [15:05:29]Found Content-Length = 696 [15:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184030", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:29]execute_script... [15:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184030", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:29]POST & json_proto [15:05:29]process_json_proto [15:05:29]json parsed OK: [15:05:29]protocol is kg_v1.0 [15:05:29]action value=close_receipt [15:05:29]process_action close_receipt [15:05:29]cmd_close_receipt [15:05:29]MH_GetDate [15:05:29]Write to MH i2c: F0 00 00 DE 02 CF [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: F0 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: F0 09 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: F0 09 00 DE 02 00 3A A2 71 66 13 9C 7C 64 1A [15:05:29]GetLastDocTimeStamp 1718722725 [15:05:29]current date 1718723130 [15:05:29]FM_GetShiftState [15:05:29]SAM_PROTO_GetShiftState [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 13 01 00 [15:05:29]Write to MH i2c: E2 08 00 DF 02 80 13 01 00 00 00 00 00 5E [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 0E 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 0E 00 DF 02 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 A9 [15:05:29]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:05:29]wFMCommunicate OK [15:05:29]SAM_PROTO_GetShiftState done [15:05:29]FM_GetShiftState done [15:05:29]opened in 1718670230 [15:05:29]opened+sec_in_day 1718756630 [15:05:29]quantity*price = 11300 [15:05:29]sum+1 = 11301 [15:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 61 18.06.2024 15:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34239 ФПД: 261924513732532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150530&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34239&fm=261924513732532&tin=02508201610067®Number=0000000000092786&sum=11300 0 [15:05:30]StoreToDocumentArchive [15:05:30]shift 323 fd 34239 [15:05:30]save to /storage/0323/doc_00034239 [15:05:30]save last doc name /storage/0323/doc_00034239 to /storage/kkm_last_doc_name [15:05:30]save OK [15:05:30]Clear old archive folders... [15:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=296 [15:05:30]tlvbuf is 0192BD30 [15:05:30]SAM_PROTO_ClearQueue [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 09 00 00 [15:05:30]Write to MH i2c: E2 08 00 EC 02 80 09 00 00 00 00 00 00 60 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [15:05:30]RAPDU: 90 00 [15:05:30]wFMCommunicate OK [15:05:30]SAM_PROTO_ClearQueue done [15:05:30]KKMCreateOFDPacket [15:05:30]OFDProtocolAddRootSTLVToBuf [15:05:30]FM_MakeSignedData [15:05:30]FM_MakeSignedData [15:05:30]SAM_PROTO_SignData [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 0D 01 02 [15:05:30]Write to MH i2c: E2 08 00 ED 02 80 0D 01 02 00 00 00 00 68 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [15:05:30]RAPDU: 90 00 [15:05:30]wFMCommunicate OK [15:05:30]wFMCommunicate request_size=255 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 3A A2 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [15:05:30]Write to MH i2c: E2 02 01 EE 02 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 3A A2 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 F5 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:31]Read from MH i2c: E2 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 03 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [15:05:31]RAPDU: 90 00 [15:05:31]wFMCommunicate OK [15:05:31]wFMCommunicate request_size=55 [15:05:31]MH_SAM_APDU [15:05:31]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BF 85 00 00 35 04 06 00 EE 38 0D 99 57 B4 [15:05:31]Write to MH i2c: E2 3A 00 EF 02 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BF 85 00 00 35 04 06 00 EE 38 0D 99 57 B4 00 00 E8 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:31]Read from MH i2c: E2 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 03 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 03 00 EF 02 00 90 00 65 [15:05:31]RAPDU: 90 00 [15:05:31]wFMCommunicate OK [15:05:31]wFMCommunicate request_size=4 [15:05:31]MH_SAM_APDU [15:05:31]CAPDU: 80 0D 03 02 [15:05:31]Write to MH i2c: E2 08 00 F0 02 80 0D 03 02 00 00 00 00 6D [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:31]Read from MH i2c: E2 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 0B 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 0B 00 F0 02 00 30 1D E5 F3 D7 0C 86 C1 90 00 BD [15:05:31]RAPDU: 30 1D E5 F3 D7 0C 86 C1 90 00 [15:05:31]wFMCommunicate OK [15:05:31]SAM_PROTO_SignData done [15:05:31]FM_MakeSignedData done [15:05:31]CreateOFDProtocolMessage [15:05:31]wFMCommunicate request_size=4 [15:05:31]MH_SAM_APDU [15:05:31]CAPDU: 80 11 00 00 [15:05:31]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:31]Read from MH i2c: E2 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 17 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C2 [15:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:05:31]wFMCommunicate OK [15:05:31]CreateOFDProtocolMessage done [15:05:31]OFDSenderStorePacket 34239 [15:05:31]StoreOFDPacket docnum=34239 [15:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 64 D5 34 01 C7 D2 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 3A A2 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BF 85 00 00 35 04 06 00 EE 38 0D 99 57 B4 30 1D E5 F3 D7 0C 86 C1 [15:05:31]CheckFolder [15:05:31]dirname=/storage/ofd_packets [15:05:31]CheckFolder done [15:05:31]ProducePacketName [15:05:31]name=ofd_packets/00034239 [15:05:31]NVStorageSaveData ofd_packets/00034239 [15:05:31]File name is /storage/ofd_packets/00034239 [15:05:31]Write 346 bytes [15:05:31]NVStorageSaveData done [15:05:31]OFDSenderStorePacket done [15:05:31]KKMCreateOFDPacket done [15:05:31]NVStorageSaveData kkm_last_timestamp [15:05:31]File name is /storage/kkm_last_timestamp [15:05:31]Write 4 bytes [15:05:31]NVStorageSaveData done [15:05:31]ExternCall_PrintAddStr [15:05:31]wPrintStart [15:05:31]Write to MH i2c: 01 00 00 F2 02 F4 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 07 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [15:05:31]RasterBufferAndPrint [15:05:31]line Счет N : (3)184030 [15:05:31]line ИНН: 02508201610067 [15:05:31]line Контрольно-Кассовый Чек [15:05:31]line ПРОДАЖА [15:05:31]line Товар: 4870202521261 [15:05:31]line Напиток MAXI чай 1,2 лесные ягоды [15:05:31]line 1.000 * 113.00 [15:05:31]line = 113.00 [15:05:31]line НДС 12% НСП 1% [15:05:31]line > о реализуемом товаре [15:05:31]line ИТОГО: 113.00 [15:05:31]line НСП 1% : 1.00 [15:05:31]line НДС 12% : 12.00 [15:05:31]line Наличными: 113.00 [15:05:31]line Безнал.: 0.00 [15:05:31]line Место: АЗС № 120 "Партнер Нефть" [15:05:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:05:31]line СНО: Общий режим [15:05:31]line Чек 61 18.06.2024 15:05 [15:05:31]line Смена: 323 ФФД: 1.0 [15:05:31]line ЗНМ: 0300000172 [15:05:31]line РНМ: 0000000000092786 [15:05:31]line Версия ККМ: 001 [15:05:31]line ФМ: 0000000000875095 [15:05:31]line ФД: 34239 [15:05:31]line ФПД: 261924513732532 [15:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T150530&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34239&fm=261924513732532&tin=02508201610067®Number=0000000000092786&sum=11300 [15:05:31]line 0 [15:05:31]OFD Sender: Processing packet 34239 [packets to send 8, broken 7] [15:05:31]ProducePacketName [15:05:31]name=ofd_packets/00034239 [15:05:31]OFD Sender: To server: pG, [15:05:31]CommunicateWithHost lk.salyk.kg:30040 [15:05:31]ConnectInit lk.salyk.kg [15:05:31]written 0, free lines is 4095 [15:05:31]Connected sock=10 [15:05:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3C 01 00 00 64 D5 34 01 C7 D2 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 3A A2 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BF 85 00 00 35 04 06 00 EE 38 0D 99 57 B4 30 1D E5 F3 D7 0C 86 C1 [15:05:31]Write to MH i2c: 01 00 00 1B 03 1E [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 07 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 E4 0C 15 [15:05:31]RasterBufferAndPrint [15:05:31]line [15:05:31]line [15:05:31]line [15:05:31]line [15:05:31]line [15:05:31]written 0, free lines is 3307 [15:05:31]MH_Cut [15:05:31]Write to MH i2c: D1 01 00 22 03 01 F7 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: D1 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: D1 01 00 [15:05:31]MH_I2C_Read... [15:05:31]Read from MH i2c: D1 01 00 22 03 00 F6 [15:05:31]Write to MH i2c: 01 00 00 23 03 26 [15:05:31]Write i2c OK [15:05:31]MH_I2C_Read... [15:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 EB 44 47 00 3B E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 BF 85 00 00 F4 03 04 00 0A 49 71 66 B6 04 01 00 00 84 E2 6E 1E E2 55 FB 8F [15:05:32]CommunicateWithHost err = 0 [15:05:32]CheckOFDResponse [15:05:32]1017 (14) - 77093643461234 [15:05:32]1041 (16) - 0000000000875095 [15:05:32]1040 (4) - 34239 [15:05:32]1012 (4) - 18.06.2024 08:44 [15:05:32]1206 (1) - 0 [15:05:32]OFD Sender: Remove packet 34239 [15:05:32]ProducePacketName [15:05:32]name=ofd_packets/00034239 [15:05:32]NVStorageDeleteData [15:05:32]*** Cut start [15:05:32]*** Partial cut [15:05:32]*** CUTSNS_PIN = 1 [15:05:32]*** CUTSNS_PIN = 0 [15:05:32]OFD Sender: No OFD packet to send [15:05:32]*** Brake cut motor [15:05:33]Read from MH i2c: 01 [15:05:33]MH_I2C_Read... [15:05:33]*** Stop cut motor [15:05:33]*** Cut end [15:05:33]Read from MH i2c: 01 07 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 FF 0F 3B [15:05:33]process_action close_receipt done [15:05:33]requested_data is exist [15:05:33]produce_requested_data [15:05:33]requested_item fm.sn is exist - process it [15:05:33]wFMCommunicate request_size=4 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 11 00 00 [15:05:33]Write to MH i2c: E2 08 00 24 03 80 11 00 00 00 00 00 00 A1 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:33]Read from MH i2c: E2 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 17 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 17 00 24 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F6 [15:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:05:33]wFMCommunicate OK [15:05:33]requested_item fd.num is exist - process it [15:05:33]SAM_PROTO_GetFieldsCounters [15:05:33]wFMCommunicate request_size=4 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 13 00 00 [15:05:33]Write to MH i2c: E2 08 00 25 03 80 13 00 00 00 00 00 00 A4 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:33]Read from MH i2c: E2 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 62 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 62 00 25 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BF 85 00 00 0E 04 04 00 43 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 0D [15:05:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 BF 85 00 00 0E 04 04 00 43 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 [15:05:33]wFMCommunicate OK [15:05:33]SAM_PROTO_GetFieldsCounters done [15:05:33]requested_item shift.num is exist - process it [15:05:33]requested_item shift.opened is exist - process it [15:05:33]req_shift_opened [15:05:33]FM_GetShiftState [15:05:33]SAM_PROTO_GetShiftState [15:05:33]wFMCommunicate request_size=4 [15:05:33]MH_SAM_APDU [15:05:33]CAPDU: 80 13 01 00 [15:05:33]Write to MH i2c: E2 08 00 26 03 80 13 01 00 00 00 00 00 A6 [15:05:33]Write i2c OK [15:05:33]MH_I2C_Read... [15:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:33]Read from MH i2c: E2 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 0E 00 [15:05:33]MH_I2C_Read... [15:05:33]Read from MH i2c: E2 0E 00 26 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F1 [15:05:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:05:33]wFMCommunicate OK [15:05:33]SAM_PROTO_GetShiftState done [15:05:33]FM_GetShiftState done [15:05:33]req_shift_opened done [15:05:33]requested_item shift.open_date is exist - process it [15:05:33]req_shift_open_date [15:05:33]req_shift_open_date done [15:05:33]produce_requested_data done [15:05:33]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34239,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:05:33]process_action_free close_receipt [15:05:33]json_value_free [15:05:33]json_value_free done [15:05:33]process_json_proto returns [15:05:33]Send response to host [15:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34239,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:05:33]free response buf [15:05:33]execute_script done [15:05:33]execute_script returns [15:05:33]free content buf [15:05:33]Sock 9.Close socket [15:05:33]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:12]accept exits with 7 [15:18:12]New connection [15:18:12]New thread 3067424100 created [15:18:12]Thread 3067567460 joined [15:18:12]Waiting for new connection... [15:18:12] Sock 7.Parse request [15:18:12]Sock 7.Check first char [15:18:12]Sock 7.First char is OK [15:18:12]request: POST /json_proto HTTP/1.0 [15:18:12]Method: POST [15:18:12]URL: /json_proto [15:18:12]Method is POST - this is cgi request [15:18:12]url: /json_proto [15:18:12]query_string will be loaded in cgi processing [15:18:12]execute_cgi json_proto POST (null) [15:18:12]execute_cgi path=json_proto method=POST [15:18:12]POST find Content-Length [15:18:12]Host: 172.17.38.134:8080 [15:18:12]Content-Length: 623 [15:18:12]Content-Type: application/json [15:18:12] [15:18:12]POST finish read [15:18:12]Found Content-Length = 623 [15:18:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184031", "tax_sys" : 0, "items" : [ { "code": "4680036912728", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:12]execute_script... [15:18:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184031", "tax_sys" : 0, "items" : [ { "code": "4680036912728", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:12]POST & json_proto [15:18:12]process_json_proto [15:18:12]json parsed OK: [15:18:12]protocol is kg_v1.0 [15:18:12]action value=close_receipt [15:18:12]process_action close_receipt [15:18:12]cmd_close_receipt [15:18:12]MH_GetDate [15:18:12]Write to MH i2c: F0 00 00 27 03 19 [15:18:12]Write i2c OK [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: F0 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: F0 09 00 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: F0 09 00 27 03 00 34 A5 71 66 13 9C 7C 64 61 [15:18:12]GetLastDocTimeStamp 1718723130 [15:18:12]current date 1718723892 [15:18:12]FM_GetShiftState [15:18:12]SAM_PROTO_GetShiftState [15:18:12]wFMCommunicate request_size=4 [15:18:12]MH_SAM_APDU [15:18:12]CAPDU: 80 13 01 00 [15:18:12]Write to MH i2c: E2 08 00 28 03 80 13 01 00 00 00 00 00 A8 [15:18:12]Write i2c OK [15:18:12]MH_I2C_Read... [15:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:12]Read from MH i2c: E2 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 0E 00 [15:18:12]MH_I2C_Read... [15:18:12]Read from MH i2c: E2 0E 00 28 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F3 [15:18:12]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:18:12]wFMCommunicate OK [15:18:12]SAM_PROTO_GetShiftState done [15:18:12]FM_GetShiftState done [15:18:12]opened in 1718670230 [15:18:12]opened+sec_in_day 1718756630 [15:18:12]quantity*price = 11000 [15:18:12]sum+1 = 11001 [15:18:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 62 18.06.2024 15:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34240 ФПД: 204661768458495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151813&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34240&fm=204661768458495&tin=02508201610067®Number=0000000000092786&sum=11000 0 [15:18:13]StoreToDocumentArchive [15:18:13]shift 323 fd 34240 [15:18:13]save to /storage/0323/doc_00034240 [15:18:13]save last doc name /storage/0323/doc_00034240 to /storage/kkm_last_doc_name [15:18:13]save OK [15:18:13]Clear old archive folders... [15:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:18:13]tlvbuf is 0191C700 [15:18:13]SAM_PROTO_ClearQueue [15:18:13]wFMCommunicate request_size=4 [15:18:13]MH_SAM_APDU [15:18:13]CAPDU: 80 09 00 00 [15:18:13]Write to MH i2c: E2 08 00 35 03 80 09 00 00 00 00 00 00 AA [15:18:13]Write i2c OK [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 [15:18:13]MH_I2C_Read... [15:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:13]Read from MH i2c: E2 03 00 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [15:18:13]RAPDU: 90 00 [15:18:13]wFMCommunicate OK [15:18:13]SAM_PROTO_ClearQueue done [15:18:13]KKMCreateOFDPacket [15:18:13]OFDProtocolAddRootSTLVToBuf [15:18:13]FM_MakeSignedData [15:18:13]FM_MakeSignedData [15:18:13]SAM_PROTO_SignData [15:18:13]wFMCommunicate request_size=4 [15:18:13]MH_SAM_APDU [15:18:13]CAPDU: 80 0D 01 02 [15:18:13]Write to MH i2c: E2 08 00 36 03 80 0D 01 02 00 00 00 00 B2 [15:18:13]Write i2c OK [15:18:13]MH_I2C_Read... [15:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:13]Read from MH i2c: E2 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [15:18:13]RAPDU: 90 00 [15:18:13]wFMCommunicate OK [15:18:13]wFMCommunicate request_size=255 [15:18:13]MH_SAM_APDU [15:18:13]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 37 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 35 A5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 [15:18:13]Write to MH i2c: E2 02 01 37 03 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 37 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 35 A5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 00 00 EE [15:18:13]Write i2c OK [15:18:13]MH_I2C_Read... [15:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:13]Read from MH i2c: E2 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 37 03 00 90 00 AE [15:18:13]RAPDU: 90 00 [15:18:13]wFMCommunicate OK [15:18:13]wFMCommunicate request_size=38 [15:18:13]MH_SAM_APDU [15:18:13]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C0 85 00 00 35 04 06 00 BA 23 88 02 10 FF [15:18:13]Write to MH i2c: E2 29 00 38 03 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C0 85 00 00 35 04 06 00 BA 23 88 02 10 FF 00 00 FB [15:18:13]Write i2c OK [15:18:13]MH_I2C_Read... [15:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:13]Read from MH i2c: E2 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 [15:18:13]MH_I2C_Read... [15:18:13]Read from MH i2c: E2 03 00 38 03 00 90 00 AF [15:18:13]RAPDU: 90 00 [15:18:13]wFMCommunicate OK [15:18:13]wFMCommunicate request_size=4 [15:18:13]MH_SAM_APDU [15:18:13]CAPDU: 80 0D 03 02 [15:18:13]Write to MH i2c: E2 08 00 39 03 80 0D 03 02 00 00 00 00 B7 [15:18:13]Write i2c OK [15:18:13]MH_I2C_Read... [15:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:14]Read from MH i2c: E2 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: E2 0B 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: E2 0B 00 39 03 00 1F 3C 4B FD 50 32 F9 AD 90 00 83 [15:18:14]RAPDU: 1F 3C 4B FD 50 32 F9 AD 90 00 [15:18:14]wFMCommunicate OK [15:18:14]SAM_PROTO_SignData done [15:18:14]FM_MakeSignedData done [15:18:14]CreateOFDProtocolMessage [15:18:14]wFMCommunicate request_size=4 [15:18:14]MH_SAM_APDU [15:18:14]CAPDU: 80 11 00 00 [15:18:14]Write to MH i2c: E2 08 00 3A 03 80 11 00 00 00 00 00 00 B7 [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:14]Read from MH i2c: E2 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: E2 17 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: E2 17 00 3A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0C [15:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:18:14]wFMCommunicate OK [15:18:14]CreateOFDProtocolMessage done [15:18:14]OFDSenderStorePacket 34240 [15:18:14]StoreOFDPacket docnum=34240 [15:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2B 01 00 00 99 D4 23 01 BE 79 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 37 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 35 A5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C0 85 00 00 35 04 06 00 BA 23 88 02 10 FF 1F 3C 4B FD 50 32 F9 AD [15:18:14]CheckFolder [15:18:14]dirname=/storage/ofd_packets [15:18:14]CheckFolder done [15:18:14]ProducePacketName [15:18:14]name=ofd_packets/00034240 [15:18:14]NVStorageSaveData ofd_packets/00034240 [15:18:14]File name is /storage/ofd_packets/00034240 [15:18:14]Write 329 bytes [15:18:14]NVStorageSaveData done [15:18:14]OFDSenderStorePacket done [15:18:14]KKMCreateOFDPacket done [15:18:14]NVStorageSaveData kkm_last_timestamp [15:18:14]File name is /storage/kkm_last_timestamp [15:18:14]Write 4 bytes [15:18:14]NVStorageSaveData done [15:18:14]ExternCall_PrintAddStr [15:18:14]wPrintStart [15:18:14]Write to MH i2c: 01 00 00 3B 03 3E [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: 01 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: 01 07 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 FF 0F 53 [15:18:14]RasterBufferAndPrint [15:18:14]line Счет N : (3)184031 [15:18:14]line ИНН: 02508201610067 [15:18:14]line Контрольно-Кассовый Чек [15:18:14]line ПРОДАЖА [15:18:14]line Товар: 4680036912728 [15:18:14]line Gorilla эн нап Orange 0,45 ж/б [15:18:14]line 1.000 * 110.00 [15:18:14]line = 110.00 [15:18:14]line НДС 12% НСП 1% [15:18:14]line > о реализуемом товаре [15:18:14]line ИТОГО: 110.00 [15:18:14]line НСП 1% : 0.97 [15:18:14]line НДС 12% : 11.68 [15:18:14]line Наличными: 110.00 [15:18:14]line Безнал.: 0.00 [15:18:14]line Место: АЗС № 120 "Партнер Нефть" [15:18:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:18:14]line СНО: Общий режим [15:18:14]line Чек 62 18.06.2024 15:18 [15:18:14]line Смена: 323 ФФД: 1.0 [15:18:14]line ЗНМ: 0300000172 [15:18:14]line РНМ: 0000000000092786 [15:18:14]line Версия ККМ: 001 [15:18:14]line ФМ: 0000000000875095 [15:18:14]line ФД: 34240 [15:18:14]line ФПД: 204661768458495 [15:18:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T151813&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34240&fm=204661768458495&tin=02508201610067®Number=0000000000092786&sum=11000 [15:18:14]line 0 [15:18:14]OFD Sender: Processing packet 34240 [packets to send 8, broken 7] [15:18:14]ProducePacketName [15:18:14]name=ofd_packets/00034240 [15:18:14]OFD Sender: To server: pG, [15:18:14]CommunicateWithHost lk.salyk.kg:30040 [15:18:14]ConnectInit lk.salyk.kg [15:18:14]written 0, free lines is 4095 [15:18:14]Connected sock=10 [15:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2B 01 00 00 99 D4 23 01 BE 79 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 37 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 35 A5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C0 85 00 00 35 04 06 00 BA 23 88 02 10 FF 1F 3C 4B FD 50 32 F9 AD [15:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8B 1E 47 00 C1 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C0 85 00 00 F4 03 04 00 04 4C 71 66 B6 04 01 00 00 35 AE 26 8E 4E F4 CF 48 [15:18:14]CommunicateWithHost err = 0 [15:18:14]CheckOFDResponse [15:18:14]1017 (14) - 77093643461234 [15:18:14]1041 (16) - 0000000000875095 [15:18:14]1040 (4) - 34240 [15:18:14]1012 (4) - 18.06.2024 08:57 [15:18:14]1206 (1) - 0 [15:18:14]OFD Sender: Remove packet 34240 [15:18:14]ProducePacketName [15:18:14]name=ofd_packets/00034240 [15:18:14]NVStorageDeleteData [15:18:14]Write to MH i2c: 01 00 00 63 03 66 [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: 01 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: 01 07 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 0E 0D 88 [15:18:14]RasterBufferAndPrint [15:18:14]line [15:18:14]line [15:18:14]line [15:18:14]line [15:18:14]line [15:18:14]written 0, free lines is 3348 [15:18:14]MH_Cut [15:18:14]Write to MH i2c: D1 01 00 6A 03 01 3F [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: D1 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: D1 01 00 [15:18:14]MH_I2C_Read... [15:18:14]Read from MH i2c: D1 01 00 6A 03 00 3E [15:18:14]Write to MH i2c: 01 00 00 6B 03 6E [15:18:14]Write i2c OK [15:18:14]MH_I2C_Read... [15:18:15]OFD Sender: No OFD packet to send [15:18:15]*** Cut start [15:18:15]*** Partial cut [15:18:15]*** CUTSNS_PIN = 1 [15:18:15]*** CUTSNS_PIN = 0 [15:18:15]*** Brake cut motor [15:18:16]Read from MH i2c: 01 [15:18:16]MH_I2C_Read... [15:18:16]*** Stop cut motor [15:18:16]*** Cut end [15:18:16]Read from MH i2c: 01 07 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 FF 0F 83 [15:18:16]process_action close_receipt done [15:18:16]requested_data is exist [15:18:16]produce_requested_data [15:18:16]requested_item fm.sn is exist - process it [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 11 00 00 [15:18:16]Write to MH i2c: E2 08 00 6C 03 80 11 00 00 00 00 00 00 E9 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 17 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 17 00 6C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3E [15:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:18:16]wFMCommunicate OK [15:18:16]requested_item fd.num is exist - process it [15:18:16]SAM_PROTO_GetFieldsCounters [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 13 00 00 [15:18:16]Write to MH i2c: E2 08 00 6D 03 80 13 00 00 00 00 00 00 EC [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 62 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 62 00 6D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C0 85 00 00 0E 04 04 00 43 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 59 [15:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C0 85 00 00 0E 04 04 00 43 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 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_GetFieldsCounters done [15:18:16]requested_item shift.num is exist - process it [15:18:16]requested_item shift.opened is exist - process it [15:18:16]req_shift_opened [15:18:16]FM_GetShiftState [15:18:16]SAM_PROTO_GetShiftState [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 13 01 00 [15:18:16]Write to MH i2c: E2 08 00 6E 03 80 13 01 00 00 00 00 00 EE [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0E 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 0E 00 6E 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 39 [15:18:16]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_GetShiftState done [15:18:16]FM_GetShiftState done [15:18:16]req_shift_opened done [15:18:16]requested_item shift.open_date is exist - process it [15:18:16]req_shift_open_date [15:18:16]req_shift_open_date done [15:18:16]produce_requested_data done [15:18:16]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34240,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:18:16]process_action_free close_receipt [15:18:16]json_value_free [15:18:16]json_value_free done [15:18:16]process_json_proto returns [15:18:16]Send response to host [15:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34240,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:18:16]free response buf [15:18:16]execute_script done [15:18:16]execute_script returns [15:18:16]free content buf [15:18:16]Sock 7.Close socket [15:18:16]Sock 7.Thread stoped [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:44]accept exits with 9 [15:28:44]New connection [15:28:44]New thread 3067567460 created [15:28:44]Thread 3067424100 joined [15:28:44]Waiting for new connection... [15:28:44] Sock 9.Parse request [15:28:44]Sock 9.Check first char [15:28:44]Sock 9.First char is OK [15:28:44]request: POST /json_proto HTTP/1.0 [15:28:44]Method: POST [15:28:44]URL: /json_proto [15:28:44]Method is POST - this is cgi request [15:28:44]url: /json_proto [15:28:44]query_string will be loaded in cgi processing [15:28:44]execute_cgi json_proto POST (null) [15:28:44]execute_cgi path=json_proto method=POST [15:28:44]POST find Content-Length [15:28:44]Host: 172.17.38.134:8080 [15:28:44]Content-Length: 734 [15:28:44]Content-Type: application/json [15:28:44] [15:28:44]POST finish read [15:28:44]Found Content-Length = 734 [15:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184032", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:44]execute_script... [15:28:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184032", "tax_sys" : 0, "items" : [ { "code": "0010420131003133", "name": "\u0423\u0433\u043E\u043B\u044C \u0434\u0440\u0435\u0432\u0435\u0441\u043D\u044B\u0439 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C 3\u043A\u0433", "price" : 395.00, "quantity" : 1.000, "sum" : 395.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:44]POST & json_proto [15:28:44]process_json_proto [15:28:44]json parsed OK: [15:28:44]protocol is kg_v1.0 [15:28:44]action value=close_receipt [15:28:44]process_action close_receipt [15:28:44]cmd_close_receipt [15:28:44]MH_GetDate [15:28:44]Write to MH i2c: F0 00 00 6F 03 61 [15:28:44]Write i2c OK [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 09 00 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 09 00 6F 03 00 AD A7 71 66 13 9C 7C 64 24 [15:28:44]GetLastDocTimeStamp 1718723893 [15:28:44]current date 1718724525 [15:28:44]FM_GetShiftState [15:28:44]SAM_PROTO_GetShiftState [15:28:44]wFMCommunicate request_size=4 [15:28:44]MH_SAM_APDU [15:28:44]CAPDU: 80 13 01 00 [15:28:44]Write to MH i2c: E2 08 00 70 03 80 13 01 00 00 00 00 00 F0 [15:28:44]Write i2c OK [15:28:44]MH_I2C_Read... [15:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:44]Read from MH i2c: E2 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: E2 0E 00 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: E2 0E 00 70 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3B [15:28:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:28:44]wFMCommunicate OK [15:28:44]SAM_PROTO_GetShiftState done [15:28:44]FM_GetShiftState done [15:28:44]opened in 1718670230 [15:28:44]opened+sec_in_day 1718756630 [15:28:44]quantity*price = 39500 [15:28:44]sum+1 = 39501 [15:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.50 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 63 18.06.2024 15:28 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34241 ФПД: 230413029941997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T152845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34241&fm=230413029941997&tin=02508201610067®Number=0000000000092786&sum=39500 0 [15:28:45]StoreToDocumentArchive [15:28:45]shift 323 fd 34241 [15:28:45]save to /storage/0323/doc_00034241 [15:28:45]save last doc name /storage/0323/doc_00034241 to /storage/kkm_last_doc_name [15:28:45]save OK [15:28:45]Clear old archive folders... [15:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=306 [15:28:45]tlvbuf is 0193DB30 [15:28:45]SAM_PROTO_ClearQueue [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 09 00 00 [15:28:45]Write to MH i2c: E2 08 00 7D 03 80 09 00 00 00 00 00 00 F2 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]SAM_PROTO_ClearQueue done [15:28:45]KKMCreateOFDPacket [15:28:45]OFDProtocolAddRootSTLVToBuf [15:28:45]FM_MakeSignedData [15:28:45]FM_MakeSignedData [15:28:45]SAM_PROTO_SignData [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 01 02 [15:28:45]Write to MH i2c: E2 08 00 7E 03 80 0D 01 02 00 00 00 00 FA [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=255 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 AD A7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 [15:28:45]Write to MH i2c: E2 02 01 7F 03 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 AD A7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 00 BC [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]OFD Sender: No OFD packet to send [15:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=65 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C1 85 00 00 35 04 06 00 D1 8F 36 CD 22 ED [15:28:45]Write to MH i2c: E2 44 00 80 03 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C1 85 00 00 35 04 06 00 D1 8F 36 CD 22 ED 00 00 0D [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 80 03 00 90 00 F7 [15:28:46]RAPDU: 90 00 [15:28:46]wFMCommunicate OK [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 0D 03 02 [15:28:46]Write to MH i2c: E2 08 00 81 03 80 0D 03 02 00 00 00 00 FF [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0B 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0B 00 81 03 00 F0 CF A8 C6 E4 96 BD 32 90 00 96 [15:28:46]RAPDU: F0 CF A8 C6 E4 96 BD 32 90 00 [15:28:46]wFMCommunicate OK [15:28:46]SAM_PROTO_SignData done [15:28:46]FM_MakeSignedData done [15:28:46]CreateOFDProtocolMessage [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 11 00 00 [15:28:46]Write to MH i2c: E2 08 00 82 03 80 11 00 00 00 00 00 00 FF [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 82 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 54 [15:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:28:46]wFMCommunicate OK [15:28:46]CreateOFDProtocolMessage done [15:28:46]OFDSenderStorePacket 34241 [15:28:46]StoreOFDPacket docnum=34241 [15:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 46 01 00 00 78 DA 3E 01 74 68 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 AD A7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C1 85 00 00 35 04 06 00 D1 8F 36 CD 22 ED F0 CF A8 C6 E4 96 BD 32 [15:28:46]CheckFolder [15:28:46]dirname=/storage/ofd_packets [15:28:46]CheckFolder done [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00034241 [15:28:46]NVStorageSaveData ofd_packets/00034241 [15:28:46]File name is /storage/ofd_packets/00034241 [15:28:46]Write 356 bytes [15:28:46]NVStorageSaveData done [15:28:46]OFDSenderStorePacket done [15:28:46]KKMCreateOFDPacket done [15:28:46]NVStorageSaveData kkm_last_timestamp [15:28:46]File name is /storage/kkm_last_timestamp [15:28:46]Write 4 bytes [15:28:46]NVStorageSaveData done [15:28:46]ExternCall_PrintAddStr [15:28:46]wPrintStart [15:28:46]Write to MH i2c: 01 00 00 83 03 86 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 83 03 00 00 00 00 00 FF 0F 9B [15:28:46]RasterBufferAndPrint [15:28:46]line Счет N : (3)184032 [15:28:46]line ИНН: 02508201610067 [15:28:46]line Контрольно-Кассовый Чек [15:28:46]line ПРОДАЖА [15:28:46]line Товар: 0010420131003133 [15:28:46]line Уголь древесный Партнер Нефть 3кг [15:28:46]line 1.000 * 395.00 [15:28:46]line = 395.00 [15:28:46]line НДС 12% НСП 1% [15:28:46]line > о реализуемом товаре [15:28:46]line ИТОГО: 395.00 [15:28:46]line НСП 1% : 3.50 [15:28:46]line НДС 12% : 41.95 [15:28:46]line Наличными: 395.00 [15:28:46]line Безнал.: 0.00 [15:28:46]line Место: АЗС № 120 "Партнер Нефть" [15:28:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:28:46]line СНО: Общий режим [15:28:46]line Чек 63 18.06.2024 15:28 [15:28:46]line Смена: 323 ФФД: 1.0 [15:28:46]line ЗНМ: 0300000172 [15:28:46]line РНМ: 0000000000092786 [15:28:46]line Версия ККМ: 001 [15:28:46]line ФМ: 0000000000875095 [15:28:46]line ФД: 34241 [15:28:46]line ФПД: 230413029941997 [15:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T152845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34241&fm=230413029941997&tin=02508201610067®Number=0000000000092786&sum=39500 [15:28:46]line 0 [15:28:46]OFD Sender: Processing packet 34241 [packets to send 8, broken 7] [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00034241 [15:28:46]OFD Sender: To server: pG, [15:28:46]CommunicateWithHost lk.salyk.kg:30040 [15:28:46]ConnectInit lk.salyk.kg [15:28:46]written 0, free lines is 4095 [15:28:46]Connected sock=7 [15:28:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 46 01 00 00 78 DA 3E 01 74 68 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 10 00 30 30 31 30 34 32 30 31 33 31 30 30 33 31 33 33 06 04 3D 00 D0 A3 D0 B3 D0 BE D0 BB D1 8C 20 D0 B4 D1 80 D0 B5 D0 B2 D0 B5 D1 81 D0 BD D1 8B D0 B9 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 20 33 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 9A 00 00 00 00 13 04 06 00 4C 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 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 AD A7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C1 85 00 00 35 04 06 00 D1 8F 36 CD 22 ED F0 CF A8 C6 E4 96 BD 32 [15:28:46]Write to MH i2c: 01 00 00 AC 03 AF [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 D5 0C 97 [15:28:46]RasterBufferAndPrint [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]written 0, free lines is 3291 [15:28:46]MH_Cut [15:28:46]Write to MH i2c: D1 01 00 B3 03 01 88 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: D1 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: D1 01 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: D1 01 00 B3 03 00 87 [15:28:46]Write to MH i2c: 01 00 00 B4 03 B7 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 07 02 47 00 65 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C1 85 00 00 F4 03 04 00 7C 4E 71 66 B6 04 01 00 00 DC 2A 2B 6A 6D 53 38 A6 [15:28:46]CommunicateWithHost err = 0 [15:28:46]CheckOFDResponse [15:28:46]1017 (14) - 77093643461234 [15:28:46]1041 (16) - 0000000000875095 [15:28:46]1040 (4) - 34241 [15:28:46]1012 (4) - 18.06.2024 09:08 [15:28:46]1206 (1) - 0 [15:28:46]OFD Sender: Remove packet 34241 [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00034241 [15:28:46]NVStorageDeleteData [15:28:47]OFD Sender: No OFD packet to send [15:28:47]*** Cut start [15:28:47]*** Partial cut [15:28:47]*** CUTSNS_PIN = 1 [15:28:47]*** CUTSNS_PIN = 0 [15:28:47]*** Brake cut motor [15:28:48]Read from MH i2c: 01 [15:28:48]MH_I2C_Read... [15:28:48]*** Stop cut motor [15:28:48]*** Cut end [15:28:48]Read from MH i2c: 01 07 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [15:28:48]process_action close_receipt done [15:28:48]requested_data is exist [15:28:48]produce_requested_data [15:28:48]requested_item fm.sn is exist - process it [15:28:48]wFMCommunicate request_size=4 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 11 00 00 [15:28:48]Write to MH i2c: E2 08 00 B5 03 80 11 00 00 00 00 00 00 32 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 17 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 17 00 B5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 87 [15:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:28:48]wFMCommunicate OK [15:28:48]requested_item fd.num is exist - process it [15:28:48]SAM_PROTO_GetFieldsCounters [15:28:48]wFMCommunicate request_size=4 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 13 00 00 [15:28:48]Write to MH i2c: E2 08 00 B6 03 80 13 00 00 00 00 00 00 35 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 62 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 62 00 B6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C1 85 00 00 0E 04 04 00 43 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 A6 [15:28:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C1 85 00 00 0E 04 04 00 43 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 [15:28:48]wFMCommunicate OK [15:28:48]SAM_PROTO_GetFieldsCounters done [15:28:48]requested_item shift.num is exist - process it [15:28:48]requested_item shift.opened is exist - process it [15:28:48]req_shift_opened [15:28:48]FM_GetShiftState [15:28:48]SAM_PROTO_GetShiftState [15:28:48]wFMCommunicate request_size=4 [15:28:48]MH_SAM_APDU [15:28:48]CAPDU: 80 13 01 00 [15:28:48]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [15:28:48]Write i2c OK [15:28:48]MH_I2C_Read... [15:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:48]Read from MH i2c: E2 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 0E 00 [15:28:48]MH_I2C_Read... [15:28:48]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 82 [15:28:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:28:48]wFMCommunicate OK [15:28:48]SAM_PROTO_GetShiftState done [15:28:48]FM_GetShiftState done [15:28:48]req_shift_opened done [15:28:48]requested_item shift.open_date is exist - process it [15:28:48]req_shift_open_date [15:28:48]req_shift_open_date done [15:28:48]produce_requested_data done [15:28:48]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34241,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:28:48]process_action_free close_receipt [15:28:48]json_value_free [15:28:48]json_value_free done [15:28:48]process_json_proto returns [15:28:48]Send response to host [15:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34241,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:28:48]free response buf [15:28:48]execute_script done [15:28:48]execute_script returns [15:28:48]free content buf [15:28:48]Sock 9.Close socket [15:28:48]Sock 9.Thread stoped [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:24]accept exits with 10 [15:32:24]New connection [15:32:24]New thread 3067424100 created [15:32:24]Thread 3067567460 joined [15:32:24]Waiting for new connection... [15:32:24] Sock 10.Parse request [15:32:24]Sock 10.Check first char [15:32:24]Sock 10.First char is OK [15:32:24]request: POST /json_proto HTTP/1.0 [15:32:24]Method: POST [15:32:24]URL: /json_proto [15:32:24]Method is POST - this is cgi request [15:32:24]url: /json_proto [15:32:24]query_string will be loaded in cgi processing [15:32:24]execute_cgi json_proto POST (null) [15:32:24]execute_cgi path=json_proto method=POST [15:32:24]POST find Content-Length [15:32:24]Host: 172.17.38.134:8080 [15:32:24]Content-Length: 617 [15:32:24]Content-Type: application/json [15:32:24] [15:32:24]POST finish read [15:32:24]Found Content-Length = 617 [15:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184033", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [15:32:24]execute_script... [15:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184033", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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" ] } } [15:32:24]POST & json_proto [15:32:24]process_json_proto [15:32:24]json parsed OK: [15:32:24]protocol is kg_v1.0 [15:32:24]action value=close_receipt [15:32:24]process_action close_receipt [15:32:24]cmd_close_receipt [15:32:24]MH_GetDate [15:32:24]Write to MH i2c: F0 00 00 B8 03 AA [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: F0 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: F0 09 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: F0 09 00 B8 03 00 89 A8 71 66 13 9C 7C 64 4A [15:32:24]GetLastDocTimeStamp 1718724525 [15:32:24]current date 1718724745 [15:32:24]FM_GetShiftState [15:32:24]SAM_PROTO_GetShiftState [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 01 00 [15:32:24]Write to MH i2c: E2 08 00 B9 03 80 13 01 00 00 00 00 00 39 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 B9 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 84 [15:32:24]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_GetShiftState done [15:32:24]FM_GetShiftState done [15:32:24]opened in 1718670230 [15:32:24]opened+sec_in_day 1718756630 [15:32:24]quantity*price = 14000 [15:32:24]sum+1 = 14001 [15:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 64 18.06.2024 15:32 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34242 ФПД: 149812226835856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153225&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34242&fm=149812226835856&tin=02508201610067®Number=0000000000092786&sum=14000 0 [15:32:25]StoreToDocumentArchive [15:32:25]shift 323 fd 34242 [15:32:25]save to /storage/0323/doc_00034242 [15:32:25]save last doc name /storage/0323/doc_00034242 to /storage/kkm_last_doc_name [15:32:25]save OK [15:32:25]Clear old archive folders... [15:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:32:25]tlvbuf is 01946900 [15:32:25]SAM_PROTO_ClearQueue [15:32:25]wFMCommunicate request_size=4 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 09 00 00 [15:32:25]Write to MH i2c: E2 08 00 C6 03 80 09 00 00 00 00 00 00 3B [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [15:32:25]RAPDU: 90 00 [15:32:25]wFMCommunicate OK [15:32:25]SAM_PROTO_ClearQueue done [15:32:25]KKMCreateOFDPacket [15:32:25]OFDProtocolAddRootSTLVToBuf [15:32:25]FM_MakeSignedData [15:32:25]FM_MakeSignedData [15:32:25]SAM_PROTO_SignData [15:32:25]wFMCommunicate request_size=4 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 0D 01 02 [15:32:25]Write to MH i2c: E2 08 00 C7 03 80 0D 01 02 00 00 00 00 43 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [15:32:25]RAPDU: 90 00 [15:32:25]wFMCommunicate OK [15:32:25]wFMCommunicate request_size=255 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 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 40 00 00 00 F4 03 04 00 89 A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:32:25]Write to MH i2c: E2 02 01 C8 03 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 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 40 00 00 00 F4 03 04 00 89 A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 C1 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:25]Read from MH i2c: E2 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 [15:32:25]MH_I2C_Read... [15:32:25]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [15:32:25]RAPDU: 90 00 [15:32:25]wFMCommunicate OK [15:32:25]wFMCommunicate request_size=28 [15:32:25]MH_SAM_APDU [15:32:25]CAPDU: 80 0D 02 02 17 37 35 30 39 35 10 04 04 00 C2 85 00 00 35 04 06 00 88 40 E0 90 45 90 [15:32:25]Write to MH i2c: E2 1F 00 C9 03 80 0D 02 02 17 00 37 35 30 39 35 10 04 04 00 C2 85 00 00 35 04 06 00 88 40 E0 90 45 90 00 00 29 [15:32:25]Write i2c OK [15:32:25]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [15:32:26]RAPDU: 90 00 [15:32:26]wFMCommunicate OK [15:32:26]wFMCommunicate request_size=4 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 0D 03 02 [15:32:26]Write to MH i2c: E2 08 00 CA 03 80 0D 03 02 00 00 00 00 48 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 0B 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 0B 00 CA 03 00 22 17 B2 A7 D1 99 06 56 90 00 A1 [15:32:26]RAPDU: 22 17 B2 A7 D1 99 06 56 90 00 [15:32:26]wFMCommunicate OK [15:32:26]SAM_PROTO_SignData done [15:32:26]FM_MakeSignedData done [15:32:26]CreateOFDProtocolMessage [15:32:26]wFMCommunicate request_size=4 [15:32:26]MH_SAM_APDU [15:32:26]CAPDU: 80 11 00 00 [15:32:26]Write to MH i2c: E2 08 00 CB 03 80 11 00 00 00 00 00 00 48 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:26]Read from MH i2c: E2 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 17 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: E2 17 00 CB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9D [15:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:32:26]wFMCommunicate OK [15:32:26]CreateOFDProtocolMessage done [15:32:26]OFDSenderStorePacket 34242 [15:32:26]StoreOFDPacket docnum=34242 [15:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 A1 43 19 01 F8 F8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 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 40 00 00 00 F4 03 04 00 89 A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C2 85 00 00 35 04 06 00 88 40 E0 90 45 90 22 17 B2 A7 D1 99 06 56 [15:32:26]CheckFolder [15:32:26]dirname=/storage/ofd_packets [15:32:26]CheckFolder done [15:32:26]ProducePacketName [15:32:26]name=ofd_packets/00034242 [15:32:26]NVStorageSaveData ofd_packets/00034242 [15:32:26]File name is /storage/ofd_packets/00034242 [15:32:26]Write 319 bytes [15:32:26]NVStorageSaveData done [15:32:26]OFDSenderStorePacket done [15:32:26]KKMCreateOFDPacket done [15:32:26]NVStorageSaveData kkm_last_timestamp [15:32:26]File name is /storage/kkm_last_timestamp [15:32:26]Write 4 bytes [15:32:26]NVStorageSaveData done [15:32:26]ExternCall_PrintAddStr [15:32:26]wPrintStart [15:32:26]Write to MH i2c: 01 00 00 CC 03 CF [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 FF 0F E4 [15:32:26]RasterBufferAndPrint [15:32:26]line Счет N : (3)184033 [15:32:26]line ИНН: 02508201610067 [15:32:26]line Контрольно-Кассовый Чек [15:32:26]line ПРОДАЖА [15:32:26]line Товар: 47803008 [15:32:26]line Сигареты Winston XS Blue [15:32:26]line 1.000 * 140.00 [15:32:26]line = 140.00 [15:32:26]line НДС 12% НСП 1% [15:32:26]line > о реализуемом товаре [15:32:26]line ИТОГО: 140.00 [15:32:26]line НСП 1% : 1.24 [15:32:26]line НДС 12% : 14.87 [15:32:26]line Наличными: 140.00 [15:32:26]line Безнал.: 0.00 [15:32:26]line Место: АЗС № 120 "Партнер Нефть" [15:32:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:32:26]line СНО: Общий режим [15:32:26]line Чек 64 18.06.2024 15:32 [15:32:26]line Смена: 323 ФФД: 1.0 [15:32:26]line ЗНМ: 0300000172 [15:32:26]line РНМ: 0000000000092786 [15:32:26]line Версия ККМ: 001 [15:32:26]line ФМ: 0000000000875095 [15:32:26]line ФД: 34242 [15:32:26]line ФПД: 149812226835856 [15:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153225&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34242&fm=149812226835856&tin=02508201610067®Number=0000000000092786&sum=14000 [15:32:26]OFD Sender: Processing packet 34242 [packets to send 8, broken 7] [15:32:26]ProducePacketName [15:32:26]name=ofd_packets/00034242 [15:32:26]OFD Sender: To server: pG, [15:32:26]CommunicateWithHost lk.salyk.kg:30040 [15:32:26]ConnectInit lk.salyk.kg [15:32:26]line 0 [15:32:26]written 0, free lines is 4095 [15:32:26]Connected sock=9 [15:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 A1 43 19 01 F8 F8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 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 40 00 00 00 F4 03 04 00 89 A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C2 85 00 00 35 04 06 00 88 40 E0 90 45 90 22 17 B2 A7 D1 99 06 56 [15:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DD CA 47 00 F7 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C2 85 00 00 F4 03 04 00 58 4F 71 66 B6 04 01 00 00 13 B4 74 ED 14 F6 FF 0B [15:32:26]CommunicateWithHost err = 0 [15:32:26]CheckOFDResponse [15:32:26]1017 (14) - 77093643461234 [15:32:26]1041 (16) - 0000000000875095 [15:32:26]1040 (4) - 34242 [15:32:26]1012 (4) - 18.06.2024 09:11 [15:32:26]1206 (1) - 0 [15:32:26]OFD Sender: Remove packet 34242 [15:32:26]ProducePacketName [15:32:26]name=ofd_packets/00034242 [15:32:26]NVStorageDeleteData [15:32:26]Write to MH i2c: 01 00 00 F4 03 F7 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 02 0D 0D [15:32:26]RasterBufferAndPrint [15:32:26]line [15:32:26]line [15:32:26]line [15:32:26]line [15:32:26]line [15:32:26]written 0, free lines is 3337 [15:32:26]MH_Cut [15:32:26]Write to MH i2c: D1 01 00 FB 03 01 D0 [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: D1 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: D1 01 00 [15:32:26]MH_I2C_Read... [15:32:26]Read from MH i2c: D1 01 00 FB 03 00 CF [15:32:26]Write to MH i2c: 01 00 00 FC 03 FF [15:32:26]Write i2c OK [15:32:26]MH_I2C_Read... [15:32:27]OFD Sender: No OFD packet to send [15:32:27]*** Cut start [15:32:27]*** Partial cut [15:32:27]*** CUTSNS_PIN = 1 [15:32:27]*** CUTSNS_PIN = 0 [15:32:27]*** Brake cut motor [15:32:28]Read from MH i2c: 01 [15:32:28]MH_I2C_Read... [15:32:28]*** Stop cut motor [15:32:28]*** Cut end [15:32:28]Read from MH i2c: 01 07 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [15:32:28]process_action close_receipt done [15:32:28]requested_data is exist [15:32:28]produce_requested_data [15:32:28]requested_item fm.sn is exist - process it [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 11 00 00 [15:32:28]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 17 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CF [15:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:32:28]wFMCommunicate OK [15:32:28]requested_item fd.num is exist - process it [15:32:28]SAM_PROTO_GetFieldsCounters [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 13 00 00 [15:32:28]Write to MH i2c: E2 08 00 FE 03 80 13 00 00 00 00 00 00 7D [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 62 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 62 00 FE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C2 85 00 00 0E 04 04 00 43 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 F2 [15:32:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:28]wFMCommunicate OK [15:32:28]SAM_PROTO_GetFieldsCounters done [15:32:28]requested_item shift.num is exist - process it [15:32:28]requested_item shift.opened is exist - process it [15:32:28]req_shift_opened [15:32:28]FM_GetShiftState [15:32:28]SAM_PROTO_GetShiftState [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 13 01 00 [15:32:28]Write to MH i2c: E2 08 00 FF 03 80 13 01 00 00 00 00 00 7F [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 0E 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 0E 00 FF 03 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CA [15:32:28]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:32:28]wFMCommunicate OK [15:32:28]SAM_PROTO_GetShiftState done [15:32:28]FM_GetShiftState done [15:32:28]req_shift_opened done [15:32:28]requested_item shift.open_date is exist - process it [15:32:28]req_shift_open_date [15:32:28]req_shift_open_date done [15:32:28]produce_requested_data done [15:32:28]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34242,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:32:28]process_action_free close_receipt [15:32:28]json_value_free [15:32:28]json_value_free done [15:32:28]process_json_proto returns [15:32:28]Send response to host [15:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34242,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:32:28]free response buf [15:32:28]execute_script done [15:32:28]execute_script returns [15:32:28]free content buf [15:32:28]Sock 10.Close socket [15:32:28]Sock 10.Thread stoped [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:32]accept exits with 7 [15:33:32]New connection [15:33:32]New thread 3067567460 created [15:33:32]Thread 3067424100 joined [15:33:32]Waiting for new connection... [15:33:32] Sock 7.Parse request [15:33:32]Sock 7.Check first char [15:33:32]Sock 7.First char is OK [15:33:32]request: POST /json_proto HTTP/1.0 [15:33:32]Method: POST [15:33:32]URL: /json_proto [15:33:32]Method is POST - this is cgi request [15:33:32]url: /json_proto [15:33:32]query_string will be loaded in cgi processing [15:33:32]execute_cgi json_proto POST (null) [15:33:32]execute_cgi path=json_proto method=POST [15:33:32]POST find Content-Length [15:33:32]Host: 172.17.38.134:8080 [15:33:32]Content-Length: 1463 [15:33:32]Content-Type: application/json [15:33:32] [15:33:32]POST finish read [15:33:32]Found Content-Length = 1463 [15:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184034", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4605664012176", "name": "\u041F\u0438\u0432\u043E \u0412\u0435\u043B\u043A\u043E\u043F\u043E\u043F\u043E\u0432\u0438\u0446\u043A\u0438\u0439 \u043A\u043E\u0437\u0435\u043B \u0442\u0435\u043C\u043D\u043E\u0435 0,5\u043B \u0441", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004289", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 2.000, "sum" : 240.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" : 645.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:32]execute_script... [15:33: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 : (3)184034", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4605664012176", "name": "\u041F\u0438\u0432\u043E \u0412\u0435\u043B\u043A\u043E\u043F\u043E\u043F\u043E\u0432\u0438\u0446\u043A\u0438\u0439 \u043A\u043E\u0437\u0435\u043B \u0442\u0435\u043C\u043D\u043E\u0435 0,5\u043B \u0441", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004289", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 2.000, "sum" : 240.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" : 645.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:32]POST & json_proto [15:33:32]process_json_proto [15:33:32]json parsed OK: [15:33:32]protocol is kg_v1.0 [15:33:32]action value=close_receipt [15:33:32]process_action close_receipt [15:33:32]cmd_close_receipt [15:33:32]MH_GetDate [15:33:32]Write to MH i2c: F0 00 00 00 04 F3 [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 09 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: F0 09 00 00 04 00 CD A8 71 66 13 9C 7C 64 D7 [15:33:32]GetLastDocTimeStamp 1718724745 [15:33:32]current date 1718724813 [15:33:32]FM_GetShiftState [15:33:32]SAM_PROTO_GetShiftState [15:33:32]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 13 01 00 [15:33:33]Write to MH i2c: E2 08 00 01 04 80 13 01 00 00 00 00 00 82 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0E 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 0E 00 01 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CD [15:33:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_GetShiftState done [15:33:33]FM_GetShiftState done [15:33:33]opened in 1718670230 [15:33:33]opened+sec_in_day 1718756630 [15:33:33]quantity*price = 13500 [15:33:33]sum+1 = 13501 [15:33:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4605664012176 Пиво Велкопоповицкий козел темное 0,5л с 2.000 * 135.00 = 270.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145004289 Пиво Балтика 9 креп 0,5л ж/б 2.000 * 120.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 645.00 НСП 1% : 5.70 НДС 12% : 68.50 Наличными: 0.00 Безнал.: 645.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 65 18.06.2024 15:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34243 ФПД: 106742186297754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153333&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34243&fm=106742186297754&tin=02508201610067®Number=0000000000092786&sum=64500 0 [15:33:33]StoreToDocumentArchive [15:33:33]shift 323 fd 34243 [15:33:33]save to /storage/0323/doc_00034243 [15:33:33]save last doc name /storage/0323/doc_00034243 to /storage/kkm_last_doc_name [15:33:33]save OK [15:33:33]Clear old archive folders... [15:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=534 [15:33:33]tlvbuf is 018E4620 [15:33:33]SAM_PROTO_ClearQueue [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 09 00 00 [15:33:33]Write to MH i2c: E2 08 00 0E 04 80 09 00 00 00 00 00 00 84 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]SAM_PROTO_ClearQueue done [15:33:33]KKMCreateOFDPacket [15:33:33]OFDProtocolAddRootSTLVToBuf [15:33:33]FM_MakeSignedData [15:33:33]FM_MakeSignedData [15:33:33]SAM_PROTO_SignData [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 01 02 [15:33:33]Write to MH i2c: E2 08 00 0F 04 80 0D 01 02 00 00 00 00 8C [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [15:33:33]RAPDU: 90 00 [15:33:33]wFMCommunicate OK [15:33:33]wFMCommunicate request_size=255 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 0D 02 02 FA 03 00 16 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 37 36 06 04 48 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 D1 82 D0 B5 D0 BC D0 BD D0 BE D0 B5 20 30 2C 35 D0 BB 20 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [15:33:34]Write to MH i2c: E2 02 01 10 04 80 0D 02 02 FA 00 03 00 16 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 37 36 06 04 48 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 D1 82 D0 B5 D0 BC D0 BD D0 BE D0 B5 20 30 2C 35 D0 BB 20 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 DA [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [15:33:34]RAPDU: 90 00 [15:33:34]wFMCommunicate OK [15:33:34]wFMCommunicate request_size=255 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 0D 02 02 FA BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [15:33:34]Write to MH i2c: E2 02 01 11 04 80 0D 02 02 FA 00 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 5D [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [15:33:34]RAPDU: 90 00 [15:33:34]wFMCommunicate OK [15:33:34]wFMCommunicate request_size=43 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C3 85 00 00 35 04 06 00 61 14 DA 18 C9 9A [15:33:34]Write to MH i2c: E2 2E 00 12 04 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C3 85 00 00 35 04 06 00 61 14 DA 18 C9 9A 00 00 8C [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [15:33:34]RAPDU: 90 00 [15:33:34]wFMCommunicate OK [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 0D 03 02 [15:33:34]Write to MH i2c: E2 08 00 13 04 80 0D 03 02 00 00 00 00 92 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0B 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0B 00 13 04 00 75 BE 24 11 2F 3E A3 47 90 00 52 [15:33:34]RAPDU: 75 BE 24 11 2F 3E A3 47 90 00 [15:33:34]wFMCommunicate OK [15:33:34]SAM_PROTO_SignData done [15:33:34]FM_MakeSignedData done [15:33:34]CreateOFDProtocolMessage [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 11 00 00 [15:33:34]Write to MH i2c: E2 08 00 14 04 80 11 00 00 00 00 00 00 92 [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 [15:33:35]MH_I2C_Read... [15:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:35]Read from MH i2c: E2 17 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: E2 17 00 14 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E7 [15:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:33:35]wFMCommunicate OK [15:33:35]CreateOFDProtocolMessage done [15:33:35]OFDSenderStorePacket 34243 [15:33:35]StoreOFDPacket docnum=34243 [15:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 02 00 00 98 2D 22 02 6F 88 5A 03 01 00 03 00 16 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 37 36 06 04 48 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 D1 82 D0 B5 D0 BC D0 BD D0 BE D0 B5 20 30 2C 35 D0 BB 20 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C3 85 00 00 35 04 06 00 61 14 DA 18 C9 9A 75 BE 24 11 2F 3E A3 47 [15:33:35]CheckFolder [15:33:35]dirname=/storage/ofd_packets [15:33:35]CheckFolder done [15:33:35]ProducePacketName [15:33:35]name=ofd_packets/00034243 [15:33:35]NVStorageSaveData ofd_packets/00034243 [15:33:35]File name is /storage/ofd_packets/00034243 [15:33:35]Write 584 bytes [15:33:35]NVStorageSaveData done [15:33:35]OFDSenderStorePacket done [15:33:35]KKMCreateOFDPacket done [15:33:35]NVStorageSaveData kkm_last_timestamp [15:33:35]File name is /storage/kkm_last_timestamp [15:33:35]Write 4 bytes [15:33:35]NVStorageSaveData done [15:33:35]ExternCall_PrintAddStr [15:33:35]wPrintStart [15:33:35]Write to MH i2c: 01 00 00 15 04 19 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 [15:33:35]MH_I2C_Read... [15:33:35]OFD Sender: Processing packet 34243 [packets to send 8, broken 7] [15:33:35]ProducePacketName [15:33:35]name=ofd_packets/00034243 [15:33:35]OFD Sender: To server: pG, [15:33:35]CommunicateWithHost lk.salyk.kg:30040 [15:33:35]ConnectInit lk.salyk.kg [15:33:35]Read from MH i2c: 01 07 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 FF 0F 2E [15:33:35]RasterBufferAndPrint [15:33:35]line Счет N : (3)184034 [15:33:35]line ИНН: 02508201610067 [15:33:35]line Контрольно-Кассовый Чек [15:33:35]line ПРОДАЖА [15:33:35]line Товар: 48745000 [15:33:35]line Сигареты Winston Purple Mix [15:33:35]line 1.000 * 135.00 [15:33:35]line = 135.00 [15:33:35]line НДС 12% НСП 1% [15:33:35]line > о реализуемом товаре [15:33:35]line Товар: 4605664012176 [15:33:35]line Пиво Велкопоповицкий козел темное 0,5л с [15:33:35]line 2.000 * 135.00 [15:33:35]line = 270.00 [15:33:35]line НДС 12% НСП 1% [15:33:35]line > о реализуемом товаре [15:33:35]line Товар: 4870145004289 [15:33:35]line Пиво Балтика 9 креп 0,5л ж/б [15:33:35]line 2.000 * 120.00 [15:33:35]line = 240.00 [15:33:35]line НДС 12% НСП 1% [15:33:35]line > о реализуемом товаре [15:33:35]line ИТОГО: 645.00 [15:33:35]line НСП 1% : 5.70 [15:33:35]line НДС 12% : 68.50 [15:33:35]line Наличными: 0.00 [15:33:35]line Безнал.: 645.00 [15:33:35]line Место: АЗС № 120 "Партнер Нефть" [15:33:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:33:35]line СНО: Общий режим [15:33:35]line Чек 65 18.06.2024 15:33 [15:33:35]line Смена: 323 ФФД: 1.0 [15:33:35]line ЗНМ: 0300000172 [15:33:35]line РНМ: 0000000000092786 [15:33:35]line Версия ККМ: 001 [15:33:35]line Платежная система: Бакай Банк [15:33:35]line ФМ: 0000000000875095 [15:33:35]line ФД: 34243 [15:33:35]line ФПД: 106742186297754 [15:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153333&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34243&fm=106742186297754&tin=02508201610067®Number=0000000000092786&sum=64500 [15:33:35]line 0 [15:33:35]written 0, free lines is 4095 [15:33:35]Connected sock=10 [15:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 02 00 00 98 2D 22 02 6F 88 5A 03 01 00 03 00 16 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 30 35 36 36 34 30 31 32 31 37 36 06 04 48 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 92 D0 B5 D0 BB D0 BA D0 BE D0 BF D0 BE D0 BF D0 BE D0 B2 D0 B8 D1 86 D0 BA D0 B8 D0 B9 20 D0 BA D0 BE D0 B7 D0 B5 D0 BB 20 D1 82 D0 B5 D0 BC D0 BD D0 BE D0 B5 20 30 2C 35 D0 BB 20 D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD A8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C3 85 00 00 35 04 06 00 61 14 DA 18 C9 9A 75 BE 24 11 2F 3E A3 47 [15:33:35]Write to MH i2c: 01 00 00 4C 04 50 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 11 0C 74 [15:33:35]RasterBufferAndPrint [15:33:35]line [15:33:35]line [15:33:35]line [15:33:35]line [15:33:35]line [15:33:35]written 0, free lines is 3096 [15:33:35]MH_Cut [15:33:35]Write to MH i2c: D1 01 00 53 04 01 29 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: D1 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: D1 01 00 [15:33:35]MH_I2C_Read... [15:33:35]Read from MH i2c: D1 01 00 53 04 00 28 [15:33:35]Write to MH i2c: 01 00 00 54 04 58 [15:33:35]Write i2c OK [15:33:35]MH_I2C_Read... [15:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 6A 47 47 00 C3 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C3 85 00 00 F4 03 04 00 9D 4F 71 66 B6 04 01 00 00 AF 27 94 B0 FF 1E B9 19 [15:33:35]CommunicateWithHost err = 0 [15:33:35]CheckOFDResponse [15:33:35]1017 (14) - 77093643461234 [15:33:35]1041 (16) - 0000000000875095 [15:33:35]1040 (4) - 34243 [15:33:35]1012 (4) - 18.06.2024 09:13 [15:33:35]1206 (1) - 0 [15:33:35]OFD Sender: Remove packet 34243 [15:33:35]ProducePacketName [15:33:35]name=ofd_packets/00034243 [15:33:35]NVStorageDeleteData [15:33:36]OFD Sender: No OFD packet to send [15:33:36]*** Cut start [15:33:36]*** Partial cut [15:33:36]*** CUTSNS_PIN = 1 [15:33:36]*** CUTSNS_PIN = 0 [15:33:36]*** Brake cut motor [15:33:37]Read from MH i2c: 01 [15:33:37]MH_I2C_Read... [15:33:37]*** Stop cut motor [15:33:37]*** Cut end [15:33:37]Read from MH i2c: 01 07 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 FF 0F 6D [15:33:37]process_action close_receipt done [15:33:37]requested_data is exist [15:33:37]produce_requested_data [15:33:37]requested_item fm.sn is exist - process it [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 11 00 00 [15:33:37]Write to MH i2c: E2 08 00 55 04 80 11 00 00 00 00 00 00 D3 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 55 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 28 [15:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:33:37]wFMCommunicate OK [15:33:37]requested_item fd.num is exist - process it [15:33:37]SAM_PROTO_GetFieldsCounters [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 13 00 00 [15:33:37]Write to MH i2c: E2 08 00 56 04 80 13 00 00 00 00 00 00 D6 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 62 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 62 00 56 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C3 85 00 00 0E 04 04 00 43 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 4F [15:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C3 85 00 00 0E 04 04 00 43 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 [15:33:37]wFMCommunicate OK [15:33:37]SAM_PROTO_GetFieldsCounters done [15:33:37]requested_item shift.num is exist - process it [15:33:37]requested_item shift.opened is exist - process it [15:33:37]req_shift_opened [15:33:37]FM_GetShiftState [15:33:37]SAM_PROTO_GetShiftState [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 13 01 00 [15:33:37]Write to MH i2c: E2 08 00 57 04 80 13 01 00 00 00 00 00 D8 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 0E 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 0E 00 57 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 23 [15:33:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:33:37]wFMCommunicate OK [15:33:37]SAM_PROTO_GetShiftState done [15:33:37]FM_GetShiftState done [15:33:37]req_shift_opened done [15:33:37]requested_item shift.open_date is exist - process it [15:33:37]req_shift_open_date [15:33:37]req_shift_open_date done [15:33:37]produce_requested_data done [15:33:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34243,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:33:37]process_action_free close_receipt [15:33:37]json_value_free [15:33:37]json_value_free done [15:33:37]process_json_proto returns [15:33:37]Send response to host [15:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34243,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:33:37]free response buf [15:33:37]execute_script done [15:33:37]execute_script returns [15:33:37]free content buf [15:33:37]Sock 7.Close socket [15:33:37]Sock 7.Thread stoped [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:54]accept exits with 9 [15:36:54]New connection [15:36:54]New thread 3067424100 created [15:36:54]Thread 3067567460 joined [15:36:54]Waiting for new connection... [15:36:54] Sock 9.Parse request [15:36:54]Sock 9.Check first char [15:36:54]Sock 9.First char is OK [15:36:54]request: POST /json_proto HTTP/1.0 [15:36:54]Method: POST [15:36:54]URL: /json_proto [15:36:54]Method is POST - this is cgi request [15:36:54]url: /json_proto [15:36:54]query_string will be loaded in cgi processing [15:36:54]execute_cgi json_proto POST (null) [15:36:54]execute_cgi path=json_proto method=POST [15:36:54]POST find Content-Length [15:36:54]Host: 172.17.38.134:8080 [15:36:54]Content-Length: 1111 [15:36:54]Content-Type: application/json [15:36:54] [15:36:54]POST finish read [15:36:54]Found Content-Length = 1111 [15:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184035", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:54]execute_script... [15: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 : (3)184035", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:54]POST & json_proto [15:36:54]process_json_proto [15:36:54]json parsed OK: [15:36:54]protocol is kg_v1.0 [15:36:54]action value=close_receipt [15:36:54]process_action close_receipt [15:36:54]cmd_close_receipt [15:36:54]MH_GetDate [15:36:54]Write to MH i2c: F0 00 00 58 04 4B [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: F0 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: F0 09 00 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: F0 09 00 58 04 00 97 A9 71 66 13 9C 7C 64 FA [15:36:54]GetLastDocTimeStamp 1718724813 [15:36:54]current date 1718725015 [15:36:54]FM_GetShiftState [15:36:54]SAM_PROTO_GetShiftState [15:36:54]wFMCommunicate request_size=4 [15:36:54]MH_SAM_APDU [15:36:54]CAPDU: 80 13 01 00 [15:36:54]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [15:36:54]Write i2c OK [15:36:54]MH_I2C_Read... [15:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:54]Read from MH i2c: E2 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: E2 0E 00 [15:36:54]MH_I2C_Read... [15:36:54]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 25 [15:36:54]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:36:54]wFMCommunicate OK [15:36:54]SAM_PROTO_GetShiftState done [15:36:54]FM_GetShiftState done [15:36:54]opened in 1718670230 [15:36:54]opened+sec_in_day 1718756630 [15:36:54]quantity*price = 11300 [15:36:54]sum+1 = 11301 [15:36:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 0.00 Безнал.: 134.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 66 18.06.2024 15:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34244 ФПД: 217500147326421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153655&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34244&fm=217500147326421&tin=02508201610067®Number=0000000000092786&sum=13400 0 [15:36:55]StoreToDocumentArchive [15:36:55]shift 323 fd 34244 [15:36:55]save to /storage/0323/doc_00034244 [15:36:55]save last doc name /storage/0323/doc_00034244 to /storage/kkm_last_doc_name [15:36:55]save OK [15:36:55]Clear old archive folders... [15:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=395 [15:36:55]tlvbuf is 018E5230 [15:36:55]SAM_PROTO_ClearQueue [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 09 00 00 [15:36:55]Write to MH i2c: E2 08 00 66 04 80 09 00 00 00 00 00 00 DC [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]SAM_PROTO_ClearQueue done [15:36:55]KKMCreateOFDPacket [15:36:55]OFDProtocolAddRootSTLVToBuf [15:36:55]FM_MakeSignedData [15:36:55]FM_MakeSignedData [15:36:55]SAM_PROTO_SignData [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 0D 01 02 [15:36:55]Write to MH i2c: E2 08 00 67 04 80 0D 01 02 00 00 00 00 E4 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=255 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 [15:36:55]Write to MH i2c: E2 02 01 68 04 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 00 00 DE [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 03 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [15:36:56]RAPDU: 90 00 [15:36:56]wFMCommunicate OK [15:36:56]wFMCommunicate request_size=154 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C4 85 00 00 35 04 06 00 C5 D0 B3 05 1D D5 [15:36:56]Write to MH i2c: E2 9D 00 69 04 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C4 85 00 00 35 04 06 00 C5 D0 B3 05 1D D5 00 00 0D [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 03 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [15:36:56]RAPDU: 90 00 [15:36:56]wFMCommunicate OK [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 0D 03 02 [15:36:56]Write to MH i2c: E2 08 00 6A 04 80 0D 03 02 00 00 00 00 E9 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0B 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0B 00 6A 04 00 5E 82 EC F3 19 BE 09 71 90 00 FA [15:36:56]RAPDU: 5E 82 EC F3 19 BE 09 71 90 00 [15:36:56]wFMCommunicate OK [15:36:56]SAM_PROTO_SignData done [15:36:56]FM_MakeSignedData done [15:36:56]CreateOFDProtocolMessage [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 11 00 00 [15:36:56]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 17 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3E [15:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:36:56]wFMCommunicate OK [15:36:56]CreateOFDProtocolMessage done [15:36:56]OFDSenderStorePacket 34244 [15:36:56]StoreOFDPacket docnum=34244 [15:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 9F 01 00 00 B3 B9 97 01 5B D0 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C4 85 00 00 35 04 06 00 C5 D0 B3 05 1D D5 5E 82 EC F3 19 BE 09 71 [15:36:56]CheckFolder [15:36:56]dirname=/storage/ofd_packets [15:36:56]CheckFolder done [15:36:56]ProducePacketName [15:36:56]name=ofd_packets/00034244 [15:36:56]NVStorageSaveData ofd_packets/00034244 [15:36:56]File name is /storage/ofd_packets/00034244 [15:36:56]Write 445 bytes [15:36:56]NVStorageSaveData done [15:36:56]OFDSenderStorePacket done [15:36:56]KKMCreateOFDPacket done [15:36:56]NVStorageSaveData kkm_last_timestamp [15:36:56]File name is /storage/kkm_last_timestamp [15:36:56]Write 4 bytes [15:36:56]NVStorageSaveData done [15:36:56]ExternCall_PrintAddStr [15:36:56]wPrintStart [15:36:56]Write to MH i2c: 01 00 00 6C 04 70 [15:36:56]OFD Sender: No OFD packet to send [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 07 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [15:36:56]RasterBufferAndPrint [15:36:56]line Счет N : (3)184035 [15:36:56]line ИНН: 02508201610067 [15:36:56]line Контрольно-Кассовый Чек [15:36:56]line ПРОДАЖА [15:36:56]line Товар: 5449000054227 [15:36:56]line Напиток Кока-Кола 1л [15:36:56]line 1.000 * 113.00 [15:36:56]line = 113.00 [15:36:56]line НДС 12% НСП 1% [15:36:56]line > о реализуемом товаре [15:36:56]line Товар: 2000053020015 [15:36:56]line Бумажные стаканы 250мл 1шт [15:36:56]line 3.000 * 7.00 [15:36:56]line = 21.00 [15:36:56]line НДС 12% НСП 1% [15:36:56]line > о реализуемом товаре [15:36:56]line ИТОГО: 134.00 [15:36:56]line НСП 1% : 1.19 [15:36:56]line НДС 12% : 14.23 [15:36:56]line Наличными: 0.00 [15:36:56]line Безнал.: 134.00 [15:36:56]line Место: АЗС № 120 "Партнер Нефть" [15:36:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:36:56]line СНО: Общий режим [15:36:56]line Чек 66 18.06.2024 15:36 [15:36:56]line Смена: 323 ФФД: 1.0 [15:36:56]line ЗНМ: 0300000172 [15:36:56]line РНМ: 0000000000092786 [15:36:56]line Версия ККМ: 001 [15:36:56]line Платежная система: O! деньги [15:36:56]line ФМ: 0000000000875095 [15:36:56]line ФД: 34244 [15:36:56]line ФПД: 217500147326421 [15:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153655&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34244&fm=217500147326421&tin=02508201610067®Number=0000000000092786&sum=13400 [15:36:56]line 0 [15:36:56]written 0, free lines is 4095 [15:36:56]OFD Sender: Processing packet 34244 [packets to send 8, broken 7] [15:36:56]ProducePacketName [15:36:56]name=ofd_packets/00034244 [15:36:56]OFD Sender: To server: pG, [15:36:56]CommunicateWithHost lk.salyk.kg:30040 [15:36:56]ConnectInit lk.salyk.kg [15:36:56]Connected sock=10 [15: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 35 30 39 35 9F 01 00 00 B3 B9 97 01 5B D0 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C4 85 00 00 35 04 06 00 C5 D0 B3 05 1D D5 5E 82 EC F3 19 BE 09 71 [15:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 7E D4 47 00 0D 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C4 85 00 00 F4 03 04 00 66 50 71 66 B6 04 01 00 00 25 82 E4 0D DB 11 E8 B4 [15:36:57]CommunicateWithHost err = 0 [15:36:57]CheckOFDResponse [15:36:57]1017 (14) - 77093643461234 [15:36:57]1041 (16) - 0000000000875095 [15:36:57]1040 (4) - 34244 [15:36:57]1012 (4) - 18.06.2024 09:16 [15:36:57]1206 (1) - 0 [15:36:57]OFD Sender: Remove packet 34244 [15:36:57]ProducePacketName [15:36:57]name=ofd_packets/00034244 [15:36:57]NVStorageDeleteData [15:36:57]Write to MH i2c: 01 00 00 9D 04 A1 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 64 0C 18 [15:36:57]RasterBufferAndPrint [15:36:57]line [15:36:57]line [15:36:57]line [15:36:57]line [15:36:57]line [15:36:57]written 0, free lines is 3178 [15:36:57]MH_Cut [15:36:57]Write to MH i2c: D1 01 00 A4 04 01 7A [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: D1 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: D1 01 00 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: D1 01 00 A4 04 00 79 [15:36:57]Write to MH i2c: 01 00 00 A5 04 A9 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]OFD Sender: No OFD packet to send [15:36:57]*** Cut start [15:36:57]*** Partial cut [15:36:57]*** CUTSNS_PIN = 1 [15:36:58]*** CUTSNS_PIN = 0 [15:36:58]*** Brake cut motor [15:36:58]Read from MH i2c: 01 [15:36:58]MH_I2C_Read... [15:36:58]*** Stop cut motor [15:36:58]*** Cut end [15:36:58]Read from MH i2c: 01 07 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 FF 0F BE [15:36:58]process_action close_receipt done [15:36:58]requested_data is exist [15:36:58]produce_requested_data [15:36:58]requested_item fm.sn is exist - process it [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 11 00 00 [15:36:58]Write to MH i2c: E2 08 00 A6 04 80 11 00 00 00 00 00 00 24 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 17 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 17 00 A6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 79 [15:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:36:58]wFMCommunicate OK [15:36:58]requested_item fd.num is exist - process it [15:36:58]SAM_PROTO_GetFieldsCounters [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 13 00 00 [15:36:58]Write to MH i2c: E2 08 00 A7 04 80 13 00 00 00 00 00 00 27 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 62 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 62 00 A7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C4 85 00 00 0E 04 04 00 43 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 A4 [15:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C4 85 00 00 0E 04 04 00 43 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 [15:36:58]wFMCommunicate OK [15:36:58]SAM_PROTO_GetFieldsCounters done [15:36:58]requested_item shift.num is exist - process it [15:36:58]requested_item shift.opened is exist - process it [15:36:58]req_shift_opened [15:36:58]FM_GetShiftState [15:36:58]SAM_PROTO_GetShiftState [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 13 01 00 [15:36:58]Write to MH i2c: E2 08 00 A8 04 80 13 01 00 00 00 00 00 29 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 0E 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 0E 00 A8 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 74 [15:36:58]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:36:58]wFMCommunicate OK [15:36:58]SAM_PROTO_GetShiftState done [15:36:58]FM_GetShiftState done [15:36:58]req_shift_opened done [15:36:58]requested_item shift.open_date is exist - process it [15:36:58]req_shift_open_date [15:36:58]req_shift_open_date done [15:36:58]produce_requested_data done [15:36:58]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34244,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:36:58]process_action_free close_receipt [15:36:58]json_value_free [15:36:58]json_value_free done [15:36:58]process_json_proto returns [15:36:58]Send response to host [15:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34244,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:36:58]free response buf [15:36:58]execute_script done [15:36:58]execute_script returns [15:36:58]free content buf [15:36:58]Sock 9.Close socket [15:36:58]Sock 9.Thread stoped [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:05]accept exits with 7 [15:38:05]New connection [15:38:05]New thread 3067567460 created [15:38:05]Thread 3067424100 joined [15:38:05]Waiting for new connection... [15:38:05] Sock 7.Parse request [15:38:05]Sock 7.Check first char [15:38:05]Sock 7.First char is OK [15:38:05]request: POST /json_proto HTTP/1.0 [15:38:05]Method: POST [15:38:05]URL: /json_proto [15:38:05]Method is POST - this is cgi request [15:38:05]url: /json_proto [15:38:05]query_string will be loaded in cgi processing [15:38:05]execute_cgi json_proto POST (null) [15:38:05]execute_cgi path=json_proto method=POST [15:38:05]POST find Content-Length [15:38:05]Host: 172.17.38.134:8080 [15:38:05]Content-Length: 638 [15:38:05]Content-Type: application/json [15:38:05] [15:38:05]POST finish read [15:38:05]Found Content-Length = 638 [15:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184036", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:05]execute_script... [15:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184036", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:05]POST & json_proto [15:38:05]process_json_proto [15:38:05]json parsed OK: [15:38:05]protocol is kg_v1.0 [15:38:05]action value=close_receipt [15:38:05]process_action close_receipt [15:38:05]cmd_close_receipt [15:38:05]MH_GetDate [15:38:05]Write to MH i2c: F0 00 00 A9 04 9C [15:38:05]Write i2c OK [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: F0 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: F0 09 00 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: F0 09 00 A9 04 00 DD A9 71 66 13 9C 7C 64 91 [15:38:05]GetLastDocTimeStamp 1718725015 [15:38:05]current date 1718725085 [15:38:05]FM_GetShiftState [15:38:05]SAM_PROTO_GetShiftState [15:38:05]wFMCommunicate request_size=4 [15:38:05]MH_SAM_APDU [15:38:05]CAPDU: 80 13 01 00 [15:38:05]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [15:38:05]Write i2c OK [15:38:05]MH_I2C_Read... [15:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:05]Read from MH i2c: E2 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: E2 0E 00 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 76 [15:38:05]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:38:05]wFMCommunicate OK [15:38:05]SAM_PROTO_GetShiftState done [15:38:05]FM_GetShiftState done [15:38:05]opened in 1718670230 [15:38:05]opened+sec_in_day 1718756630 [15:38:05]quantity*price = 7000 [15:38:05]sum+1 = 7001 [15:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 67 18.06.2024 15:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34245 ФПД: 213615318814556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153805&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34245&fm=213615318814556&tin=02508201610067®Number=0000000000092786&sum=7000 0 [15:38:06]StoreToDocumentArchive [15:38:06]shift 323 fd 34245 [15:38:06]save to /storage/0323/doc_00034245 [15:38:06]save last doc name /storage/0323/doc_00034245 to /storage/kkm_last_doc_name [15:38:06]save OK [15:38:06]Clear old archive folders... [15:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:38:06]tlvbuf is 018F8E40 [15:38:06]SAM_PROTO_ClearQueue [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 09 00 00 [15:38:06]Write to MH i2c: E2 08 00 B7 04 80 09 00 00 00 00 00 00 2D [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [15:38:06]RAPDU: 90 00 [15:38:06]wFMCommunicate OK [15:38:06]SAM_PROTO_ClearQueue done [15:38:06]KKMCreateOFDPacket [15:38:06]OFDProtocolAddRootSTLVToBuf [15:38:06]FM_MakeSignedData [15:38:06]FM_MakeSignedData [15:38:06]SAM_PROTO_SignData [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 0D 01 02 [15:38:06]Write to MH i2c: E2 08 00 B8 04 80 0D 01 02 00 00 00 00 35 [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [15:38:06]RAPDU: 90 00 [15:38:06]wFMCommunicate OK [15:38:06]wFMCommunicate request_size=255 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 DD A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [15:38:06]Write to MH i2c: E2 02 01 B9 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 DD A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 3B [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [15:38:06]RAPDU: 90 00 [15:38:06]wFMCommunicate OK [15:38:06]wFMCommunicate request_size=32 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 C5 85 00 00 35 04 06 00 C2 48 31 32 4F 5C [15:38:06]Write to MH i2c: E2 23 00 BA 04 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 C5 85 00 00 35 04 06 00 C2 48 31 32 4F 5C 00 00 F9 [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [15:38:06]RAPDU: 90 00 [15:38:06]wFMCommunicate OK [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 0D 03 02 [15:38:06]Write to MH i2c: E2 08 00 BB 04 80 0D 03 02 00 00 00 00 3A [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 0B 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 0B 00 BB 04 00 0D 7E 84 5E E3 61 C5 39 90 00 EA [15:38:06]RAPDU: 0D 7E 84 5E E3 61 C5 39 90 00 [15:38:06]wFMCommunicate OK [15:38:06]SAM_PROTO_SignData done [15:38:06]FM_MakeSignedData done [15:38:06]CreateOFDProtocolMessage [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 11 00 00 [15:38:06]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 17 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 8F [15:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:38:06]wFMCommunicate OK [15:38:06]CreateOFDProtocolMessage done [15:38:06]OFDSenderStorePacket 34245 [15:38:06]StoreOFDPacket docnum=34245 [15:38:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 15 82 1D 01 2C 1E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 DD A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C5 85 00 00 35 04 06 00 C2 48 31 32 4F 5C 0D 7E 84 5E E3 61 C5 39 [15:38:06]CheckFolder [15:38:06]dirname=/storage/ofd_packets [15:38:06]CheckFolder done [15:38:06]ProducePacketName [15:38:06]name=ofd_packets/00034245 [15:38:06]NVStorageSaveData ofd_packets/00034245 [15:38:06]File name is /storage/ofd_packets/00034245 [15:38:06]Write 323 bytes [15:38:06]NVStorageSaveData done [15:38:06]OFDSenderStorePacket done [15:38:06]KKMCreateOFDPacket done [15:38:06]NVStorageSaveData kkm_last_timestamp [15:38:06]File name is /storage/kkm_last_timestamp [15:38:06]Write 4 bytes [15:38:06]NVStorageSaveData done [15:38:06]ExternCall_PrintAddStr [15:38:06]wPrintStart [15:38:06]Write to MH i2c: 01 00 00 BD 04 C1 [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: 01 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: 01 07 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [15:38:06]RasterBufferAndPrint [15:38:06]line Счет N : (3)184036 [15:38:06]line ИНН: 02508201610067 [15:38:06]line Контрольно-Кассовый Чек [15:38:06]line ПРОДАЖА [15:38:06]line Товар: 4700002082931 [15:38:06]line Водка Хорошая 0,1л [15:38:06]line 1.000 * 70.00 [15:38:06]line = 70.00 [15:38:06]line НДС 12% НСП 1% [15:38:06]line > о реализуемом товаре [15:38:06]line ИТОГО: 70.00 [15:38:06]line НСП 1% : 0.62 [15:38:06]line НДС 12% : 7.43 [15:38:06]line Наличными: 70.00 [15:38:06]line Безнал.: 0.00 [15:38:06]line Место: АЗС № 120 "Партнер Нефть" [15:38:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:38:06]line СНО: Общий режим [15:38:06]line Чек 67 18.06.2024 15:38 [15:38:06]line Смена: 323 ФФД: 1.0 [15:38:06]line ЗНМ: 0300000172 [15:38:06]line РНМ: 0000000000092786 [15:38:06]line Версия ККМ: 001 [15:38:06]line ФМ: 0000000000875095 [15:38:06]line ФД: 34245 [15:38:06]line ФПД: 213615318814556 [15:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T153805&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34245&fm=213615318814556&tin=02508201610067®Number=0000000000092786&sum=7000 [15:38:07]line 0 [15:38:07]OFD Sender: Processing packet 34245 [packets to send 8, broken 7] [15:38:07]ProducePacketName [15:38:07]name=ofd_packets/00034245 [15:38:07]OFD Sender: To server: pG, [15:38:07]CommunicateWithHost lk.salyk.kg:30040 [15:38:07]ConnectInit lk.salyk.kg [15:38:07]written 0, free lines is 4095 [15:38:07]Connected sock=10 [15:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 15 82 1D 01 2C 1E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 DD A9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C5 85 00 00 35 04 06 00 C2 48 31 32 4F 5C 0D 7E 84 5E E3 61 C5 39 [15:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 61 5D 47 00 8D E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C5 85 00 00 F4 03 04 00 AD 50 71 66 B6 04 01 00 00 D1 B9 78 36 C9 0C 18 5C [15:38:07]CommunicateWithHost err = 0 [15:38:07]CheckOFDResponse [15:38:07]1017 (14) - 77093643461234 [15:38:07]1041 (16) - 0000000000875095 [15:38:07]1040 (4) - 34245 [15:38:07]1012 (4) - 18.06.2024 09:17 [15:38:07]1206 (1) - 0 [15:38:07]OFD Sender: Remove packet 34245 [15:38:07]ProducePacketName [15:38:07]name=ofd_packets/00034245 [15:38:07]NVStorageDeleteData [15:38:07]Write to MH i2c: 01 00 00 E5 04 E9 [15:38:07]Write i2c OK [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: 01 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: 01 07 00 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 01 0D FE [15:38:07]RasterBufferAndPrint [15:38:07]line [15:38:07]line [15:38:07]line [15:38:07]line [15:38:07]line [15:38:07]written 0, free lines is 3336 [15:38:07]MH_Cut [15:38:07]Write to MH i2c: D1 01 00 EC 04 01 C2 [15:38:07]Write i2c OK [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: D1 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: D1 01 00 [15:38:07]MH_I2C_Read... [15:38:07]Read from MH i2c: D1 01 00 EC 04 00 C1 [15:38:07]Write to MH i2c: 01 00 00 ED 04 F1 [15:38:07]Write i2c OK [15:38:07]MH_I2C_Read... [15:38:08]OFD Sender: No OFD packet to send [15:38:08]*** Cut start [15:38:08]*** Partial cut [15:38:08]*** CUTSNS_PIN = 1 [15:38:08]*** CUTSNS_PIN = 0 [15:38:08]*** Brake cut motor [15:38:09]Read from MH i2c: 01 [15:38:09]MH_I2C_Read... [15:38:09]*** Stop cut motor [15:38:09]*** Cut end [15:38:09]Read from MH i2c: 01 07 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 FF 0F 06 [15:38:09]process_action close_receipt done [15:38:09]requested_data is exist [15:38:09]produce_requested_data [15:38:09]requested_item fm.sn is exist - process it [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 11 00 00 [15:38:09]Write to MH i2c: E2 08 00 EE 04 80 11 00 00 00 00 00 00 6C [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 EE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C1 [15:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:38:09]wFMCommunicate OK [15:38:09]requested_item fd.num is exist - process it [15:38:09]SAM_PROTO_GetFieldsCounters [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 13 00 00 [15:38:09]Write to MH i2c: E2 08 00 EF 04 80 13 00 00 00 00 00 00 6F [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 62 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 62 00 EF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C5 85 00 00 0E 04 04 00 43 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 F0 [15:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C5 85 00 00 0E 04 04 00 43 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 [15:38:09]wFMCommunicate OK [15:38:09]SAM_PROTO_GetFieldsCounters done [15:38:09]requested_item shift.num is exist - process it [15:38:09]requested_item shift.opened is exist - process it [15:38:09]req_shift_opened [15:38:09]FM_GetShiftState [15:38:09]SAM_PROTO_GetShiftState [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 13 01 00 [15:38:09]Write to MH i2c: E2 08 00 F0 04 80 13 01 00 00 00 00 00 71 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 0E 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 0E 00 F0 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 BC [15:38:09]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:38:09]wFMCommunicate OK [15:38:09]SAM_PROTO_GetShiftState done [15:38:09]FM_GetShiftState done [15:38:09]req_shift_opened done [15:38:09]requested_item shift.open_date is exist - process it [15:38:09]req_shift_open_date [15:38:09]req_shift_open_date done [15:38:09]produce_requested_data done [15:38:09]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34245,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:38:09]process_action_free close_receipt [15:38:09]json_value_free [15:38:09]json_value_free done [15:38:09]process_json_proto returns [15:38:09]Send response to host [15:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34245,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:38:09]free response buf [15:38:09]execute_script done [15:38:09]execute_script returns [15:38:09]free content buf [15:38:09]Sock 7.Close socket [15:38:09]Sock 7.Thread stoped [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:47]accept exits with 9 [15:47:47]New connection [15:47:47]New thread 3067424100 created [15:47:47]Thread 3067567460 joined [15:47:47]Waiting for new connection... [15:47:47] Sock 9.Parse request [15:47:47]Sock 9.Check first char [15:47:47]Sock 9.First char is OK [15:47:47]request: POST /json_proto HTTP/1.0 [15:47:47]Method: POST [15:47:47]URL: /json_proto [15:47:47]Method is POST - this is cgi request [15:47:47]url: /json_proto [15:47:47]query_string will be loaded in cgi processing [15:47:47]execute_cgi json_proto POST (null) [15:47:47]execute_cgi path=json_proto method=POST [15:47:47]POST find Content-Length [15:47:47]Host: 172.17.38.134:8080 [15:47:47]Content-Length: 690 [15:47:47]Content-Type: application/json [15:47:47] [15:47:47]POST finish read [15:47:47]Found Content-Length = 690 [15:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184037", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:47]execute_script... [15:47: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 : (3)184037", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:47]POST & json_proto [15:47:47]process_json_proto [15:47:47]json parsed OK: [15:47:47]protocol is kg_v1.0 [15:47:47]action value=close_receipt [15:47:47]process_action close_receipt [15:47:47]cmd_close_receipt [15:47:47]MH_GetDate [15:47:47]Write to MH i2c: F0 00 00 F1 04 E4 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: F0 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: F0 09 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: F0 09 00 F1 04 00 24 AC 71 66 13 9C 7C 64 23 [15:47:47]GetLastDocTimeStamp 1718725085 [15:47:47]current date 1718725668 [15:47:47]FM_GetShiftState [15:47:47]SAM_PROTO_GetShiftState [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 13 01 00 [15:47:47]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 0E 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 BE [15:47:47]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:47:47]wFMCommunicate OK [15:47:47]SAM_PROTO_GetShiftState done [15:47:47]FM_GetShiftState done [15:47:47]opened in 1718670230 [15:47:47]opened+sec_in_day 1718756630 [15:47:47]quantity*price = 12500 [15:47:47]sum+1 = 12501 [15:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 68 18.06.2024 15:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34246 ФПД: 220169835542743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154748&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34246&fm=220169835542743&tin=02508201610067®Number=0000000000092786&sum=12500 0 [15:47:48]StoreToDocumentArchive [15:47:48]shift 323 fd 34246 [15:47:48]save to /storage/0323/doc_00034246 [15:47:48]save last doc name /storage/0323/doc_00034246 to /storage/kkm_last_doc_name [15:47:48]save OK [15:47:48]Clear old archive folders... [15:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:47:48]tlvbuf is B6F70A80 [15:47:48]SAM_PROTO_ClearQueue [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 09 00 00 [15:47:48]Write to MH i2c: E2 08 00 FF 04 80 09 00 00 00 00 00 00 75 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [15:47:48]RAPDU: 90 00 [15:47:48]wFMCommunicate OK [15:47:48]SAM_PROTO_ClearQueue done [15:47:48]KKMCreateOFDPacket [15:47:48]OFDProtocolAddRootSTLVToBuf [15:47:48]FM_MakeSignedData [15:47:48]FM_MakeSignedData [15:47:48]SAM_PROTO_SignData [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 0D 01 02 [15:47:48]Write to MH i2c: E2 08 00 00 05 80 0D 01 02 00 00 00 00 7E [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [15:47:48]RAPDU: 90 00 [15:47:48]wFMCommunicate OK [15:47:48]wFMCommunicate request_size=255 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 24 AC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:47:48]Write to MH i2c: E2 02 01 01 05 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 24 AC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 30 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]OFD Sender: No OFD packet to send [15:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [15:47:48]RAPDU: 90 00 [15:47:48]wFMCommunicate OK [15:47:48]wFMCommunicate request_size=53 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C6 85 00 00 35 04 06 00 C8 3E 48 D6 78 D7 [15:47:48]Write to MH i2c: E2 38 00 02 05 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C6 85 00 00 35 04 06 00 C8 3E 48 D6 78 D7 00 00 3D [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [15:47:48]RAPDU: 90 00 [15:47:48]wFMCommunicate OK [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 0D 03 02 [15:47:48]Write to MH i2c: E2 08 00 03 05 80 0D 03 02 00 00 00 00 83 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 0B 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 0B 00 03 05 00 5D 6F 86 A9 80 96 68 CB 90 00 C8 [15:47:48]RAPDU: 5D 6F 86 A9 80 96 68 CB 90 00 [15:47:48]wFMCommunicate OK [15:47:48]SAM_PROTO_SignData done [15:47:48]FM_MakeSignedData done [15:47:48]CreateOFDProtocolMessage [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 11 00 00 [15:47:48]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:49]Read from MH i2c: E2 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 17 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D8 [15:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:47:49]wFMCommunicate OK [15:47:49]CreateOFDProtocolMessage done [15:47:49]OFDSenderStorePacket 34246 [15:47:49]StoreOFDPacket docnum=34246 [15:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 99 0A 32 01 DE 39 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 24 AC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C6 85 00 00 35 04 06 00 C8 3E 48 D6 78 D7 5D 6F 86 A9 80 96 68 CB [15:47:49]CheckFolder [15:47:49]dirname=/storage/ofd_packets [15:47:49]CheckFolder done [15:47:49]ProducePacketName [15:47:49]name=ofd_packets/00034246 [15:47:49]NVStorageSaveData ofd_packets/00034246 [15:47:49]File name is /storage/ofd_packets/00034246 [15:47:49]Write 344 bytes [15:47:49]NVStorageSaveData done [15:47:49]OFDSenderStorePacket done [15:47:49]KKMCreateOFDPacket done [15:47:49]NVStorageSaveData kkm_last_timestamp [15:47:49]File name is /storage/kkm_last_timestamp [15:47:49]Write 4 bytes [15:47:49]NVStorageSaveData done [15:47:49]ExternCall_PrintAddStr [15:47:49]wPrintStart [15:47:49]Write to MH i2c: 01 00 00 05 05 0A [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 07 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [15:47:49]RasterBufferAndPrint [15:47:49]line Счет N : (3)184037 [15:47:49]line ИНН: 02508201610067 [15:47:49]line Контрольно-Кассовый Чек [15:47:49]line ПРОДАЖА [15:47:49]line Товар: 4870202521247 [15:47:49]line Напиток MAXI чай 1,2 черн.персик [15:47:49]line 1.000 * 125.00 [15:47:49]line = 125.00 [15:47:49]line НДС 12% НСП 1% [15:47:49]line > о реализуемом товаре [15:47:49]line ИТОГО: 125.00 [15:47:49]line НСП 1% : 1.11 [15:47:49]line НДС 12% : 13.27 [15:47:49]line Наличными: 125.00 [15:47:49]line Безнал.: 0.00 [15:47:49]line Место: АЗС № 120 "Партнер Нефть" [15:47:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:47:49]line СНО: Общий режим [15:47:49]line Чек 68 18.06.2024 15:47 [15:47:49]line Смена: 323 ФФД: 1.0 [15:47:49]line ЗНМ: 0300000172 [15:47:49]line РНМ: 0000000000092786 [15:47:49]line Версия ККМ: 001 [15:47:49]line ФМ: 0000000000875095 [15:47:49]line ФД: 34246 [15:47:49]line ФПД: 220169835542743 [15:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T154748&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34246&fm=220169835542743&tin=02508201610067®Number=0000000000092786&sum=12500 [15:47:49]line 0 [15:47:49]OFD Sender: Processing packet 34246 [packets to send 8, broken 7] [15:47:49]ProducePacketName [15:47:49]name=ofd_packets/00034246 [15:47:49]OFD Sender: To server: pG, [15:47:49]CommunicateWithHost lk.salyk.kg:30040 [15:47:49]ConnectInit lk.salyk.kg [15:47:49]written 0, free lines is 4095 [15:47:49]Connected sock=10 [15:47:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 99 0A 32 01 DE 39 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 24 AC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C6 85 00 00 35 04 06 00 C8 3E 48 D6 78 D7 5D 6F 86 A9 80 96 68 CB [15:47:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 05 6F 47 00 57 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C6 85 00 00 F4 03 04 00 F3 52 71 66 B6 04 01 00 00 6C 85 5A 8A 26 E3 7B BB [15:47:49]CommunicateWithHost err = 0 [15:47:49]CheckOFDResponse [15:47:49]1017 (14) - 77093643461234 [15:47:49]1041 (16) - 0000000000875095 [15:47:49]1040 (4) - 34246 [15:47:49]1012 (4) - 18.06.2024 09:27 [15:47:49]1206 (1) - 0 [15:47:49]OFD Sender: Remove packet 34246 [15:47:49]ProducePacketName [15:47:49]name=ofd_packets/00034246 [15:47:49]NVStorageDeleteData [15:47:49]Write to MH i2c: 01 00 00 2E 05 33 [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 07 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 EF 0C 35 [15:47:49]RasterBufferAndPrint [15:47:49]line [15:47:49]line [15:47:49]line [15:47:49]line [15:47:49]line [15:47:49]written 0, free lines is 3317 [15:47:49]MH_Cut [15:47:49]Write to MH i2c: D1 01 00 35 05 01 0C [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: D1 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: D1 01 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: D1 01 00 35 05 00 0B [15:47:49]Write to MH i2c: 01 00 00 36 05 3B [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:50]OFD Sender: No OFD packet to send [15:47:50]*** Cut start [15:47:50]*** Partial cut [15:47:50]*** CUTSNS_PIN = 1 [15:47:50]*** CUTSNS_PIN = 0 [15:47:50]*** Brake cut motor [15:47:51]Read from MH i2c: 01 [15:47:51]MH_I2C_Read... [15:47:51]*** Stop cut motor [15:47:51]*** Cut end [15:47:51]Read from MH i2c: 01 07 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [15:47:51]process_action close_receipt done [15:47:51]requested_data is exist [15:47:51]produce_requested_data [15:47:51]requested_item fm.sn is exist - process it [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 11 00 00 [15:47:51]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 17 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0B [15:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:47:51]wFMCommunicate OK [15:47:51]requested_item fd.num is exist - process it [15:47:51]SAM_PROTO_GetFieldsCounters [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 13 00 00 [15:47:51]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 62 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 62 00 38 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C6 85 00 00 0E 04 04 00 43 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 3E [15:47:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C6 85 00 00 0E 04 04 00 43 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 [15:47:51]wFMCommunicate OK [15:47:51]SAM_PROTO_GetFieldsCounters done [15:47:51]requested_item shift.num is exist - process it [15:47:51]requested_item shift.opened is exist - process it [15:47:51]req_shift_opened [15:47:51]FM_GetShiftState [15:47:51]SAM_PROTO_GetShiftState [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 13 01 00 [15:47:51]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 0E 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 06 [15:47:51]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:47:51]wFMCommunicate OK [15:47:51]SAM_PROTO_GetShiftState done [15:47:51]FM_GetShiftState done [15:47:51]req_shift_opened done [15:47:51]requested_item shift.open_date is exist - process it [15:47:51]req_shift_open_date [15:47:51]req_shift_open_date done [15:47:51]produce_requested_data done [15:47:51]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34246,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:47:51]process_action_free close_receipt [15:47:51]json_value_free [15:47:51]json_value_free done [15:47:51]process_json_proto returns [15:47:51]Send response to host [15:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34246,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:47:51]free response buf [15:47:51]execute_script done [15:47:51]execute_script returns [15:47:51]free content buf [15:47:51]Sock 9.Close socket [15:47:51]Sock 9.Thread stoped [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:44]accept exits with 7 [15:53:44]New connection [15:53:44]New thread 3067567460 created [15:53:44]Thread 3067424100 joined [15:53:44]Waiting for new connection... [15:53:44] Sock 7.Parse request [15:53:44]Sock 7.Check first char [15:53:44]Sock 7.First char is OK [15:53:44]request: POST /json_proto HTTP/1.0 [15:53:44]Method: POST [15:53:44]URL: /json_proto [15:53:44]Method is POST - this is cgi request [15:53:44]url: /json_proto [15:53:44]query_string will be loaded in cgi processing [15:53:44]execute_cgi json_proto POST (null) [15:53:44]execute_cgi path=json_proto method=POST [15:53:44]POST find Content-Length [15:53:44]Host: 172.17.38.134:8080 [15:53:44]Content-Length: 654 [15:53:44]Content-Type: application/json [15:53:44] [15:53:44]POST finish read [15:53:44]Found Content-Length = 654 [15:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184038", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:44]execute_script... [15:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184038", "tax_sys" : 0, "items" : [ { "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:44]POST & json_proto [15:53:44]process_json_proto [15:53:44]json parsed OK: [15:53:44]protocol is kg_v1.0 [15:53:44]action value=close_receipt [15:53:44]process_action close_receipt [15:53:44]cmd_close_receipt [15:53:44]MH_GetDate [15:53:44]Write to MH i2c: F0 00 00 3A 05 2E [15:53:44]Write i2c OK [15:53:44]MH_I2C_Read... [15:53:44]Read from MH i2c: F0 [15:53:44]MH_I2C_Read... [15:53:44]Read from MH i2c: F0 09 00 [15:53:44]MH_I2C_Read... [15:53:44]Read from MH i2c: F0 09 00 3A 05 00 89 AD 71 66 13 9C 7C 64 D3 [15:53:44]GetLastDocTimeStamp 1718725668 [15:53:44]current date 1718726025 [15:53:44]FM_GetShiftState [15:53:44]SAM_PROTO_GetShiftState [15:53:44]wFMCommunicate request_size=4 [15:53:44]MH_SAM_APDU [15:53:44]CAPDU: 80 13 01 00 [15:53:44]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [15:53:44]Write i2c OK [15:53:44]MH_I2C_Read... [15:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:44]Read from MH i2c: E2 [15:53:44]MH_I2C_Read... [15:53:44]Read from MH i2c: E2 0E 00 [15:53:44]MH_I2C_Read... [15:53:44]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 08 [15:53:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:53:44]wFMCommunicate OK [15:53:44]SAM_PROTO_GetShiftState done [15:53:44]FM_GetShiftState done [15:53:44]opened in 1718670230 [15:53:44]opened+sec_in_day 1718756630 [15:53:44]quantity*price = 4900 [15:53:44]sum+1 = 4901 [15:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 69 18.06.2024 15:53 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34247 ФПД: 20439299824969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155345&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34247&fm=20439299824969&tin=02508201610067®Number=0000000000092786&sum=4900 0 [15:53:45]StoreToDocumentArchive [15:53:45]shift 323 fd 34247 [15:53:45]save to /storage/0323/doc_00034247 [15:53:45]save last doc name /storage/0323/doc_00034247 to /storage/kkm_last_doc_name [15:53:45]save OK [15:53:45]Clear old archive folders... [15:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=289 [15:53:45]tlvbuf is B6F70920 [15:53:45]SAM_PROTO_ClearQueue [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 09 00 00 [15:53:45]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [15:53:45]RAPDU: 90 00 [15:53:45]wFMCommunicate OK [15:53:45]SAM_PROTO_ClearQueue done [15:53:45]KKMCreateOFDPacket [15:53:45]OFDProtocolAddRootSTLVToBuf [15:53:45]FM_MakeSignedData [15:53:45]FM_MakeSignedData [15:53:45]SAM_PROTO_SignData [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 0D 01 02 [15:53:45]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]OFD Sender: No OFD packet to send [15:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [15:53:45]RAPDU: 90 00 [15:53:45]wFMCommunicate OK [15:53:45]wFMCommunicate request_size=255 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 89 AD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [15:53:45]Write to MH i2c: E2 02 01 4A 05 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 89 AD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 23 [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [15:53:45]RAPDU: 90 00 [15:53:45]wFMCommunicate OK [15:53:45]wFMCommunicate request_size=48 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 0D 02 02 2B 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C7 85 00 00 35 04 06 00 12 96 E5 34 9D 49 [15:53:45]Write to MH i2c: E2 33 00 4B 05 80 0D 02 02 2B 00 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C7 85 00 00 35 04 06 00 12 96 E5 34 9D 49 00 00 C1 [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [15:53:45]RAPDU: 90 00 [15:53:45]wFMCommunicate OK [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 0D 03 02 [15:53:45]Write to MH i2c: E2 08 00 4C 05 80 0D 03 02 00 00 00 00 CC [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 0B 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 0B 00 4C 05 00 58 83 C5 1A A1 85 11 D8 90 00 96 [15:53:45]RAPDU: 58 83 C5 1A A1 85 11 D8 90 00 [15:53:45]wFMCommunicate OK [15:53:45]SAM_PROTO_SignData done [15:53:45]FM_MakeSignedData done [15:53:45]CreateOFDProtocolMessage [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 11 00 00 [15:53:45]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:46]Read from MH i2c: E2 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 17 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 21 [15:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:53:46]wFMCommunicate OK [15:53:46]CreateOFDProtocolMessage done [15:53:46]OFDSenderStorePacket 34247 [15:53:46]StoreOFDPacket docnum=34247 [15:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 01 00 00 4F C2 2D 01 D0 7E 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 89 AD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C7 85 00 00 35 04 06 00 12 96 E5 34 9D 49 58 83 C5 1A A1 85 11 D8 [15:53:46]CheckFolder [15:53:46]dirname=/storage/ofd_packets [15:53:46]CheckFolder done [15:53:46]ProducePacketName [15:53:46]name=ofd_packets/00034247 [15:53:46]NVStorageSaveData ofd_packets/00034247 [15:53:46]File name is /storage/ofd_packets/00034247 [15:53:46]Write 339 bytes [15:53:46]NVStorageSaveData done [15:53:46]OFDSenderStorePacket done [15:53:46]KKMCreateOFDPacket done [15:53:46]NVStorageSaveData kkm_last_timestamp [15:53:46]File name is /storage/kkm_last_timestamp [15:53:46]Write 4 bytes [15:53:46]NVStorageSaveData done [15:53:46]ExternCall_PrintAddStr [15:53:46]wPrintStart [15:53:46]Write to MH i2c: 01 00 00 4E 05 53 [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: 01 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: 01 07 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [15:53:46]RasterBufferAndPrint [15:53:46]line Счет N : (3)184038 [15:53:46]line ИНН: 02508201610067 [15:53:46]line Контрольно-Кассовый Чек [15:53:46]line ПРОДАЖА [15:53:46]line Товар: 46214638 [15:53:46]line Р/ж mentos p.white нежная мята 16/15,5г [15:53:46]line 1.000 * 49.00 [15:53:46]line = 49.00 [15:53:46]line НДС 12% НСП 1% [15:53:46]line > о реализуемом товаре [15:53:46]line ИТОГО: 49.00 [15:53:46]line НСП 1% : 0.43 [15:53:46]line НДС 12% : 5.20 [15:53:46]line Наличными: 49.00 [15:53:46]line Безнал.: 0.00 [15:53:46]line Место: АЗС № 120 "Партнер Нефть" [15:53:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:53:46]line СНО: Общий режим [15:53:46]line Чек 69 18.06.2024 15:53 [15:53:46]line Смена: 323 ФФД: 1.0 [15:53:46]line ЗНМ: 0300000172 [15:53:46]line РНМ: 0000000000092786 [15:53:46]line Версия ККМ: 001 [15:53:46]line ФМ: 0000000000875095 [15:53:46]line ФД: 34247 [15:53:46]line ФПД: 20439299824969 [15:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155345&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34247&fm=20439299824969&tin=02508201610067®Number=0000000000092786&sum=4900 [15:53:46]line 0 [15:53:46]OFD Sender: Processing packet 34247 [packets to send 8, broken 7] [15:53:46]ProducePacketName [15:53:46]name=ofd_packets/00034247 [15:53:46]OFD Sender: To server: pG, [15:53:46]CommunicateWithHost lk.salyk.kg:30040 [15:53:46]ConnectInit lk.salyk.kg [15:53:46]written 0, free lines is 4095 [15:53:46]Connected sock=11 [15:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 01 00 00 4F C2 2D 01 D0 7E 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 89 AD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C7 85 00 00 35 04 06 00 12 96 E5 34 9D 49 58 83 C5 1A A1 85 11 D8 [15:53:46]Write to MH i2c: 01 00 00 77 05 7C [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: 01 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: 01 07 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 E5 0C 74 [15:53:46]RasterBufferAndPrint [15:53:46]line [15:53:46]line [15:53:46]line [15:53:46]line [15:53:46]line [15:53:46]written 0, free lines is 3307 [15:53:46]MH_Cut [15:53:46]Write to MH i2c: D1 01 00 7E 05 01 55 [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: D1 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: D1 01 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: D1 01 00 7E 05 00 54 [15:53:46]Write to MH i2c: 01 00 00 7F 05 84 [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0F C6 47 00 C2 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 35 30 39 35 10 04 04 00 C7 85 00 00 F4 03 04 00 58 54 71 66 B6 04 01 00 00 0B 68 38 65 3A D4 19 5F [15:53:46]CommunicateWithHost err = 0 [15:53:46]CheckOFDResponse [15:53:46]1017 (14) - 77093643461234 [15:53:46]1041 (16) - 0000000000875095 [15:53:46]1040 (4) - 34247 [15:53:46]1012 (4) - 18.06.2024 09:33 [15:53:46]1206 (1) - 0 [15:53:46]OFD Sender: Remove packet 34247 [15:53:46]ProducePacketName [15:53:46]name=ofd_packets/00034247 [15:53:46]NVStorageDeleteData [15:53:47]OFD Sender: No OFD packet to send [15:53:47]*** Cut start [15:53:47]*** Partial cut [15:53:47]*** CUTSNS_PIN = 1 [15:53:47]*** CUTSNS_PIN = 0 [15:53:47]*** Brake cut motor [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]*** Stop cut motor [15:53:48]*** Cut end [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 7F 05 00 00 00 00 00 FF 0F 99 [15:53:48]process_action close_receipt done [15:53:48]requested_data is exist [15:53:48]produce_requested_data [15:53:48]requested_item fm.sn is exist - process it [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 11 00 00 [15:53:48]Write to MH i2c: E2 08 00 80 05 80 11 00 00 00 00 00 00 FF [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 17 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 17 00 80 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 54 [15:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:53:48]wFMCommunicate OK [15:53:48]requested_item fd.num is exist - process it [15:53:48]SAM_PROTO_GetFieldsCounters [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 13 00 00 [15:53:48]Write to MH i2c: E2 08 00 81 05 80 13 00 00 00 00 00 00 02 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 62 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 62 00 81 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C7 85 00 00 0E 04 04 00 43 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 8B [15:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C7 85 00 00 0E 04 04 00 43 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 [15:53:48]wFMCommunicate OK [15:53:48]SAM_PROTO_GetFieldsCounters done [15:53:48]requested_item shift.num is exist - process it [15:53:48]requested_item shift.opened is exist - process it [15:53:48]req_shift_opened [15:53:48]FM_GetShiftState [15:53:48]SAM_PROTO_GetShiftState [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 13 01 00 [15:53:48]Write to MH i2c: E2 08 00 82 05 80 13 01 00 00 00 00 00 04 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0E 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0E 00 82 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 4F [15:53:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:53:48]wFMCommunicate OK [15:53:48]SAM_PROTO_GetShiftState done [15:53:48]FM_GetShiftState done [15:53:48]req_shift_opened done [15:53:48]requested_item shift.open_date is exist - process it [15:53:48]req_shift_open_date [15:53:48]req_shift_open_date done [15:53:48]produce_requested_data done [15:53:48]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34247,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:53:48]process_action_free close_receipt [15:53:48]json_value_free [15:53:48]json_value_free done [15:53:48]process_json_proto returns [15:53:48]Send response to host [15:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34247,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:53:48]free response buf [15:53:48]execute_script done [15:53:48]execute_script returns [15:53:48]free content buf [15:53:48]Sock 7.Close socket [15:53:48]Sock 7.Thread stoped [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:16]accept exits with 9 [15:57:16]New connection [15:57:16]New thread 3067424100 created [15:57:16]Thread 3067567460 joined [15:57:16]Waiting for new connection... [15:57:16] Sock 9.Parse request [15:57:16]Sock 9.Check first char [15:57:16]Sock 9.First char is OK [15:57:16]request: POST /json_proto HTTP/1.0 [15:57:16]Method: POST [15:57:16]URL: /json_proto [15:57:16]Method is POST - this is cgi request [15:57:16]url: /json_proto [15:57:16]query_string will be loaded in cgi processing [15:57:16]execute_cgi json_proto POST (null) [15:57:16]execute_cgi path=json_proto method=POST [15:57:16]POST find Content-Length [15:57:16]Host: 172.17.38.134:8080 [15:57:16]Content-Length: 678 [15:57:16]Content-Type: application/json [15:57:16] [15:57:16]POST finish read [15:57:16]Found Content-Length = 678 [15:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:16]execute_script... [15:57: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)672645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:16]POST & json_proto [15:57:16]process_json_proto [15:57:16]json parsed OK: [15:57:16]protocol is kg_v1.0 [15:57:16]action value=close_receipt [15:57:16]process_action close_receipt [15:57:16]cmd_close_receipt [15:57:16]MH_GetDate [15:57:16]Write to MH i2c: F0 00 00 83 05 77 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: F0 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: F0 09 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: F0 09 00 83 05 00 5D AE 71 66 13 9C 7C 64 F1 [15:57:16]GetLastDocTimeStamp 1718726025 [15:57:16]current date 1718726237 [15:57:16]FM_GetShiftState [15:57:16]SAM_PROTO_GetShiftState [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 13 01 00 [15:57:16]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 0E 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 51 [15:57:16]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:57:16]wFMCommunicate OK [15:57:16]SAM_PROTO_GetShiftState done [15:57:16]FM_GetShiftState done [15:57:16]opened in 1718670230 [15:57:16]opened+sec_in_day 1718756630 [15:57:16]quantity*price = 70052 [15:57:16]sum+1 = 70053 [15:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 70 18.06.2024 15:57 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34248 ФПД: 273100699229536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155717&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34248&fm=273100699229536&tin=02508201610067®Number=0000000000092786&sum=70000 [15:57:17]StoreToDocumentArchive [15:57:17]shift 323 fd 34248 [15:57:17]save to /storage/0323/doc_00034248 [15:57:17]save last doc name /storage/0323/doc_00034248 to /storage/kkm_last_doc_name [15:57:17]save OK [15:57:17]Clear old archive folders... [15:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:17]tlvbuf is 0191B210 [15:57:17]SAM_PROTO_ClearQueue [15:57:17]wFMCommunicate request_size=4 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 09 00 00 [15:57:17]Write to MH i2c: E2 08 00 91 05 80 09 00 00 00 00 00 00 08 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [15:57:17]RAPDU: 90 00 [15:57:17]wFMCommunicate OK [15:57:17]SAM_PROTO_ClearQueue done [15:57:17]KKMCreateOFDPacket [15:57:17]OFDProtocolAddRootSTLVToBuf [15:57:17]FM_MakeSignedData [15:57:17]FM_MakeSignedData [15:57:17]SAM_PROTO_SignData [15:57:17]wFMCommunicate request_size=4 [15:57:17]MH_SAM_APDU [15:57:17]CAPDU: 80 0D 01 02 [15:57:17]Write to MH i2c: E2 08 00 92 05 80 0D 01 02 00 00 00 00 10 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:17]Read from MH i2c: E2 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [15:57:17]RAPDU: 90 00 [15:57:17]wFMCommunicate OK [15:57:17]wFMCommunicate request_size=255 [15:57:17]MH_SAM_APDU [15:57: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 36 29 00 00 00 00 00 37 04 06 00 F0 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 5D AE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C8 85 00 00 35 04 06 00 F8 [15:57:17]Write to MH i2c: E2 02 01 93 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 36 29 00 00 00 00 00 37 04 06 00 F0 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 5D AE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C8 85 00 00 35 04 06 00 F8 00 00 90 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [15:57:18]RAPDU: 90 00 [15:57:18]wFMCommunicate OK [15:57:18]wFMCommunicate request_size=10 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 0D 02 02 05 62 36 2A 5D 60 [15:57:18]Write to MH i2c: E2 0D 00 94 05 80 0D 02 02 05 00 62 36 2A 5D 60 00 00 9C [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [15:57:18]RAPDU: 90 00 [15:57:18]wFMCommunicate OK [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 0D 03 02 [15:57:18]Write to MH i2c: E2 08 00 95 05 80 0D 03 02 00 00 00 00 15 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 0B 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 0B 00 95 05 00 74 3C 4B 0B F8 1D ED F4 90 00 12 [15:57:18]RAPDU: 74 3C 4B 0B F8 1D ED F4 90 00 [15:57:18]wFMCommunicate OK [15:57:18]SAM_PROTO_SignData done [15:57:18]FM_MakeSignedData done [15:57:18]CreateOFDProtocolMessage [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 11 00 00 [15:57:18]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 17 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6A [15:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:57:18]wFMCommunicate OK [15:57:18]CreateOFDProtocolMessage done [15:57:18]OFDSenderStorePacket 34248 [15:57:18]StoreOFDPacket docnum=34248 [15:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 9E D6 07 01 02 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 5D AE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C8 85 00 00 35 04 06 00 F8 62 36 2A 5D 60 74 3C 4B 0B F8 1D ED F4 [15:57:18]CheckFolder [15:57:18]dirname=/storage/ofd_packets [15:57:18]CheckFolder done [15:57:18]ProducePacketName [15:57:18]name=ofd_packets/00034248 [15:57:18]NVStorageSaveData ofd_packets/00034248 [15:57:18]File name is /storage/ofd_packets/00034248 [15:57:18]Write 301 bytes [15:57:18]NVStorageSaveData done [15:57:18]OFDSenderStorePacket done [15:57:18]KKMCreateOFDPacket done [15:57:18]NVStorageSaveData kkm_last_timestamp [15:57:18]File name is /storage/kkm_last_timestamp [15:57:18]Write 4 bytes [15:57:18]NVStorageSaveData done [15:57:18]ExternCall_PrintAddStr [15:57:18]wPrintStart [15:57:18]Write to MH i2c: 01 00 00 97 05 9C [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 07 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [15:57:18]RasterBufferAndPrint [15:57:18]line Счет N : (1)672645 [15:57:18]line ИНН: 02508201610067 [15:57:18]line Контрольно-Кассовый Чек [15:57:18]line ПРОДАЖА [15:57:18]line ТРК (МРК, ГНК) : 32 [15:57:18]line Товар: 2710124130 [15:57:18]line Аи-92-К-5 [15:57:18]line 10.550 * 66.40 [15:57:18]line = 700.52 [15:57:18]line НДС 12% НСП 1% [15:57:18]line > о реализуемом товаре [15:57:18]line ОКРУГЛЕНИЕ: -0.52 [15:57:18]line ИТОГО: 700.00 [15:57:18]line Внесено: 700.00 [15:57:18]line СДАЧА: 0.00 [15:57:18]line НСП 1% : 6.20 [15:57:18]line НДС 12% : 74.39 [15:57:18]line Наличными: 700.00 [15:57:18]line Безнал.: 0.00 [15:57:18]line Место: АЗС № 120 "Партнер Нефть" [15:57:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:57:18]line СНО: Общий режим [15:57:18]line Чек 70 18.06.2024 15:57 [15:57:18]line Смена: 323 ФФД: 1.0 [15:57:18]line ЗНМ: 0300000172 [15:57:18]line РНМ: 0000000000092786 [15:57:18]line Версия ККМ: 001 [15:57:18]line ФМ: 0000000000875095 [15:57:18]line ФД: 34248 [15:57:18]line ФПД: 273100699229536 [15:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T155717&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34248&fm=273100699229536&tin=02508201610067®Number=0000000000092786&sum=70000 [15:57:18]OFD Sender: Processing packet 34248 [packets to send 8, broken 7] [15:57:18]ProducePacketName [15:57:18]name=ofd_packets/00034248 [15:57:18]OFD Sender: To server: pG, [15:57:18]CommunicateWithHost lk.salyk.kg:30040 [15:57:18]ConnectInit lk.salyk.kg [15:57:18]written 0, free lines is 4095 [15:57:19]Write to MH i2c: 01 00 00 C2 05 C7 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 07 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 D8 0C B2 [15:57:19]RasterBufferAndPrint [15:57:19]line [15:57:19]line [15:57:19]line [15:57:19]line [15:57:19]line [15:57:19]written 0, free lines is 3295 [15:57:19]MH_Cut [15:57:19]Write to MH i2c: D1 01 00 C9 05 01 A0 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: D1 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: D1 01 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: D1 01 00 C9 05 00 9F [15:57:19]Write to MH i2c: 01 00 00 CA 05 CF [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]*** Cut start [15:57:19]*** Partial cut [15:57:19]*** CUTSNS_PIN = 1 [15:57:19]*** CUTSNS_PIN = 0 [15:57:19]Connected sock=10 [15:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 9E D6 07 01 02 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 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 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 5D AE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C8 85 00 00 35 04 06 00 F8 62 36 2A 5D 60 74 3C 4B 0B F8 1D ED F4 [15:57:20]*** Brake cut motor [15:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 10 86 47 00 D6 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C8 85 00 00 F4 03 04 00 2E 55 71 66 B6 04 01 00 00 01 78 2E 73 4C 66 7B 2A [15:57:20]CommunicateWithHost err = 0 [15:57:20]CheckOFDResponse [15:57:20]1017 (14) - 77093643461234 [15:57:20]1041 (16) - 0000000000875095 [15:57:20]1040 (4) - 34248 [15:57:20]1012 (4) - 18.06.2024 09:36 [15:57:20]1206 (1) - 0 [15:57:20]OFD Sender: Remove packet 34248 [15:57:20]ProducePacketName [15:57:20]name=ofd_packets/00034248 [15:57:20]NVStorageDeleteData [15:57:20]Read from MH i2c: 01 [15:57:20]MH_I2C_Read... [15:57:20]*** Stop cut motor [15:57:20]*** Cut end [15:57:20]Read from MH i2c: 01 07 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [15:57:20]process_action close_receipt done [15:57:20]requested_data is exist [15:57:20]produce_requested_data [15:57:20]requested_item fm.sn is exist - process it [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 11 00 00 [15:57:20]Write to MH i2c: E2 08 00 CB 05 80 11 00 00 00 00 00 00 4A [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 17 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 17 00 CB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9F [15:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [15:57:20]wFMCommunicate OK [15:57:20]requested_item fd.num is exist - process it [15:57:20]SAM_PROTO_GetFieldsCounters [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 13 00 00 [15:57:20]Write to MH i2c: E2 08 00 CC 05 80 13 00 00 00 00 00 00 4D [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 62 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 62 00 CC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C8 85 00 00 0E 04 04 00 43 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 DA [15:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C8 85 00 00 0E 04 04 00 43 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 [15:57:20]wFMCommunicate OK [15:57:20]SAM_PROTO_GetFieldsCounters done [15:57:20]requested_item shift.num is exist - process it [15:57:20]requested_item shift.opened is exist - process it [15:57:20]req_shift_opened [15:57:20]FM_GetShiftState [15:57:20]SAM_PROTO_GetShiftState [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 13 01 00 [15:57:20]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]OFD Sender: No OFD packet to send [15:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 0E 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 9A [15:57:20]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [15:57:20]wFMCommunicate OK [15:57:20]SAM_PROTO_GetShiftState done [15:57:20]FM_GetShiftState done [15:57:20]req_shift_opened done [15:57:20]requested_item shift.open_date is exist - process it [15:57:20]req_shift_open_date [15:57:20]req_shift_open_date done [15:57:20]produce_requested_data done [15:57:20]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34248,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [15:57:20]process_action_free close_receipt [15:57:20]json_value_free [15:57:20]json_value_free done [15:57:20]process_json_proto returns [15:57:20]Send response to host [15:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34248,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [15:57:20]free response buf [15:57:20]execute_script done [15:57:20]execute_script returns [15:57:20]free content buf [15:57:20]Sock 9.Close socket [15:57:20]Sock 9.Thread stoped [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:33]accept exits with 7 [16:00:33]New connection [16:00:33]New thread 3067567460 created [16:00:33]Thread 3067424100 joined [16:00:33]Waiting for new connection... [16:00:33] Sock 7.Parse request [16:00:33]Sock 7.Check first char [16:00:33]Sock 7.First char is OK [16:00:33]request: POST /json_proto HTTP/1.0 [16:00:33]Method: POST [16:00:33]URL: /json_proto [16:00:33]Method is POST - this is cgi request [16:00:33]url: /json_proto [16:00:33]query_string will be loaded in cgi processing [16:00:33]execute_cgi json_proto POST (null) [16:00:33]execute_cgi path=json_proto method=POST [16:00:33]POST find Content-Length [16:00:33]Host: 172.17.38.134:8080 [16:00:33]Content-Length: 683 [16:00:33]Content-Type: application/json [16:00:33] [16:00:33]POST finish read [16:00:33]Found Content-Length = 683 [16:00:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 11.660, "sum" : 850.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:33]execute_script... [16:00: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)672647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 11.660, "sum" : 850.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:33]POST & json_proto [16:00:33]process_json_proto [16:00:33]json parsed OK: [16:00:33]protocol is kg_v1.0 [16:00:33]action value=close_receipt [16:00:33]process_action close_receipt [16:00:33]cmd_close_receipt [16:00:33]MH_GetDate [16:00:33]Write to MH i2c: F0 00 00 CE 05 C2 [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: F0 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: F0 09 00 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: F0 09 00 CE 05 00 22 AF 71 66 13 9C 7C 64 02 [16:00:33]GetLastDocTimeStamp 1718726237 [16:00:33]current date 1718726434 [16:00:33]FM_GetShiftState [16:00:33]SAM_PROTO_GetShiftState [16:00:33]wFMCommunicate request_size=4 [16:00:33]MH_SAM_APDU [16:00:33]CAPDU: 80 13 01 00 [16:00:33]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:33]Read from MH i2c: E2 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: E2 0E 00 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 9C [16:00:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:00:33]wFMCommunicate OK [16:00:33]SAM_PROTO_GetShiftState done [16:00:33]FM_GetShiftState done [16:00:33]opened in 1718670230 [16:00:33]opened+sec_in_day 1718756630 [16:00:33]quantity*price = 85001 [16:00:33]sum+1 = 85002 [16:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.27 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 18.06.2024 16:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34249 ФПД: 175014093553079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160034&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34249&fm=175014093553079&tin=02508201610067®Number=0000000000092786&sum=85000 [16:00:34]StoreToDocumentArchive [16:00:34]shift 323 fd 34249 [16:00:34]save to /storage/0323/doc_00034249 [16:00:34]save last doc name /storage/0323/doc_00034249 to /storage/kkm_last_doc_name [16:00:34]save OK [16:00:34]Clear old archive folders... [16:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:00:34]tlvbuf is 01924480 [16:00:34]SAM_PROTO_ClearQueue [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 09 00 00 [16:00:34]Write to MH i2c: E2 08 00 DC 05 80 09 00 00 00 00 00 00 53 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [16:00:34]RAPDU: 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_ClearQueue done [16:00:34]KKMCreateOFDPacket [16:00:34]OFDProtocolAddRootSTLVToBuf [16:00:34]FM_MakeSignedData [16:00:34]FM_MakeSignedData [16:00:34]SAM_PROTO_SignData [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 0D 01 02 [16:00:34]Write to MH i2c: E2 08 00 DD 05 80 0D 01 02 00 00 00 00 5B [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [16:00:34]RAPDU: 90 00 [16:00:34]wFMCommunicate OK [16:00:34]wFMCommunicate request_size=255 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 22 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C9 85 00 00 35 04 06 00 [16:00:34]Write to MH i2c: E2 02 01 DE 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 22 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C9 85 00 00 35 04 06 00 00 00 D1 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [16:00:34]RAPDU: 90 00 [16:00:34]wFMCommunicate OK [16:00:34]wFMCommunicate request_size=11 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 0D 02 02 06 9F 2C A4 E0 7D B7 [16:00:34]Write to MH i2c: E2 0E 00 DF 05 80 0D 02 02 06 00 9F 2C A4 E0 7D B7 00 00 ED [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [16:00:34]RAPDU: 90 00 [16:00:34]wFMCommunicate OK [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 0D 03 02 [16:00:34]Write to MH i2c: E2 08 00 E0 05 80 0D 03 02 00 00 00 00 60 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0B 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0B 00 E0 05 00 66 B0 F4 FB 91 A8 02 CE 90 00 6F [16:00:34]RAPDU: 66 B0 F4 FB 91 A8 02 CE 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_SignData done [16:00:34]FM_MakeSignedData done [16:00:34]CreateOFDProtocolMessage [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 11 00 00 [16:00:34]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B5 [16:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:00:34]wFMCommunicate OK [16:00:34]CreateOFDProtocolMessage done [16:00:34]OFDSenderStorePacket 34249 [16:00:34]StoreOFDPacket docnum=34249 [16:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 D8 2F 08 01 ED B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 22 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C9 85 00 00 35 04 06 00 9F 2C A4 E0 7D B7 66 B0 F4 FB 91 A8 02 CE [16:00:34]CheckFolder [16:00:34]dirname=/storage/ofd_packets [16:00:34]CheckFolder done [16:00:34]ProducePacketName [16:00:34]name=ofd_packets/00034249 [16:00:34]NVStorageSaveData ofd_packets/00034249 [16:00:34]File name is /storage/ofd_packets/00034249 [16:00:34]Write 302 bytes [16:00:34]NVStorageSaveData done [16:00:34]OFDSenderStorePacket done [16:00:34]KKMCreateOFDPacket done [16:00:34]NVStorageSaveData kkm_last_timestamp [16:00:34]File name is /storage/kkm_last_timestamp [16:00:34]Write 4 bytes [16:00:34]NVStorageSaveData done [16:00:34]ExternCall_PrintAddStr [16:00:34]wPrintStart [16:00:34]Write to MH i2c: 01 00 00 E2 05 E7 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: 01 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: 01 07 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [16:00:34]RasterBufferAndPrint [16:00:34]line Счет N : (1)672647 [16:00:34]line ИНН: 02508201610067 [16:00:34]line Контрольно-Кассовый Чек [16:00:34]line ПРОДАЖА [16:00:34]line ТРК (МРК, ГНК) : 11 [16:00:34]line Товар: 2710194210 [16:00:35]line ДТ(л)-К-5 [16:00:35]line 11.660 * 72.90 [16:00:35]line = 850.01 [16:00:35]line НДС 12% НСП 1% [16:00:35]line > о реализуемом товаре [16:00:35]line ОКРУГЛЕНИЕ: -0.01 [16:00:35]line ИТОГО: 850.00 [16:00:35]line Внесено: 850.00 [16:00:35]line СДАЧА: 0.00 [16:00:35]line НСП 1% : 7.52 [16:00:35]line НДС 12% : 90.27 [16:00:35]line Наличными: 850.00 [16:00:35]line Безнал.: 0.00 [16:00:35]line Место: АЗС № 120 "Партнер Нефть" [16:00:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:00:35]line СНО: Общий режим [16:00:35]line Чек 71 18.06.2024 16:00 [16:00:35]line Смена: 323 ФФД: 1.0 [16:00:35]line ЗНМ: 0300000172 [16:00:35]line РНМ: 0000000000092786 [16:00:35]line Версия ККМ: 001 [16:00:35]line ФМ: 0000000000875095 [16:00:35]line ФД: 34249 [16:00:35]line ФПД: 175014093553079 [16:00:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160034&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34249&fm=175014093553079&tin=02508201610067®Number=0000000000092786&sum=85000 [16:00:35]OFD Sender: Processing packet 34249 [packets to send 8, broken 7] [16:00:35]ProducePacketName [16:00:35]name=ofd_packets/00034249 [16:00:35]OFD Sender: To server: pG, [16:00:35]CommunicateWithHost lk.salyk.kg:30040 [16:00:35]ConnectInit lk.salyk.kg [16:00:35]written 0, free lines is 4095 [16:00:35]Connected sock=10 [16:00:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 D8 2F 08 01 ED B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 22 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C9 85 00 00 35 04 06 00 9F 2C A4 E0 7D B7 66 B0 F4 FB 91 A8 02 CE [16:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 83 4C 47 00 EF 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 C9 85 00 00 F4 03 04 00 F1 55 71 66 B6 04 01 00 00 B5 9B FA 7E 98 D2 E7 03 [16:00:35]CommunicateWithHost err = 0 [16:00:35]CheckOFDResponse [16:00:35]1017 (14) - 77093643461234 [16:00:35]1041 (16) - 0000000000875095 [16:00:35]1040 (4) - 34249 [16:00:35]1012 (4) - 18.06.2024 09:40 [16:00:35]1206 (1) - 0 [16:00:35]OFD Sender: Remove packet 34249 [16:00:35]ProducePacketName [16:00:35]name=ofd_packets/00034249 [16:00:35]NVStorageDeleteData [16:00:35]Write to MH i2c: 01 00 00 0D 06 13 [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: 01 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: 01 07 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 DA 0C 00 [16:00:35]RasterBufferAndPrint [16:00:35]line [16:00:35]line [16:00:35]line [16:00:35]line [16:00:35]line [16:00:35]written 0, free lines is 3297 [16:00:35]MH_Cut [16:00:35]Write to MH i2c: D1 01 00 14 06 01 EC [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: D1 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: D1 01 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: D1 01 00 14 06 00 EB [16:00:35]Write to MH i2c: 01 00 00 15 06 1B [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:36]OFD Sender: No OFD packet to send [16:00:36]*** Cut start [16:00:36]*** Partial cut [16:00:36]*** CUTSNS_PIN = 1 [16:00:36]*** CUTSNS_PIN = 0 [16:00:36]*** Brake cut motor [16:00:37]Read from MH i2c: 01 [16:00:37]MH_I2C_Read... [16:00:37]*** Stop cut motor [16:00:37]*** Cut end [16:00:37]Read from MH i2c: 01 07 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 15 06 00 00 00 00 00 FF 0F 30 [16:00:37]process_action close_receipt done [16:00:37]requested_data is exist [16:00:37]produce_requested_data [16:00:37]requested_item fm.sn is exist - process it [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 11 00 00 [16:00:37]Write to MH i2c: E2 08 00 16 06 80 11 00 00 00 00 00 00 96 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 17 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 17 00 16 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EB [16:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:00:37]wFMCommunicate OK [16:00:37]requested_item fd.num is exist - process it [16:00:37]SAM_PROTO_GetFieldsCounters [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 13 00 00 [16:00:37]Write to MH i2c: E2 08 00 17 06 80 13 00 00 00 00 00 00 99 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 62 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 62 00 17 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C9 85 00 00 0E 04 04 00 43 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 [16:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 C9 85 00 00 0E 04 04 00 43 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 [16:00:37]wFMCommunicate OK [16:00:37]SAM_PROTO_GetFieldsCounters done [16:00:37]requested_item shift.num is exist - process it [16:00:37]requested_item shift.opened is exist - process it [16:00:37]req_shift_opened [16:00:37]FM_GetShiftState [16:00:37]SAM_PROTO_GetShiftState [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 13 01 00 [16:00:37]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 0E 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E6 [16:00:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:00:37]wFMCommunicate OK [16:00:37]SAM_PROTO_GetShiftState done [16:00:37]FM_GetShiftState done [16:00:37]req_shift_opened done [16:00:37]requested_item shift.open_date is exist - process it [16:00:37]req_shift_open_date [16:00:37]req_shift_open_date done [16:00:37]produce_requested_data done [16:00:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34249,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:00:37]process_action_free close_receipt [16:00:37]json_value_free [16:00:37]json_value_free done [16:00:37]process_json_proto returns [16:00:37]Send response to host [16:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34249,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:00:37]free response buf [16:00:37]execute_script done [16:00:37]execute_script returns [16:00:37]free content buf [16:00:37]Sock 7.Close socket [16:00:37]Sock 7.Thread stoped [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:52]accept exits with 9 [16:03:52]New connection [16:03:52]New thread 3067424100 created [16:03:52]Thread 3067567460 joined [16:03:52]Waiting for new connection... [16:03:52] Sock 9.Parse request [16:03:52]Sock 9.Check first char [16:03:52]Sock 9.First char is OK [16:03:52]request: POST /json_proto HTTP/1.0 [16:03:52]Method: POST [16:03:52]URL: /json_proto [16:03:52]Method is POST - this is cgi request [16:03:52]url: /json_proto [16:03:52]query_string will be loaded in cgi processing [16:03:52]execute_cgi json_proto POST (null) [16:03:52]execute_cgi path=json_proto method=POST [16:03:52]POST find Content-Length [16:03:52]Host: 172.17.38.134:8080 [16:03:52]Content-Length: 640 [16:03:52]Content-Type: application/json [16:03:52] [16:03:52]POST finish read [16:03:52]Found Content-Length = 640 [16:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184039", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.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" ] } } [16:03:52]execute_script... [16:03:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184039", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.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" ] } } [16:03:52]POST & json_proto [16:03:52]process_json_proto [16:03:52]json parsed OK: [16:03:52]protocol is kg_v1.0 [16:03:52]action value=close_receipt [16:03:52]process_action close_receipt [16:03:52]cmd_close_receipt [16:03:52]MH_GetDate [16:03:52]Write to MH i2c: F0 00 00 19 06 0E [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: F0 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: F0 09 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: F0 09 00 19 06 00 E9 AF 71 66 13 9C 7C 64 15 [16:03:52]GetLastDocTimeStamp 1718726434 [16:03:52]current date 1718726633 [16:03:52]FM_GetShiftState [16:03:52]SAM_PROTO_GetShiftState [16:03:52]wFMCommunicate request_size=4 [16:03:52]MH_SAM_APDU [16:03:52]CAPDU: 80 13 01 00 [16:03:52]Write to MH i2c: E2 08 00 1A 06 80 13 01 00 00 00 00 00 9D [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 0E 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 0E 00 1A 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 E8 [16:03:52]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:03:52]wFMCommunicate OK [16:03:52]SAM_PROTO_GetShiftState done [16:03:52]FM_GetShiftState done [16:03:52]opened in 1718670230 [16:03:52]opened+sec_in_day 1718756630 [16:03:52]quantity*price = 14000 [16:03:52]sum+1 = 14001 [16:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 72 18.06.2024 16:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34250 ФПД: 155936593363445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160353&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34250&fm=155936593363445&tin=02508201610067®Number=0000000000092786&sum=14000 0 [16:03:53]StoreToDocumentArchive [16:03:53]shift 323 fd 34250 [16:03:53]save to /storage/0323/doc_00034250 [16:03:53]save last doc name /storage/0323/doc_00034250 to /storage/kkm_last_doc_name [16:03:53]save OK [16:03:53]Clear old archive folders... [16:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:03:53]tlvbuf is 018F41D0 [16:03:53]SAM_PROTO_ClearQueue [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 09 00 00 [16:03:53]Write to MH i2c: E2 08 00 27 06 80 09 00 00 00 00 00 00 9F [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [16:03:53]RAPDU: 90 00 [16:03:53]wFMCommunicate OK [16:03:53]SAM_PROTO_ClearQueue done [16:03:53]KKMCreateOFDPacket [16:03:53]OFDProtocolAddRootSTLVToBuf [16:03:53]FM_MakeSignedData [16:03:53]FM_MakeSignedData [16:03:53]SAM_PROTO_SignData [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 0D 01 02 [16:03:53]Write to MH i2c: E2 08 00 28 06 80 0D 01 02 00 00 00 00 A7 [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [16:03:53]RAPDU: 90 00 [16:03:53]wFMCommunicate OK [16:03:53]wFMCommunicate request_size=255 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 48 00 00 00 F4 03 04 00 E9 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [16:03:53]Write to MH i2c: E2 02 01 29 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 48 00 00 00 F4 03 04 00 E9 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 32 [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [16:03:53]RAPDU: 90 00 [16:03:53]wFMCommunicate OK [16:03:53]wFMCommunicate request_size=32 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 CA 85 00 00 35 04 06 00 8D D2 D1 41 41 F5 [16:03:53]Write to MH i2c: E2 23 00 2A 06 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 CA 85 00 00 35 04 06 00 8D D2 D1 41 41 F5 00 00 FF [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [16:03:53]RAPDU: 90 00 [16:03:53]wFMCommunicate OK [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 0D 03 02 [16:03:53]Write to MH i2c: E2 08 00 2B 06 80 0D 03 02 00 00 00 00 AC [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 0B 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 0B 00 2B 06 00 47 B9 23 C3 A3 58 C9 6A 90 00 C1 [16:03:54]RAPDU: 47 B9 23 C3 A3 58 C9 6A 90 00 [16:03:54]wFMCommunicate OK [16:03:54]SAM_PROTO_SignData done [16:03:54]FM_MakeSignedData done [16:03:54]CreateOFDProtocolMessage [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 11 00 00 [16:03:54]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 17 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 01 [16:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:03:54]wFMCommunicate OK [16:03:54]CreateOFDProtocolMessage done [16:03:54]OFDSenderStorePacket 34250 [16:03:54]StoreOFDPacket docnum=34250 [16:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 D8 70 1D 01 D8 02 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 48 00 00 00 F4 03 04 00 E9 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CA 85 00 00 35 04 06 00 8D D2 D1 41 41 F5 47 B9 23 C3 A3 58 C9 6A [16:03:54]CheckFolder [16:03:54]dirname=/storage/ofd_packets [16:03:54]CheckFolder done [16:03:54]ProducePacketName [16:03:54]name=ofd_packets/00034250 [16:03:54]NVStorageSaveData ofd_packets/00034250 [16:03:54]File name is /storage/ofd_packets/00034250 [16:03:54]Write 323 bytes [16:03:54]NVStorageSaveData done [16:03:54]OFDSenderStorePacket done [16:03:54]KKMCreateOFDPacket done [16:03:54]NVStorageSaveData kkm_last_timestamp [16:03:54]File name is /storage/kkm_last_timestamp [16:03:54]Write 4 bytes [16:03:54]NVStorageSaveData done [16:03:54]ExternCall_PrintAddStr [16:03:54]wPrintStart [16:03:54]Write to MH i2c: 01 00 00 2D 06 33 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [16:03:54]RasterBufferAndPrint [16:03:54]line Счет N : (3)184039 [16:03:54]line ИНН: 02508201610067 [16:03:54]line Контрольно-Кассовый Чек [16:03:54]line ПРОДАЖА [16:03:54]line Товар: 4700002082931 [16:03:54]line Водка Хорошая 0,1л [16:03:54]line 2.000 * 70.00 [16:03:54]line = 140.00 [16:03:54]line НДС 12% НСП 1% [16:03:54]line > о реализуемом товаре [16:03:54]line ИТОГО: 140.00 [16:03:54]line НСП 1% : 1.24 [16:03:54]line НДС 12% : 14.87 [16:03:54]line Наличными: 140.00 [16:03:54]line Безнал.: 0.00 [16:03:54]line Место: АЗС № 120 "Партнер Нефть" [16:03:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:03:54]line СНО: Общий режим [16:03:54]line Чек 72 18.06.2024 16:03 [16:03:54]line Смена: 323 ФФД: 1.0 [16:03:54]line ЗНМ: 0300000172 [16:03:54]line РНМ: 0000000000092786 [16:03:54]line Версия ККМ: 001 [16:03:54]line ФМ: 0000000000875095 [16:03:54]line ФД: 34250 [16:03:54]line ФПД: 155936593363445 [16:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160353&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34250&fm=155936593363445&tin=02508201610067®Number=0000000000092786&sum=14000 [16:03:54]line 0 [16:03:54]OFD Sender: Processing packet 34250 [packets to send 8, broken 7] [16:03:54]ProducePacketName [16:03:54]name=ofd_packets/00034250 [16:03:54]OFD Sender: To server: pG, [16:03:54]CommunicateWithHost lk.salyk.kg:30040 [16:03:54]ConnectInit lk.salyk.kg [16:03:54]written 0, free lines is 4095 [16:03:54]Connected sock=10 [16:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 D8 70 1D 01 D8 02 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 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 48 00 00 00 F4 03 04 00 E9 AF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CA 85 00 00 35 04 06 00 8D D2 D1 41 41 F5 47 B9 23 C3 A3 58 C9 6A [16:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 85 A7 47 00 FF 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CA 85 00 00 F4 03 04 00 B8 56 71 66 B6 04 01 00 00 D7 F7 5D 03 61 7D 6A 1C [16:03:54]CommunicateWithHost err = 0 [16:03:54]CheckOFDResponse [16:03:54]1017 (14) - 77093643461234 [16:03:54]1041 (16) - 0000000000875095 [16:03:54]1040 (4) - 34250 [16:03:54]1012 (4) - 18.06.2024 09:43 [16:03:54]1206 (1) - 0 [16:03:54]OFD Sender: Remove packet 34250 [16:03:54]ProducePacketName [16:03:54]name=ofd_packets/00034250 [16:03:54]NVStorageDeleteData [16:03:54]Write to MH i2c: 01 00 00 55 06 5B [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 05 0D 74 [16:03:54]RasterBufferAndPrint [16:03:54]line [16:03:54]line [16:03:54]line [16:03:54]line [16:03:54]line [16:03:54]written 0, free lines is 3340 [16:03:54]MH_Cut [16:03:54]Write to MH i2c: D1 01 00 5C 06 01 34 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: D1 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: D1 01 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: D1 01 00 5C 06 00 33 [16:03:54]Write to MH i2c: 01 00 00 5D 06 63 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:55]OFD Sender: No OFD packet to send [16:03:55]*** Cut start [16:03:55]*** Partial cut [16:03:55]*** CUTSNS_PIN = 1 [16:03:55]*** CUTSNS_PIN = 0 [16:03:55]*** Brake cut motor [16:03:56]Read from MH i2c: 01 [16:03:56]MH_I2C_Read... [16:03:56]*** Stop cut motor [16:03:56]*** Cut end [16:03:56]Read from MH i2c: 01 07 00 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 FF 0F 78 [16:03:56]process_action close_receipt done [16:03:56]requested_data is exist [16:03:56]produce_requested_data [16:03:56]requested_item fm.sn is exist - process it [16:03:56]wFMCommunicate request_size=4 [16:03:56]MH_SAM_APDU [16:03:56]CAPDU: 80 11 00 00 [16:03:56]Write to MH i2c: E2 08 00 5E 06 80 11 00 00 00 00 00 00 DE [16:03:56]Write i2c OK [16:03:56]MH_I2C_Read... [16:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:56]Read from MH i2c: E2 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: E2 17 00 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: E2 17 00 5E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 33 [16:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:03:56]wFMCommunicate OK [16:03:56]requested_item fd.num is exist - process it [16:03:56]SAM_PROTO_GetFieldsCounters [16:03:56]wFMCommunicate request_size=4 [16:03:56]MH_SAM_APDU [16:03:56]CAPDU: 80 13 00 00 [16:03:56]Write to MH i2c: E2 08 00 5F 06 80 13 00 00 00 00 00 00 E1 [16:03:56]Write i2c OK [16:03:56]MH_I2C_Read... [16:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:56]Read from MH i2c: E2 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: E2 62 00 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: E2 62 00 5F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CA 85 00 00 0E 04 04 00 43 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 76 [16:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CA 85 00 00 0E 04 04 00 43 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 [16:03:56]wFMCommunicate OK [16:03:56]SAM_PROTO_GetFieldsCounters done [16:03:56]requested_item shift.num is exist - process it [16:03:56]requested_item shift.opened is exist - process it [16:03:56]req_shift_opened [16:03:56]FM_GetShiftState [16:03:56]SAM_PROTO_GetShiftState [16:03:56]wFMCommunicate request_size=4 [16:03:56]MH_SAM_APDU [16:03:56]CAPDU: 80 13 01 00 [16:03:56]Write to MH i2c: E2 08 00 60 06 80 13 01 00 00 00 00 00 E3 [16:03:56]Write i2c OK [16:03:56]MH_I2C_Read... [16:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:56]Read from MH i2c: E2 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: E2 0E 00 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: E2 0E 00 60 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 2E [16:03:56]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:03:56]wFMCommunicate OK [16:03:56]SAM_PROTO_GetShiftState done [16:03:56]FM_GetShiftState done [16:03:56]req_shift_opened done [16:03:56]requested_item shift.open_date is exist - process it [16:03:56]req_shift_open_date [16:03:56]req_shift_open_date done [16:03:56]produce_requested_data done [16:03:56]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34250,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:03:56]process_action_free close_receipt [16:03:56]json_value_free [16:03:56]json_value_free done [16:03:56]process_json_proto returns [16:03:56]Send response to host [16:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34250,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:03:56]free response buf [16:03:56]execute_script done [16:03:56]execute_script returns [16:03:56]free content buf [16:03:56]Sock 9.Close socket [16:03:56]Sock 9.Thread stoped [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]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:23]accept exits with 7 [16:04:23]New connection [16:04:23]New thread 3067567460 created [16:04:23]Thread 3067424100 joined [16:04:23]Waiting for new connection... [16:04:23] Sock 7.Parse request [16:04:23]Sock 7.Check first char [16:04:23]Sock 7.First char is OK [16:04:23]request: POST /json_proto HTTP/1.0 [16:04:23]Method: POST [16:04:23]URL: /json_proto [16:04:23]Method is POST - this is cgi request [16:04:23]url: /json_proto [16:04:23]query_string will be loaded in cgi processing [16:04:23]execute_cgi json_proto POST (null) [16:04:23]execute_cgi path=json_proto method=POST [16:04:23]POST find Content-Length [16:04:23]Host: 172.17.38.134:8080 [16:04:23]Content-Length: 654 [16:04:23]Content-Type: application/json [16:04:23] [16:04:23]POST finish read [16:04:23]Found Content-Length = 654 [16:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184040", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:23]execute_script... [16:04:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184040", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:23]POST & json_proto [16:04:23]process_json_proto [16:04:23]json parsed OK: [16:04:23]protocol is kg_v1.0 [16:04:23]action value=close_receipt [16:04:23]process_action close_receipt [16:04:23]cmd_close_receipt [16:04:23]MH_GetDate [16:04:23]Write to MH i2c: F0 00 00 61 06 56 [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 09 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: F0 09 00 61 06 00 08 B0 71 66 13 9C 7C 64 7D [16:04:23]GetLastDocTimeStamp 1718726633 [16:04:23]current date 1718726664 [16:04:23]FM_GetShiftState [16:04:23]SAM_PROTO_GetShiftState [16:04:23]wFMCommunicate request_size=4 [16:04:23]MH_SAM_APDU [16:04:23]CAPDU: 80 13 01 00 [16:04:23]Write to MH i2c: E2 08 00 62 06 80 13 01 00 00 00 00 00 E5 [16:04:23]Write i2c OK [16:04:23]MH_I2C_Read... [16:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:23]Read from MH i2c: E2 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0E 00 [16:04:23]MH_I2C_Read... [16:04:23]Read from MH i2c: E2 0E 00 62 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 30 [16:04:23]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:04:23]wFMCommunicate OK [16:04:23]SAM_PROTO_GetShiftState done [16:04:23]FM_GetShiftState done [16:04:23]opened in 1718670230 [16:04:23]opened+sec_in_day 1718756630 [16:04:23]quantity*price = 9500 [16:04:23]sum+1 = 9501 [16:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 73 18.06.2024 16:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34251 ФПД: 56085137935125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160424&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34251&fm=56085137935125&tin=02508201610067®Number=0000000000092786&sum=9500 0 [16:04:24]StoreToDocumentArchive [16:04:24]shift 323 fd 34251 [16:04:24]save to /storage/0323/doc_00034251 [16:04:24]save last doc name /storage/0323/doc_00034251 to /storage/kkm_last_doc_name [16:04:24]save OK [16:04:24]Clear old archive folders... [16:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:04:24]tlvbuf is B6F3E0E0 [16:04:24]SAM_PROTO_ClearQueue [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 09 00 00 [16:04:24]Write to MH i2c: E2 08 00 6F 06 80 09 00 00 00 00 00 00 E7 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]SAM_PROTO_ClearQueue done [16:04:24]KKMCreateOFDPacket [16:04:24]OFDProtocolAddRootSTLVToBuf [16:04:24]FM_MakeSignedData [16:04:24]FM_MakeSignedData [16:04:24]SAM_PROTO_SignData [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 01 02 [16:04:24]Write to MH i2c: E2 08 00 70 06 80 0D 01 02 00 00 00 00 EF [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=255 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 08 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:04:24]Write to MH i2c: E2 02 01 71 06 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 08 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AB [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=52 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CB 85 00 00 35 04 06 00 33 02 56 B9 4B 15 [16:04:24]Write to MH i2c: E2 37 00 72 06 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CB 85 00 00 35 04 06 00 33 02 56 B9 4B 15 00 00 B2 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [16:04:24]RAPDU: 90 00 [16:04:24]wFMCommunicate OK [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 0D 03 02 [16:04:24]Write to MH i2c: E2 08 00 73 06 80 0D 03 02 00 00 00 00 F4 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 0B 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 0B 00 73 06 00 76 83 7B 14 66 BB 41 8D 90 00 6C [16:04:24]RAPDU: 76 83 7B 14 66 BB 41 8D 90 00 [16:04:24]wFMCommunicate OK [16:04:24]SAM_PROTO_SignData done [16:04:24]FM_MakeSignedData done [16:04:24]CreateOFDProtocolMessage [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 11 00 00 [16:04:24]Write to MH i2c: E2 08 00 74 06 80 11 00 00 00 00 00 00 F4 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:24]Read from MH i2c: E2 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 17 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: E2 17 00 74 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 49 [16:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:04:24]wFMCommunicate OK [16:04:24]CreateOFDProtocolMessage done [16:04:24]OFDSenderStorePacket 34251 [16:04:24]StoreOFDPacket docnum=34251 [16:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 7F E6 31 01 71 2B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 08 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CB 85 00 00 35 04 06 00 33 02 56 B9 4B 15 76 83 7B 14 66 BB 41 8D [16:04:24]CheckFolder [16:04:24]dirname=/storage/ofd_packets [16:04:24]CheckFolder done [16:04:24]ProducePacketName [16:04:24]name=ofd_packets/00034251 [16:04:24]NVStorageSaveData ofd_packets/00034251 [16:04:24]File name is /storage/ofd_packets/00034251 [16:04:24]Write 343 bytes [16:04:24]NVStorageSaveData done [16:04:24]OFDSenderStorePacket done [16:04:24]KKMCreateOFDPacket done [16:04:24]NVStorageSaveData kkm_last_timestamp [16:04:24]File name is /storage/kkm_last_timestamp [16:04:24]Write 4 bytes [16:04:24]NVStorageSaveData done [16:04:24]ExternCall_PrintAddStr [16:04:24]wPrintStart [16:04:24]Write to MH i2c: 01 00 00 75 06 7B [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [16:04:24]RasterBufferAndPrint [16:04:24]line Счет N : (3)184040 [16:04:24]line ИНН: 02508201610067 [16:04:24]line Контрольно-Кассовый Чек [16:04:24]line ПРОДАЖА [16:04:24]line Товар: 4700000480050 [16:04:24]line Напиток Nitro Energy эн green ж/б 0,45л [16:04:24]line 1.000 * 95.00 [16:04:24]line = 95.00 [16:04:24]line НДС 12% НСП 1% [16:04:24]line > о реализуемом товаре [16:04:24]line ИТОГО: 95.00 [16:04:24]line НСП 1% : 0.84 [16:04:24]line НДС 12% : 10.09 [16:04:24]line Наличными: 95.00 [16:04:24]line Безнал.: 0.00 [16:04:24]line Место: АЗС № 120 "Партнер Нефть" [16:04:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:04:24]line СНО: Общий режим [16:04:24]line Чек 73 18.06.2024 16:04 [16:04:24]line Смена: 323 ФФД: 1.0 [16:04:24]line ЗНМ: 0300000172 [16:04:24]line РНМ: 0000000000092786 [16:04:24]line Версия ККМ: 001 [16:04:25]line ФМ: 0000000000875095 [16:04:25]line ФД: 34251 [16:04:25]line ФПД: 56085137935125 [16:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160424&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34251&fm=56085137935125&tin=02508201610067®Number=0000000000092786&sum=9500 [16:04:25]line 0 [16:04:25]OFD Sender: Processing packet 34251 [packets to send 8, broken 7] [16:04:25]ProducePacketName [16:04:25]name=ofd_packets/00034251 [16:04:25]OFD Sender: To server: pG, [16:04:25]CommunicateWithHost lk.salyk.kg:30040 [16:04:25]ConnectInit lk.salyk.kg [16:04:25]written 0, free lines is 4095 [16:04:25]Connected sock=10 [16:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 7F E6 31 01 71 2B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 08 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CB 85 00 00 35 04 06 00 33 02 56 B9 4B 15 76 83 7B 14 66 BB 41 8D [16:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 DB D4 47 00 04 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CB 85 00 00 F4 03 04 00 D7 56 71 66 B6 04 01 00 00 B2 E0 46 9B 7E DB 83 0D [16:04:25]CommunicateWithHost err = 0 [16:04:25]CheckOFDResponse [16:04:25]1017 (14) - 77093643461234 [16:04:25]1041 (16) - 0000000000875095 [16:04:25]1040 (4) - 34251 [16:04:25]1012 (4) - 18.06.2024 09:43 [16:04:25]1206 (1) - 0 [16:04:25]OFD Sender: Remove packet 34251 [16:04:25]ProducePacketName [16:04:25]name=ofd_packets/00034251 [16:04:25]NVStorageDeleteData [16:04:25]Write to MH i2c: 01 00 00 9E 06 A4 [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 07 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 EB 0C A2 [16:04:25]RasterBufferAndPrint [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]line [16:04:25]written 0, free lines is 3313 [16:04:25]MH_Cut [16:04:25]Write to MH i2c: D1 01 00 A5 06 01 7D [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 01 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: D1 01 00 A5 06 00 7C [16:04:25]Write to MH i2c: 01 00 00 A6 06 AC [16:04:25]Write i2c OK [16:04:25]MH_I2C_Read... [16:04:26]OFD Sender: No OFD packet to send [16:04:26]*** Cut start [16:04:26]*** Partial cut [16:04:26]*** CUTSNS_PIN = 1 [16:04:26]*** CUTSNS_PIN = 0 [16:04:26]*** Brake cut motor [16:04:27]Read from MH i2c: 01 [16:04:27]MH_I2C_Read... [16:04:27]*** Stop cut motor [16:04:27]*** Cut end [16:04:27]Read from MH i2c: 01 07 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: 01 07 00 A6 06 00 00 00 00 00 FF 0F C1 [16:04:27]process_action close_receipt done [16:04:27]requested_data is exist [16:04:27]produce_requested_data [16:04:27]requested_item fm.sn is exist - process it [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 11 00 00 [16:04:27]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 17 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7C [16:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:04:27]wFMCommunicate OK [16:04:27]requested_item fd.num is exist - process it [16:04:27]SAM_PROTO_GetFieldsCounters [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 13 00 00 [16:04:27]Write to MH i2c: E2 08 00 A8 06 80 13 00 00 00 00 00 00 2A [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 62 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 62 00 A8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CB 85 00 00 0E 04 04 00 43 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 C3 [16:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CB 85 00 00 0E 04 04 00 43 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 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetFieldsCounters done [16:04:27]requested_item shift.num is exist - process it [16:04:27]requested_item shift.opened is exist - process it [16:04:27]req_shift_opened [16:04:27]FM_GetShiftState [16:04:27]SAM_PROTO_GetShiftState [16:04:27]wFMCommunicate request_size=4 [16:04:27]MH_SAM_APDU [16:04:27]CAPDU: 80 13 01 00 [16:04:27]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:27]Read from MH i2c: E2 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 77 [16:04:27]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:04:27]wFMCommunicate OK [16:04:27]SAM_PROTO_GetShiftState done [16:04:27]FM_GetShiftState done [16:04:27]req_shift_opened done [16:04:27]requested_item shift.open_date is exist - process it [16:04:27]req_shift_open_date [16:04:27]req_shift_open_date done [16:04:27]produce_requested_data done [16:04:27]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34251,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:04:27]process_action_free close_receipt [16:04:27]json_value_free [16:04:27]json_value_free done [16:04:27]process_json_proto returns [16:04:27]Send response to host [16:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34251,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:04:27]free response buf [16:04:27]execute_script done [16:04:27]execute_script returns [16:04:27]free content buf [16:04:27]Sock 7.Close socket [16:04:27]Sock 7.Thread stoped [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:22]accept exits with 9 [16:05:22]New connection [16:05:22]New thread 3067424100 created [16:05:22]Thread 3067567460 joined [16:05:22]Waiting for new connection... [16:05:22] Sock 9.Parse request [16:05:22]Sock 9.Check first char [16:05:22]Sock 9.First char is OK [16:05:22]request: POST /json_proto HTTP/1.0 [16:05:22]Method: POST [16:05:22]URL: /json_proto [16:05:22]Method is POST - this is cgi request [16:05:22]url: /json_proto [16:05:22]query_string will be loaded in cgi processing [16:05:22]execute_cgi json_proto POST (null) [16:05:22]execute_cgi path=json_proto method=POST [16:05:22]POST find Content-Length [16:05:22]Host: 172.17.38.134:8080 [16:05:22]Content-Length: 823 [16:05:22]Content-Type: application/json [16:05:22] [16:05:22]POST finish read [16:05:22]Found Content-Length = 823 [16:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184041", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:22]execute_script... [16:05:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184041", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:22]POST & json_proto [16:05:22]process_json_proto [16:05:22]json parsed OK: [16:05:22]protocol is kg_v1.0 [16:05:22]action value=close_receipt [16:05:22]process_action close_receipt [16:05:22]cmd_close_receipt [16:05:22]MH_GetDate [16:05:22]Write to MH i2c: F0 00 00 AA 06 9F [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: F0 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: F0 09 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: F0 09 00 AA 06 00 43 B0 71 66 13 9C 7C 64 01 [16:05:22]GetLastDocTimeStamp 1718726664 [16:05:22]current date 1718726723 [16:05:22]FM_GetShiftState [16:05:22]SAM_PROTO_GetShiftState [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 13 01 00 [16:05:22]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 0E 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 79 [16:05:22]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:05:22]wFMCommunicate OK [16:05:22]SAM_PROTO_GetShiftState done [16:05:22]FM_GetShiftState done [16:05:22]opened in 1718670230 [16:05:22]opened+sec_in_day 1718756630 [16:05:22]quantity*price = 12500 [16:05:22]sum+1 = 12501 [16:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 74 18.06.2024 16:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34252 ФПД: 159391064545647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160523&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34252&fm=159391064545647&tin=02508201610067®Number=0000000000092786&sum=12500 0 [16:05:23]StoreToDocumentArchive [16:05:23]shift 323 fd 34252 [16:05:23]save to /storage/0323/doc_00034252 [16:05:23]save last doc name /storage/0323/doc_00034252 to /storage/kkm_last_doc_name [16:05:23]save OK [16:05:23]Clear old archive folders... [16:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:05:23]tlvbuf is 019339B0 [16:05:23]SAM_PROTO_ClearQueue [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 09 00 00 [16:05:23]Write to MH i2c: E2 08 00 B8 06 80 09 00 00 00 00 00 00 30 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [16:05:23]RAPDU: 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_ClearQueue done [16:05:23]KKMCreateOFDPacket [16:05:23]OFDProtocolAddRootSTLVToBuf [16:05:23]FM_MakeSignedData [16:05:23]FM_MakeSignedData [16:05:23]SAM_PROTO_SignData [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 0D 01 02 [16:05:23]Write to MH i2c: E2 08 00 B9 06 80 0D 01 02 00 00 00 00 38 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [16:05:23]RAPDU: 90 00 [16:05:23]wFMCommunicate OK [16:05:23]wFMCommunicate request_size=255 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [16:05:23]Write to MH i2c: E2 02 01 BA 06 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 95 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [16:05:23]RAPDU: 90 00 [16:05:23]wFMCommunicate OK [16:05:23]wFMCommunicate request_size=41 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CC 85 00 00 35 04 06 00 90 F7 1F C8 59 6F [16:05:23]Write to MH i2c: E2 2C 00 BB 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CC 85 00 00 35 04 06 00 90 F7 1F C8 59 6F 00 00 93 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [16:05:23]RAPDU: 90 00 [16:05:23]wFMCommunicate OK [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 0D 03 02 [16:05:23]Write to MH i2c: E2 08 00 BC 06 80 0D 03 02 00 00 00 00 3D [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0B 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0B 00 BC 06 00 0E FB 30 BB 98 5D 54 C3 90 00 3E [16:05:23]RAPDU: 0E FB 30 BB 98 5D 54 C3 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_SignData done [16:05:23]FM_MakeSignedData done [16:05:23]CreateOFDProtocolMessage [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 11 00 00 [16:05:23]Write to MH i2c: E2 08 00 BD 06 80 11 00 00 00 00 00 00 3D [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 BD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 92 [16:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:05:23]wFMCommunicate OK [16:05:23]CreateOFDProtocolMessage done [16:05:23]OFDSenderStorePacket 34252 [16:05:23]StoreOFDPacket docnum=34252 [16:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 2B A9 26 01 5D 3D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CC 85 00 00 35 04 06 00 90 F7 1F C8 59 6F 0E FB 30 BB 98 5D 54 C3 [16:05:23]CheckFolder [16:05:23]dirname=/storage/ofd_packets [16:05:23]CheckFolder done [16:05:23]ProducePacketName [16:05:23]name=ofd_packets/00034252 [16:05:23]NVStorageSaveData ofd_packets/00034252 [16:05:23]File name is /storage/ofd_packets/00034252 [16:05:23]Write 332 bytes [16:05:23]NVStorageSaveData done [16:05:23]OFDSenderStorePacket done [16:05:23]KKMCreateOFDPacket done [16:05:23]NVStorageSaveData kkm_last_timestamp [16:05:23]File name is /storage/kkm_last_timestamp [16:05:23]Write 4 bytes [16:05:23]NVStorageSaveData done [16:05:23]ExternCall_PrintAddStr [16:05:23]wPrintStart [16:05:23]Write to MH i2c: 01 00 00 BE 06 C4 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 FF 0F D9 [16:05:23]RasterBufferAndPrint [16:05:23]line Счет N : (3)184041 [16:05:23]line ИНН: 02508201610067 [16:05:23]line Контрольно-Кассовый Чек [16:05:23]line ПРОДАЖА [16:05:23]line Товар: 2000036220012 [16:05:23]line Кофе Капучино XL(GABB TRADE) [16:05:23]line 1.000 * 125.00 [16:05:23]line = 125.00 [16:05:23]line НДС 12% НСП 1% [16:05:23]line > о реализуемом товаре [16:05:23]line ИТОГО: 125.00 [16:05:23]line НСП 1% : 1.11 [16:05:23]line НДС 12% : 13.27 [16:05:23]line Наличными: 0.00 [16:05:23]line Безнал.: 125.00 [16:05:23]line Место: АЗС № 120 "Партнер Нефть" [16:05:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:05:23]line СНО: Общий режим [16:05:23]line Чек 74 18.06.2024 16:05 [16:05:23]line Смена: 323 ФФД: 1.0 [16:05:23]line ЗНМ: 0300000172 [16:05:24]line РНМ: 0000000000092786 [16:05:24]line Версия ККМ: 001 [16:05:24]line Платежная система: Бакай Банк [16:05:24]line ФМ: 0000000000875095 [16:05:24]line ФД: 34252 [16:05:24]line ФПД: 159391064545647 [16:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160523&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34252&fm=159391064545647&tin=02508201610067®Number=0000000000092786&sum=12500 [16:05:24]line 0 [16:05:24]OFD Sender: Processing packet 34252 [packets to send 8, broken 7] [16:05:24]ProducePacketName [16:05:24]name=ofd_packets/00034252 [16:05:24]OFD Sender: To server: pG, [16:05:24]CommunicateWithHost lk.salyk.kg:30040 [16:05:24]ConnectInit lk.salyk.kg [16:05:24]written 0, free lines is 4095 [16:05:24]Connected sock=10 [16:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 2B A9 26 01 5D 3D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 43 B0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CC 85 00 00 35 04 06 00 90 F7 1F C8 59 6F 0E FB 30 BB 98 5D 54 C3 [16:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D2 CC 47 00 4F 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CC 85 00 00 F4 03 04 00 12 57 71 66 B6 04 01 00 00 2B 07 1A A7 91 39 79 1E [16:05:24]CommunicateWithHost err = 0 [16:05:24]CheckOFDResponse [16:05:24]1017 (14) - 77093643461234 [16:05:24]1041 (16) - 0000000000875095 [16:05:24]1040 (4) - 34252 [16:05:24]1012 (4) - 18.06.2024 09:44 [16:05:24]1206 (1) - 0 [16:05:24]OFD Sender: Remove packet 34252 [16:05:24]ProducePacketName [16:05:24]name=ofd_packets/00034252 [16:05:24]NVStorageDeleteData [16:05:24]Write to MH i2c: 01 00 00 E9 06 EF [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: 01 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: 01 07 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 DA 0C DC [16:05:24]RasterBufferAndPrint [16:05:24]line [16:05:24]line [16:05:24]line [16:05:24]line [16:05:24]line [16:05:24]written 0, free lines is 3298 [16:05:24]MH_Cut [16:05:24]Write to MH i2c: D1 01 00 F0 06 01 C8 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: D1 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: D1 01 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: D1 01 00 F0 06 00 C7 [16:05:24]Write to MH i2c: 01 00 00 F1 06 F7 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:25]OFD Sender: No OFD packet to send [16:05:25]*** Cut start [16:05:25]*** Partial cut [16:05:25]*** CUTSNS_PIN = 1 [16:05:25]*** CUTSNS_PIN = 0 [16:05:25]*** Brake cut motor [16:05:26]Read from MH i2c: 01 [16:05:26]MH_I2C_Read... [16:05:26]*** Stop cut motor [16:05:26]*** Cut end [16:05:26]Read from MH i2c: 01 07 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 FF 0F 0C [16:05:26]process_action close_receipt done [16:05:26]requested_data is exist [16:05:26]produce_requested_data [16:05:26]requested_item fm.sn is exist - process it [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 11 00 00 [16:05:26]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 17 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C7 [16:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:05:26]wFMCommunicate OK [16:05:26]requested_item fd.num is exist - process it [16:05:26]SAM_PROTO_GetFieldsCounters [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 13 00 00 [16:05:26]Write to MH i2c: E2 08 00 F3 06 80 13 00 00 00 00 00 00 75 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 62 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 62 00 F3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CC 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CC 85 00 00 0E 04 04 00 43 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 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_GetFieldsCounters done [16:05:26]requested_item shift.num is exist - process it [16:05:26]requested_item shift.opened is exist - process it [16:05:26]req_shift_opened [16:05:26]FM_GetShiftState [16:05:26]SAM_PROTO_GetShiftState [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 13 01 00 [16:05:26]Write to MH i2c: E2 08 00 F4 06 80 13 01 00 00 00 00 00 77 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0E 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0E 00 F4 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 C2 [16:05:26]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_GetShiftState done [16:05:26]FM_GetShiftState done [16:05:26]req_shift_opened done [16:05:26]requested_item shift.open_date is exist - process it [16:05:26]req_shift_open_date [16:05:26]req_shift_open_date done [16:05:26]produce_requested_data done [16:05:26]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34252,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:05:26]process_action_free close_receipt [16:05:26]json_value_free [16:05:26]json_value_free done [16:05:26]process_json_proto returns [16:05:26]Send response to host [16:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34252,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:05:26]free response buf [16:05:26]execute_script done [16:05:26]execute_script returns [16:05:26]free content buf [16:05:26]Sock 9.Close socket [16:05:26]Sock 9.Thread stoped [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:38]accept exits with 7 [16:09:38]New connection [16:09:38]New thread 3067567460 created [16:09:38]Thread 3067424100 joined [16:09:38]Waiting for new connection... [16:09:38] Sock 7.Parse request [16:09:38]Sock 7.Check first char [16:09:38]Sock 7.First char is OK [16:09:38]request: POST /json_proto HTTP/1.0 [16:09:38]Method: POST [16:09:38]URL: /json_proto [16:09:38]Method is POST - this is cgi request [16:09:38]url: /json_proto [16:09:38]query_string will be loaded in cgi processing [16:09:38]execute_cgi json_proto POST (null) [16:09:38]execute_cgi path=json_proto method=POST [16:09:38]POST find Content-Length [16:09:38]Host: 172.17.38.134:8080 [16:09:38]Content-Length: 810 [16:09:38]Content-Type: application/json [16:09:38] [16:09:38]POST finish read [16:09:38]Found Content-Length = 810 [16:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184042", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:38]execute_script... [16:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184042", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:38]POST & json_proto [16:09:38]process_json_proto [16:09:38]json parsed OK: [16:09:38]protocol is kg_v1.0 [16:09:38]action value=close_receipt [16:09:38]process_action close_receipt [16:09:38]cmd_close_receipt [16:09:38]MH_GetDate [16:09:38]Write to MH i2c: F0 00 00 F5 06 EA [16:09:38]Write i2c OK [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: F0 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: F0 09 00 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: F0 09 00 F5 06 00 42 B1 71 66 13 9C 7C 64 4C [16:09:38]GetLastDocTimeStamp 1718726723 [16:09:38]current date 1718726978 [16:09:38]FM_GetShiftState [16:09:38]SAM_PROTO_GetShiftState [16:09:38]wFMCommunicate request_size=4 [16:09:38]MH_SAM_APDU [16:09:38]CAPDU: 80 13 01 00 [16:09:38]Write to MH i2c: E2 08 00 F6 06 80 13 01 00 00 00 00 00 79 [16:09:38]Write i2c OK [16:09:38]MH_I2C_Read... [16:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:38]Read from MH i2c: E2 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: E2 0E 00 [16:09:38]MH_I2C_Read... [16:09:38]Read from MH i2c: E2 0E 00 F6 06 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 C4 [16:09:38]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:09:38]wFMCommunicate OK [16:09:38]SAM_PROTO_GetShiftState done [16:09:38]FM_GetShiftState done [16:09:38]opened in 1718670230 [16:09:38]opened+sec_in_day 1718756630 [16:09:38]quantity*price = 8500 [16:09:38]sum+1 = 8501 [16:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 75 18.06.2024 16:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34253 ФПД: 190779090376342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160939&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34253&fm=190779090376342&tin=02508201610067®Number=0000000000092786&sum=8500 0 [16:09:39]StoreToDocumentArchive [16:09:39]shift 323 fd 34253 [16:09:39]save to /storage/0323/doc_00034253 [16:09:39]save last doc name /storage/0323/doc_00034253 to /storage/kkm_last_doc_name [16:09:39]save OK [16:09:39]Clear old archive folders... [16:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:09:39]tlvbuf is 018F9320 [16:09:39]SAM_PROTO_ClearQueue [16:09:39]wFMCommunicate request_size=4 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 09 00 00 [16:09:39]Write to MH i2c: E2 08 00 03 07 80 09 00 00 00 00 00 00 7C [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [16:09:39]RAPDU: 90 00 [16:09:39]wFMCommunicate OK [16:09:39]SAM_PROTO_ClearQueue done [16:09:39]KKMCreateOFDPacket [16:09:39]OFDProtocolAddRootSTLVToBuf [16:09:39]FM_MakeSignedData [16:09:39]FM_MakeSignedData [16:09:39]SAM_PROTO_SignData [16:09:39]wFMCommunicate request_size=4 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 0D 01 02 [16:09:39]Write to MH i2c: E2 08 00 04 07 80 0D 01 02 00 00 00 00 84 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [16:09:39]RAPDU: 90 00 [16:09:39]wFMCommunicate OK [16:09:39]wFMCommunicate request_size=255 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 43 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [16:09:39]Write to MH i2c: E2 02 01 05 07 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 43 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 C1 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [16:09:39]RAPDU: 90 00 [16:09:39]wFMCommunicate OK [16:09:39]wFMCommunicate request_size=39 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CD 85 00 00 35 04 06 00 AD 83 37 E9 96 96 [16:09:39]Write to MH i2c: E2 2A 00 06 07 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CD 85 00 00 35 04 06 00 AD 83 37 E9 96 96 00 00 12 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [16:09:39]RAPDU: 90 00 [16:09:39]wFMCommunicate OK [16:09:39]wFMCommunicate request_size=4 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 0D 03 02 [16:09:39]Write to MH i2c: E2 08 00 07 07 80 0D 03 02 00 00 00 00 89 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 0B 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 0B 00 07 07 00 D2 60 06 E4 49 FD 4E CE 90 00 08 [16:09:39]RAPDU: D2 60 06 E4 49 FD 4E CE 90 00 [16:09:39]wFMCommunicate OK [16:09:39]SAM_PROTO_SignData done [16:09:39]FM_MakeSignedData done [16:09:39]CreateOFDProtocolMessage [16:09:39]wFMCommunicate request_size=4 [16:09:39]MH_SAM_APDU [16:09:39]CAPDU: 80 11 00 00 [16:09:39]Write to MH i2c: E2 08 00 08 07 80 11 00 00 00 00 00 00 89 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:39]Read from MH i2c: E2 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 17 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: E2 17 00 08 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 DE [16:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:09:39]wFMCommunicate OK [16:09:39]CreateOFDProtocolMessage done [16:09:39]OFDSenderStorePacket 34253 [16:09:39]StoreOFDPacket docnum=34253 [16:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 48 C8 24 01 58 F3 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 43 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CD 85 00 00 35 04 06 00 AD 83 37 E9 96 96 D2 60 06 E4 49 FD 4E CE [16:09:39]CheckFolder [16:09:39]dirname=/storage/ofd_packets [16:09:39]CheckFolder done [16:09:39]ProducePacketName [16:09:39]name=ofd_packets/00034253 [16:09:39]NVStorageSaveData ofd_packets/00034253 [16:09:39]File name is /storage/ofd_packets/00034253 [16:09:39]Write 330 bytes [16:09:39]NVStorageSaveData done [16:09:39]OFDSenderStorePacket done [16:09:39]KKMCreateOFDPacket done [16:09:39]NVStorageSaveData kkm_last_timestamp [16:09:39]File name is /storage/kkm_last_timestamp [16:09:39]Write 4 bytes [16:09:39]NVStorageSaveData done [16:09:39]ExternCall_PrintAddStr [16:09:39]wPrintStart [16:09:39]Write to MH i2c: 01 00 00 09 07 10 [16:09:39]Write i2c OK [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: 01 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: 01 07 00 [16:09:39]MH_I2C_Read... [16:09:39]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 FF 0F 25 [16:09:39]RasterBufferAndPrint [16:09:39]line Счет N : (3)184042 [16:09:39]line ИНН: 02508201610067 [16:09:39]line Контрольно-Кассовый Чек [16:09:39]line ПРОДАЖА [16:09:39]line Товар: 4870227272957 [16:09:39]line Лимонад Sunbel Тархун 1л [16:09:39]line 1.000 * 85.00 [16:09:39]line = 85.00 [16:09:39]line НДС 12% НСП 1% [16:09:39]line > о реализуемом товаре [16:09:39]line ИТОГО: 85.00 [16:09:39]line НСП 1% : 0.75 [16:09:39]line НДС 12% : 9.03 [16:09:39]line Наличными: 0.00 [16:09:39]line Безнал.: 85.00 [16:09:39]line Место: АЗС № 120 "Партнер Нефть" [16:09:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:09:39]line СНО: Общий режим [16:09:39]line Чек 75 18.06.2024 16:09 [16:09:39]line Смена: 323 ФФД: 1.0 [16:09:39]line ЗНМ: 0300000172 [16:09:39]line РНМ: 0000000000092786 [16:09:39]line Версия ККМ: 001 [16:09:39]line Платежная система: O! деньги [16:09:39]line ФМ: 0000000000875095 [16:09:39]line ФД: 34253 [16:09:39]line ФПД: 190779090376342 [16:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T160939&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34253&fm=190779090376342&tin=02508201610067®Number=0000000000092786&sum=8500 [16:09:40]line 0 [16:09:40]OFD Sender: Processing packet 34253 [packets to send 8, broken 7] [16:09:40]ProducePacketName [16:09:40]name=ofd_packets/00034253 [16:09:40]OFD Sender: To server: pG, [16:09:40]CommunicateWithHost lk.salyk.kg:30040 [16:09:40]ConnectInit lk.salyk.kg [16:09:40]written 0, free lines is 4095 [16:09:40]Connected sock=10 [16:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 48 C8 24 01 58 F3 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 43 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CD 85 00 00 35 04 06 00 AD 83 37 E9 96 96 D2 60 06 E4 49 FD 4E CE [16:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F2 79 47 00 F0 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CD 85 00 00 F4 03 04 00 12 58 71 66 B6 04 01 00 00 D8 C8 14 6C 73 1D DE 03 [16:09:40]CommunicateWithHost err = 0 [16:09:40]CheckOFDResponse [16:09:40]1017 (14) - 77093643461234 [16:09:40]1041 (16) - 0000000000875095 [16:09:40]1040 (4) - 34253 [16:09:40]1012 (4) - 18.06.2024 09:49 [16:09:40]1206 (1) - 0 [16:09:40]OFD Sender: Remove packet 34253 [16:09:40]ProducePacketName [16:09:40]name=ofd_packets/00034253 [16:09:40]NVStorageDeleteData [16:09:40]Write to MH i2c: 01 00 00 33 07 3A [16:09:40]Write i2c OK [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: 01 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: 01 07 00 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 E3 0C 30 [16:09:40]RasterBufferAndPrint [16:09:40]line [16:09:40]line [16:09:40]line [16:09:40]line [16:09:40]line [16:09:40]written 0, free lines is 3305 [16:09:40]MH_Cut [16:09:40]Write to MH i2c: D1 01 00 3A 07 01 13 [16:09:40]Write i2c OK [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: D1 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: D1 01 00 [16:09:40]MH_I2C_Read... [16:09:40]Read from MH i2c: D1 01 00 3A 07 00 12 [16:09:40]Write to MH i2c: 01 00 00 3B 07 42 [16:09:40]Write i2c OK [16:09:40]MH_I2C_Read... [16:09:41]OFD Sender: No OFD packet to send [16:09:41]*** Cut start [16:09:41]*** Partial cut [16:09:41]*** CUTSNS_PIN = 1 [16:09:41]*** CUTSNS_PIN = 0 [16:09:41]*** Brake cut motor [16:09:42]Read from MH i2c: 01 [16:09:42]MH_I2C_Read... [16:09:42]*** Stop cut motor [16:09:42]*** Cut end [16:09:42]Read from MH i2c: 01 07 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [16:09:42]process_action close_receipt done [16:09:42]requested_data is exist [16:09:42]produce_requested_data [16:09:42]requested_item fm.sn is exist - process it [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 11 00 00 [16:09:42]Write to MH i2c: E2 08 00 3C 07 80 11 00 00 00 00 00 00 BD [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:42]Read from MH i2c: E2 17 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 17 00 3C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 12 [16:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:09:42]wFMCommunicate OK [16:09:42]requested_item fd.num is exist - process it [16:09:42]SAM_PROTO_GetFieldsCounters [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 13 00 00 [16:09:42]Write to MH i2c: E2 08 00 3D 07 80 13 00 00 00 00 00 00 C0 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 62 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 62 00 3D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CD 85 00 00 0E 04 04 00 43 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 61 [16:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CD 85 00 00 0E 04 04 00 43 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 [16:09:42]wFMCommunicate OK [16:09:42]SAM_PROTO_GetFieldsCounters done [16:09:42]requested_item shift.num is exist - process it [16:09:42]requested_item shift.opened is exist - process it [16:09:42]req_shift_opened [16:09:42]FM_GetShiftState [16:09:42]SAM_PROTO_GetShiftState [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 13 01 00 [16:09:42]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 0E 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 0D [16:09:42]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:09:42]wFMCommunicate OK [16:09:42]SAM_PROTO_GetShiftState done [16:09:42]FM_GetShiftState done [16:09:42]req_shift_opened done [16:09:42]requested_item shift.open_date is exist - process it [16:09:42]req_shift_open_date [16:09:42]req_shift_open_date done [16:09:42]produce_requested_data done [16:09:42]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34253,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:09:42]process_action_free close_receipt [16:09:42]json_value_free [16:09:42]json_value_free done [16:09:42]process_json_proto returns [16:09:42]Send response to host [16:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34253,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:09:42]free response buf [16:09:42]execute_script done [16:09:42]execute_script returns [16:09:42]free content buf [16:09:42]Sock 7.Close socket [16:09:42]Sock 7.Thread stoped [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:26]accept exits with 9 [16:10:26]New connection [16:10:26]New thread 3067424100 created [16:10:26]Thread 3067567460 joined [16:10:26]Waiting for new connection... [16:10:26] Sock 9.Parse request [16:10:26]Sock 9.Check first char [16:10:26]Sock 9.First char is OK [16:10:26]request: POST /json_proto HTTP/1.0 [16:10:26]Method: POST [16:10:26]URL: /json_proto [16:10:26]Method is POST - this is cgi request [16:10:26]url: /json_proto [16:10:26]query_string will be loaded in cgi processing [16:10:26]execute_cgi json_proto POST (null) [16:10:26]execute_cgi path=json_proto method=POST [16:10:26]POST find Content-Length [16:10:26]Host: 172.17.38.134:8080 [16:10:26]Content-Length: 800 [16:10:26]Content-Type: application/json [16:10:26] [16:10:26]POST finish read [16:10:26]Found Content-Length = 800 [16:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.750, "sum" : 315.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 315.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:26]execute_script... [16:10:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.750, "sum" : 315.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 315.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:26]POST & json_proto [16:10:26]process_json_proto [16:10:26]json parsed OK: [16:10:26]protocol is kg_v1.0 [16:10:26]action value=close_receipt [16:10:26]process_action close_receipt [16:10:26]cmd_close_receipt [16:10:26]MH_GetDate [16:10:26]Write to MH i2c: F0 00 00 3F 07 35 [16:10:26]Write i2c OK [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: F0 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: F0 09 00 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: F0 09 00 3F 07 00 73 B1 71 66 13 9C 7C 64 C8 [16:10:26]GetLastDocTimeStamp 1718726979 [16:10:26]current date 1718727027 [16:10:26]FM_GetShiftState [16:10:26]SAM_PROTO_GetShiftState [16:10:26]wFMCommunicate request_size=4 [16:10:26]MH_SAM_APDU [16:10:26]CAPDU: 80 13 01 00 [16:10:26]Write to MH i2c: E2 08 00 40 07 80 13 01 00 00 00 00 00 C4 [16:10:26]Write i2c OK [16:10:26]MH_I2C_Read... [16:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:26]Read from MH i2c: E2 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: E2 0E 00 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: E2 0E 00 40 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 0F [16:10:26]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:10:26]wFMCommunicate OK [16:10:26]SAM_PROTO_GetShiftState done [16:10:26]FM_GetShiftState done [16:10:26]opened in 1718670230 [16:10:26]opened+sec_in_day 1718756630 [16:10:26]quantity*price = 31540 [16:10:26]sum+1 = 31541 [16:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 315.40 НСП 1% : 2.79 НДС 12% : 33.49 Наличными: 0.00 Безнал.: 315.40 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 76 18.06.2024 16:10 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34254 ФПД: 20296186174968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T161027&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34254&fm=20296186174968&tin=02508201610067®Number=0000000000092786&sum=31540 [16:10:28]StoreToDocumentArchive [16:10:28]shift 323 fd 34254 [16:10:28]save to /storage/0323/doc_00034254 [16:10:28]save last doc name /storage/0323/doc_00034254 to /storage/kkm_last_doc_name [16:10:28]save OK [16:10:28]Clear old archive folders... [16:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:28]tlvbuf is 0192FD20 [16:10:28]SAM_PROTO_ClearQueue [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 09 00 00 [16:10:28]Write to MH i2c: E2 08 00 4D 07 80 09 00 00 00 00 00 00 C6 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]SAM_PROTO_ClearQueue done [16:10:28]KKMCreateOFDPacket [16:10:28]OFDProtocolAddRootSTLVToBuf [16:10:28]FM_MakeSignedData [16:10:28]FM_MakeSignedData [16:10:28]SAM_PROTO_SignData [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 01 02 [16:10:28]Write to MH i2c: E2 08 00 4E 07 80 0D 01 02 00 00 00 00 CE [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=255 [16:10:28]MH_SAM_APDU [16:10: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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 73 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CE 85 00 00 35 04 06 00 12 [16:10:28]Write to MH i2c: E2 02 01 4F 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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 73 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CE 85 00 00 35 04 06 00 12 00 00 C1 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=10 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 02 02 05 75 92 F7 9D F8 [16:10:28]Write to MH i2c: E2 0D 00 50 07 80 0D 02 02 05 00 75 92 F7 9D F8 00 00 6E [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 03 02 [16:10:28]Write to MH i2c: E2 08 00 51 07 80 0D 03 02 00 00 00 00 D3 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 0B 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 0B 00 51 07 00 71 E7 CD E7 92 BA 87 A3 90 00 56 [16:10:28]RAPDU: 71 E7 CD E7 92 BA 87 A3 90 00 [16:10:28]wFMCommunicate OK [16:10:28]SAM_PROTO_SignData done [16:10:28]FM_MakeSignedData done [16:10:28]CreateOFDProtocolMessage [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 11 00 00 [16:10:28]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 17 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 28 [16:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:10:28]wFMCommunicate OK [16:10:28]CreateOFDProtocolMessage done [16:10:28]OFDSenderStorePacket 34254 [16:10:28]StoreOFDPacket docnum=34254 [16:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 1A 94 07 01 C9 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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 73 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CE 85 00 00 35 04 06 00 12 75 92 F7 9D F8 71 E7 CD E7 92 BA 87 A3 [16:10:28]CheckFolder [16:10:28]dirname=/storage/ofd_packets [16:10:28]CheckFolder done [16:10:28]ProducePacketName [16:10:28]name=ofd_packets/00034254 [16:10:28]NVStorageSaveData ofd_packets/00034254 [16:10:28]File name is /storage/ofd_packets/00034254 [16:10:28]Write 301 bytes [16:10:28]NVStorageSaveData done [16:10:28]OFDSenderStorePacket done [16:10:28]KKMCreateOFDPacket done [16:10:28]NVStorageSaveData kkm_last_timestamp [16:10:28]File name is /storage/kkm_last_timestamp [16:10:28]Write 4 bytes [16:10:28]NVStorageSaveData done [16:10:28]ExternCall_PrintAddStr [16:10:28]wPrintStart [16:10:28]Write to MH i2c: 01 00 00 53 07 5A [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 07 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [16:10:28]RasterBufferAndPrint [16:10:28]line Счет N : (1)672651 [16:10:28]line ИНН: 02508201610067 [16:10:28]line Контрольно-Кассовый Чек [16:10:28]line ПРОДАЖА [16:10:28]line ТРК (МРК, ГНК) : 32 [16:10:28]line Товар: 2710124130 [16:10:28]line Аи-92-К-5 [16:10:28]line 4.750 * 66.40 [16:10:28]line = 315.40 [16:10:28]line НДС 12% НСП 1% [16:10:28]line > о реализуемом товаре [16:10:28]line ИТОГО: 315.40 [16:10:28]line НСП 1% : 2.79 [16:10:28]line НДС 12% : 33.49 [16:10:28]line Наличными: 0.00 [16:10:28]line Безнал.: 315.40 [16:10:28]line Место: АЗС № 120 "Партнер Нефть" [16:10:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:10:28]line СНО: Общий режим [16:10:28]line Чек 76 18.06.2024 16:10 [16:10:28]line Смена: 323 ФФД: 1.0 [16:10:28]line ЗНМ: 0300000172 [16:10:28]line РНМ: 0000000000092786 [16:10:28]line Версия ККМ: 001 [16:10:28]line Платежная система: O! деньги [16:10:28]line ФМ: 0000000000875095 [16:10:28]line ФД: 34254 [16:10:28]line ФПД: 20296186174968 [16:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T161027&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34254&fm=20296186174968&tin=02508201610067®Number=0000000000092786&sum=31540 [16:10:28]OFD Sender: Processing packet 34254 [packets to send 8, broken 7] [16:10:28]ProducePacketName [16:10:28]name=ofd_packets/00034254 [16:10:28]OFD Sender: To server: pG, [16:10:28]CommunicateWithHost lk.salyk.kg:30040 [16:10:28]ConnectInit lk.salyk.kg [16:10:28]written 0, free lines is 4095 [16:10:29]Connected sock=10 [16:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 1A 94 07 01 C9 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 8E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 73 B1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CE 85 00 00 35 04 06 00 12 75 92 F7 9D F8 71 E7 CD E7 92 BA 87 A3 [16:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 02 91 47 00 5A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CE 85 00 00 F4 03 04 00 43 58 71 66 B6 04 01 00 00 BB 1E 8D BB 28 C8 59 29 [16:10:29]CommunicateWithHost err = 0 [16:10:29]CheckOFDResponse [16:10:29]1017 (14) - 77093643461234 [16:10:29]1041 (16) - 0000000000875095 [16:10:29]1040 (4) - 34254 [16:10:29]1012 (4) - 18.06.2024 09:49 [16:10:29]1206 (1) - 0 [16:10:29]OFD Sender: Remove packet 34254 [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00034254 [16:10:29]NVStorageDeleteData [16:10:29]Write to MH i2c: 01 00 00 7D 07 84 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 E7 0C 7E [16:10:29]RasterBufferAndPrint [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]line [16:10:29]written 0, free lines is 3310 [16:10:29]MH_Cut [16:10:29]Write to MH i2c: D1 01 00 84 07 01 5D [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 01 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: D1 01 00 84 07 00 5C [16:10:29]Write to MH i2c: 01 00 00 85 07 8C [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]OFD Sender: No OFD packet to send [16:10:30]*** Cut start [16:10:30]*** Partial cut [16:10:30]*** CUTSNS_PIN = 1 [16:10:30]*** CUTSNS_PIN = 0 [16:10:30]*** Brake cut motor [16:10:30]Read from MH i2c: 01 [16:10:30]MH_I2C_Read... [16:10:30]*** Stop cut motor [16:10:30]*** Cut end [16:10:30]Read from MH i2c: 01 07 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 FF 0F A1 [16:10:30]process_action close_receipt done [16:10:30]requested_data is exist [16:10:30]produce_requested_data [16:10:30]requested_item fm.sn is exist - process it [16:10:30]wFMCommunicate request_size=4 [16:10:30]MH_SAM_APDU [16:10:30]CAPDU: 80 11 00 00 [16:10:30]Write to MH i2c: E2 08 00 86 07 80 11 00 00 00 00 00 00 07 [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:30]Read from MH i2c: E2 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 17 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 17 00 86 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 5C [16:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:10:30]wFMCommunicate OK [16:10:30]requested_item fd.num is exist - process it [16:10:30]SAM_PROTO_GetFieldsCounters [16:10:30]wFMCommunicate request_size=4 [16:10:30]MH_SAM_APDU [16:10:30]CAPDU: 80 13 00 00 [16:10:30]Write to MH i2c: E2 08 00 87 07 80 13 00 00 00 00 00 00 0A [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:30]Read from MH i2c: E2 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 62 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 62 00 87 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CE 85 00 00 0E 04 04 00 43 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 AF [16:10:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CE 85 00 00 0E 04 04 00 43 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 [16:10:30]wFMCommunicate OK [16:10:30]SAM_PROTO_GetFieldsCounters done [16:10:30]requested_item shift.num is exist - process it [16:10:30]requested_item shift.opened is exist - process it [16:10:30]req_shift_opened [16:10:30]FM_GetShiftState [16:10:30]SAM_PROTO_GetShiftState [16:10:30]wFMCommunicate request_size=4 [16:10:30]MH_SAM_APDU [16:10:30]CAPDU: 80 13 01 00 [16:10:30]Write to MH i2c: E2 08 00 88 07 80 13 01 00 00 00 00 00 0C [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:30]Read from MH i2c: E2 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 0E 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: E2 0E 00 88 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 57 [16:10:30]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:10:30]wFMCommunicate OK [16:10:30]SAM_PROTO_GetShiftState done [16:10:30]FM_GetShiftState done [16:10:30]req_shift_opened done [16:10:30]requested_item shift.open_date is exist - process it [16:10:30]req_shift_open_date [16:10:30]req_shift_open_date done [16:10:30]produce_requested_data done [16:10:30]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34254,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:10:30]process_action_free close_receipt [16:10:30]json_value_free [16:10:30]json_value_free done [16:10:30]process_json_proto returns [16:10:30]Send response to host [16:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34254,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:10:30]free response buf [16:10:30]execute_script done [16:10:30]execute_script returns [16:10:30]free content buf [16:10:30]Sock 9.Close socket [16:10:30]Sock 9.Thread stoped [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:32]int [16:15:32]Write to MH i2c: 01 00 00 89 07 90 [16:15:32]*** FLAG_PRN_PAP2 set [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 07 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 07 00 89 07 00 02 00 00 00 FF 0F A7 [16:15:32]state=0 [16:15:32]Cover opened [16:15:35]OFD Sender: No OFD packet to send [16:15:37]Write to MH i2c: 01 00 00 8A 07 91 [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 07 00 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: 01 07 00 8A 07 00 02 00 00 00 FF 0F A8 [16:15:37]state=3 [16:15:37]Cover opened [16:15:40]OFD Sender: No OFD packet to send [16:15:42]Write to MH i2c: 01 00 00 8B 07 92 [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: 01 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: 01 07 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: 01 07 00 8B 07 00 02 00 00 00 FF 0F A9 [16:15:42]state=3 [16:15:42]Cover opened [16:15:45]OFD Sender: No OFD packet to send [16:15:47]Write to MH i2c: 01 00 00 8C 07 93 [16:15:47]Write i2c OK [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 07 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 07 00 8C 07 00 02 00 00 00 FF 0F AA [16:15:47]state=3 [16:15:47]Cover opened [16:15:50]OFD Sender: No OFD packet to send [16:15:52]Write to MH i2c: 01 00 00 8D 07 94 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: 01 07 00 8D 07 00 02 00 00 00 FF 0F AB [16:15:52]state=3 [16:15:52]Cover opened [16:15:55]OFD Sender: No OFD packet to send [16:15:57]Write to MH i2c: 01 00 00 8E 07 95 [16:15:57]Write i2c OK [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 [16:15:57]MH_I2C_Read... [16:15:57]Read from MH i2c: 01 07 00 8E 07 00 02 00 00 00 FF 0F AC [16:15:57]state=3 [16:15:57]Cover opened [16:16:00]OFD Sender: No OFD packet to send [16:16:02]Write to MH i2c: 01 00 00 8F 07 96 [16:16:02]Write i2c OK [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 [16:16:02]MH_I2C_Read... [16:16:02]Read from MH i2c: 01 07 00 8F 07 00 02 00 00 00 FF 0F AD [16:16:02]state=3 [16:16:02]Cover opened [16:16:05]OFD Sender: No OFD packet to send [16:16:06]int [16:16:06]Write to MH i2c: 01 00 00 90 07 97 [16:16:06]*** FLAG_PRN_PAP2 reset [16:16:06]Write i2c OK [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: 01 [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: 01 07 00 [16:16:06]MH_I2C_Read... [16:16:06]Read from MH i2c: 01 07 00 90 07 00 00 00 00 00 FF 0F AC [16:16:06]state=3 [16:16:06]Cover closed [16:16:07]int [16:16:07]Write to MH i2c: 01 00 00 91 07 98 [16:16:07]*** FLAG_PRN_KEY set [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 91 07 00 08 00 00 00 FF 0F B5 [16:16:07]state=0 [16:16:07]Key pressed [16:16:07]Feed [16:16:07]Write to MH i2c: D8 00 00 92 07 70 [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: D8 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: D8 01 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: D8 01 00 92 07 00 71 [16:16:07]int [16:16:07]Write to MH i2c: 01 00 00 93 07 9A [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 93 07 00 48 00 00 00 3C 00 25 [16:16:07]state=2 [16:16:07]Key pressed [16:16:07]int [16:16:07]Write to MH i2c: 01 00 00 94 07 9B [16:16:07]*** FLAG_PRN_KEY reset [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 F6 0F A7 [16:16:07]state=2 [16:16:07]Stop feed [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:49]accept exits with 7 [16:25:49]New connection [16:25:49]New thread 3067567460 created [16:25:49]Thread 3067424100 joined [16:25:49]Waiting for new connection... [16:25:49] Sock 7.Parse request [16:25:49]Sock 7.Check first char [16:25:49]Sock 7.First char is OK [16:25:49]request: POST /json_proto HTTP/1.0 [16:25:49]Method: POST [16:25:49]URL: /json_proto [16:25:49]Method is POST - this is cgi request [16:25:49]url: /json_proto [16:25:49]query_string will be loaded in cgi processing [16:25:49]execute_cgi json_proto POST (null) [16:25:49]execute_cgi path=json_proto method=POST [16:25:49]POST find Content-Length [16:25:49]Host: 172.17.38.134:8080 [16:25:49]Content-Length: 677 [16:25:49]Content-Type: application/json [16:25:49] [16:25:49]POST finish read [16:25:49]Found Content-Length = 677 [16:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:49]execute_script... [16:25: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)672658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:49]POST & json_proto [16:25:49]process_json_proto [16:25:49]json parsed OK: [16:25:49]protocol is kg_v1.0 [16:25:49]action value=close_receipt [16:25:49]process_action close_receipt [16:25:49]cmd_close_receipt [16:25:49]MH_GetDate [16:25:49]Write to MH i2c: F0 00 00 95 07 8B [16:25:49]Write i2c OK [16:25:49]MH_I2C_Read... [16:25:49]Read from MH i2c: F0 [16:25:49]MH_I2C_Read... [16:25:49]Read from MH i2c: F0 09 00 [16:25:49]MH_I2C_Read... [16:25:49]Read from MH i2c: F0 09 00 95 07 00 0E B5 71 66 13 9C 7C 64 BD [16:25:49]GetLastDocTimeStamp 1718727027 [16:25:49]current date 1718727950 [16:25:49]FM_GetShiftState [16:25:49]SAM_PROTO_GetShiftState [16:25:49]wFMCommunicate request_size=4 [16:25:49]MH_SAM_APDU [16:25:49]CAPDU: 80 13 01 00 [16:25:49]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [16:25:49]Write i2c OK [16:25:49]MH_I2C_Read... [16:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:49]Read from MH i2c: E2 [16:25:49]MH_I2C_Read... [16:25:49]Read from MH i2c: E2 0E 00 [16:25:49]MH_I2C_Read... [16:25:49]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 65 [16:25:49]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:25:49]wFMCommunicate OK [16:25:49]SAM_PROTO_GetShiftState done [16:25:49]FM_GetShiftState done [16:25:49]opened in 1718670230 [16:25:49]opened+sec_in_day 1718756630 [16:25:49]quantity*price = 50065 [16:25:49]sum+1 = 50067 [16:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 18.06.2024 16:25 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34255 ФПД: 246124061796927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162550&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34255&fm=246124061796927&tin=02508201610067®Number=0000000000092786&sum=50000 [16:25:50]StoreToDocumentArchive [16:25:50]shift 323 fd 34255 [16:25:50]save to /storage/0323/doc_00034255 [16:25:50]save last doc name /storage/0323/doc_00034255 to /storage/kkm_last_doc_name [16:25:50]save OK [16:25:50]Clear old archive folders... [16:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:50]tlvbuf is 0191AF00 [16:25:50]SAM_PROTO_ClearQueue [16:25:50]wFMCommunicate request_size=4 [16:25:50]MH_SAM_APDU [16:25:50]CAPDU: 80 09 00 00 [16:25:50]Write to MH i2c: E2 08 00 A3 07 80 09 00 00 00 00 00 00 1C [16:25:50]Write i2c OK [16:25:50]MH_I2C_Read... [16:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:50]Read from MH i2c: E2 [16:25:50]MH_I2C_Read... [16:25:50]Read from MH i2c: E2 03 00 [16:25:50]MH_I2C_Read... [16:25:50]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [16:25:50]RAPDU: 90 00 [16:25:50]wFMCommunicate OK [16:25:50]SAM_PROTO_ClearQueue done [16:25:50]KKMCreateOFDPacket [16:25:50]OFDProtocolAddRootSTLVToBuf [16:25:50]FM_MakeSignedData [16:25:50]FM_MakeSignedData [16:25:50]SAM_PROTO_SignData [16:25:50]wFMCommunicate request_size=4 [16:25:50]MH_SAM_APDU [16:25:50]CAPDU: 80 0D 01 02 [16:25:50]Write to MH i2c: E2 08 00 A4 07 80 0D 01 02 00 00 00 00 24 [16:25:50]Write i2c OK [16:25:50]MH_I2C_Read... [16:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:50]Read from MH i2c: E2 [16:25:50]MH_I2C_Read... [16:25:50]Read from MH i2c: E2 03 00 [16:25:50]MH_I2C_Read... [16:25:50]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [16:25:50]RAPDU: 90 00 [16:25:50]wFMCommunicate OK [16:25:50]wFMCommunicate request_size=255 [16:25:50]MH_SAM_APDU [16:25: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 0E B5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CF 85 00 00 35 04 06 00 DF [16:25:50]Write to MH i2c: E2 02 01 A5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 0E B5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CF 85 00 00 35 04 06 00 DF 00 00 3F [16:25:50]Write i2c OK [16:25:50]MH_I2C_Read... [16:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:50]Read from MH i2c: E2 [16:25:50]MH_I2C_Read... [16:25:50]Read from MH i2c: E2 03 00 [16:25:50]MH_I2C_Read... [16:25:50]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [16:25:50]RAPDU: 90 00 [16:25:50]wFMCommunicate OK [16:25:50]wFMCommunicate request_size=10 [16:25:50]MH_SAM_APDU [16:25:50]CAPDU: 80 0D 02 02 05 D9 39 46 2A 3F [16:25:50]Write to MH i2c: E2 0D 00 A6 07 80 0D 02 02 05 00 D9 39 46 2A 3F 00 00 F2 [16:25:50]Write i2c OK [16:25:50]MH_I2C_Read... [16:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:51]Read from MH i2c: E2 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: E2 03 00 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [16:25:51]RAPDU: 90 00 [16:25:51]wFMCommunicate OK [16:25:51]wFMCommunicate request_size=4 [16:25:51]MH_SAM_APDU [16:25:51]CAPDU: 80 0D 03 02 [16:25:51]Write to MH i2c: E2 08 00 A7 07 80 0D 03 02 00 00 00 00 29 [16:25:51]Write i2c OK [16:25:51]MH_I2C_Read... [16:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:51]Read from MH i2c: E2 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: E2 0B 00 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: E2 0B 00 A7 07 00 EB 7F 95 0E 18 C6 CD CB 90 00 AD [16:25:51]RAPDU: EB 7F 95 0E 18 C6 CD CB 90 00 [16:25:51]wFMCommunicate OK [16:25:51]SAM_PROTO_SignData done [16:25:51]FM_MakeSignedData done [16:25:51]CreateOFDProtocolMessage [16:25:51]wFMCommunicate request_size=4 [16:25:51]MH_SAM_APDU [16:25:51]CAPDU: 80 11 00 00 [16:25:51]Write to MH i2c: E2 08 00 A8 07 80 11 00 00 00 00 00 00 29 [16:25:51]Write i2c OK [16:25:51]MH_I2C_Read... [16:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:51]Read from MH i2c: E2 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: E2 17 00 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: E2 17 00 A8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7E [16:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:51]wFMCommunicate OK [16:25:51]CreateOFDProtocolMessage done [16:25:51]OFDSenderStorePacket 34255 [16:25:51]StoreOFDPacket docnum=34255 [16:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 72 78 07 01 6D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 0E B5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CF 85 00 00 35 04 06 00 DF D9 39 46 2A 3F EB 7F 95 0E 18 C6 CD CB [16:25:51]CheckFolder [16:25:51]dirname=/storage/ofd_packets [16:25:51]CheckFolder done [16:25:51]ProducePacketName [16:25:51]name=ofd_packets/00034255 [16:25:51]NVStorageSaveData ofd_packets/00034255 [16:25:51]File name is /storage/ofd_packets/00034255 [16:25:51]Write 301 bytes [16:25:51]NVStorageSaveData done [16:25:51]OFDSenderStorePacket done [16:25:51]KKMCreateOFDPacket done [16:25:51]NVStorageSaveData kkm_last_timestamp [16:25:51]File name is /storage/kkm_last_timestamp [16:25:51]Write 4 bytes [16:25:51]NVStorageSaveData done [16:25:51]ExternCall_PrintAddStr [16:25:51]wPrintStart [16:25:51]Write to MH i2c: 01 00 00 A9 07 B0 [16:25:51]Write i2c OK [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: 01 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: 01 07 00 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [16:25:51]RasterBufferAndPrint [16:25:51]line Счет N : (1)672658 [16:25:51]line ИНН: 02508201610067 [16:25:51]line Контрольно-Кассовый Чек [16:25:51]line ПРОДАЖА [16:25:51]line ТРК (МРК, ГНК) : 32 [16:25:51]line Товар: 2710124130 [16:25:51]line Аи-92-К-5 [16:25:51]line 7.540 * 66.40 [16:25:51]line = 500.66 [16:25:51]line НДС 12% НСП 1% [16:25:51]line > о реализуемом товаре [16:25:51]line ОКРУГЛЕНИЕ: -0.66 [16:25:51]line ИТОГО: 500.00 [16:25:51]line Внесено: 500.00 [16:25:51]line СДАЧА: 0.00 [16:25:51]line НСП 1% : 4.43 [16:25:51]line НДС 12% : 53.17 [16:25:51]line Наличными: 500.00 [16:25:51]line Безнал.: 0.00 [16:25:51]line Место: АЗС № 120 "Партнер Нефть" [16:25:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:25:51]line СНО: Общий режим [16:25:51]line Чек 77 18.06.2024 16:25 [16:25:51]line Смена: 323 ФФД: 1.0 [16:25:51]line ЗНМ: 0300000172 [16:25:51]line РНМ: 0000000000092786 [16:25:51]line Версия ККМ: 001 [16:25:51]line ФМ: 0000000000875095 [16:25:51]line ФД: 34255 [16:25:51]line ФПД: 246124061796927 [16:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T162550&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34255&fm=246124061796927&tin=02508201610067®Number=0000000000092786&sum=50000 [16:25:51]OFD Sender: Processing packet 34255 [packets to send 8, broken 7] [16:25:51]ProducePacketName [16:25:51]name=ofd_packets/00034255 [16:25:51]OFD Sender: To server: pG, [16:25:51]CommunicateWithHost lk.salyk.kg:30040 [16:25:51]ConnectInit lk.salyk.kg [16:25:51]written 0, free lines is 4095 [16:25:51]Connected sock=10 [16:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 72 78 07 01 6D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 0E B5 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CF 85 00 00 35 04 06 00 DF D9 39 46 2A 3F EB 7F 95 0E 18 C6 CD CB [16:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 69 DE 47 00 64 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 CF 85 00 00 F4 03 04 00 DD 5B 71 66 B6 04 01 00 00 42 AF 12 71 47 B7 13 92 [16:25:51]CommunicateWithHost err = 0 [16:25:51]CheckOFDResponse [16:25:51]1017 (14) - 77093643461234 [16:25:51]1041 (16) - 0000000000875095 [16:25:51]1040 (4) - 34255 [16:25:51]1012 (4) - 18.06.2024 10:05 [16:25:51]1206 (1) - 0 [16:25:51]OFD Sender: Remove packet 34255 [16:25:51]ProducePacketName [16:25:51]name=ofd_packets/00034255 [16:25:51]NVStorageDeleteData [16:25:51]Write to MH i2c: 01 00 00 D4 07 DB [16:25:51]Write i2c OK [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: 01 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: 01 07 00 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 DC 0C CA [16:25:51]RasterBufferAndPrint [16:25:51]line [16:25:51]line [16:25:51]line [16:25:51]line [16:25:51]line [16:25:51]written 0, free lines is 3298 [16:25:51]MH_Cut [16:25:51]Write to MH i2c: D1 01 00 DB 07 01 B4 [16:25:51]Write i2c OK [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: D1 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: D1 01 00 [16:25:51]MH_I2C_Read... [16:25:51]Read from MH i2c: D1 01 00 DB 07 00 B3 [16:25:51]Write to MH i2c: 01 00 00 DC 07 E3 [16:25:51]Write i2c OK [16:25:51]MH_I2C_Read... [16:25:52]OFD Sender: No OFD packet to send [16:25:52]*** Cut start [16:25:52]*** Partial cut [16:25:52]*** CUTSNS_PIN = 1 [16:25:52]*** CUTSNS_PIN = 0 [16:25:52]*** Brake cut motor [16:25:53]Read from MH i2c: 01 [16:25:53]MH_I2C_Read... [16:25:53]*** Stop cut motor [16:25:53]*** Cut end [16:25:53]Read from MH i2c: 01 07 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 FF 0F F8 [16:25:53]process_action close_receipt done [16:25:53]requested_data is exist [16:25:53]produce_requested_data [16:25:53]requested_item fm.sn is exist - process it [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 11 00 00 [16:25:53]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 17 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B3 [16:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:53]wFMCommunicate OK [16:25:53]requested_item fd.num is exist - process it [16:25:53]SAM_PROTO_GetFieldsCounters [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 13 00 00 [16:25:53]Write to MH i2c: E2 08 00 DE 07 80 13 00 00 00 00 00 00 61 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 62 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 62 00 DE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [16:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:53]wFMCommunicate OK [16:25:53]SAM_PROTO_GetFieldsCounters done [16:25:53]requested_item shift.num is exist - process it [16:25:53]requested_item shift.opened is exist - process it [16:25:53]req_shift_opened [16:25:53]FM_GetShiftState [16:25:53]SAM_PROTO_GetShiftState [16:25:53]wFMCommunicate request_size=4 [16:25:53]MH_SAM_APDU [16:25:53]CAPDU: 80 13 01 00 [16:25:53]Write to MH i2c: E2 08 00 DF 07 80 13 01 00 00 00 00 00 63 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:53]Read from MH i2c: E2 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 0E 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: E2 0E 00 DF 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AE [16:25:53]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:25:53]wFMCommunicate OK [16:25:53]SAM_PROTO_GetShiftState done [16:25:53]FM_GetShiftState done [16:25:53]req_shift_opened done [16:25:53]requested_item shift.open_date is exist - process it [16:25:53]req_shift_open_date [16:25:53]req_shift_open_date done [16:25:53]produce_requested_data done [16:25:53]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34255,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:25:53]process_action_free close_receipt [16:25:53]json_value_free [16:25:53]json_value_free done [16:25:53]process_json_proto returns [16:25:53]Send response to host [16:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34255,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:25:53]free response buf [16:25:53]execute_script done [16:25:53]execute_script returns [16:25:53]free content buf [16:25:53]Sock 7.Close socket [16:25:53]Sock 7.Thread stoped [16:25:53]accept exits with 9 [16:25:53]New connection [16:25:53]New thread 3067424100 created [16:25:53]Thread 3067567460 joined [16:25:53]Waiting for new connection... [16:25:53] Sock 9.Parse request [16:25:53]Sock 9.Check first char [16:25:53]Sock 9.First char is OK [16:25:53]request: POST /json_proto HTTP/1.0 [16:25:53]Method: POST [16:25:53]URL: /json_proto [16:25:53]Method is POST - this is cgi request [16:25:53]url: /json_proto [16:25:53]query_string will be loaded in cgi processing [16:25:53]execute_cgi json_proto POST (null) [16:25:53]execute_cgi path=json_proto method=POST [16:25:53]POST find Content-Length [16:25:53]Host: 172.17.38.134:8080 [16:25:53]Content-Length: 1198 [16:25:53]Content-Type: application/json [16:25:53] [16:25:53]POST finish read [16:25:53]Found Content-Length = 1198 [16:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672657\u000A18.06.2024 16:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 6.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 437.40\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:53]execute_script... [16:25:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672657\u000A18.06.2024 16:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 6.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 437.40\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:53]POST & json_proto [16:25:53]process_json_proto [16:25:53]json parsed OK: [16:25:53]protocol is kg_v1.0 [16:25:53]action value=print_text [16:25:53]process_action print_text [16:25:53]cmd_print_text [16:25:53]ExternCall_PrintAddStr [16:25:53]wPrintStart [16:25:53]Write to MH i2c: 01 00 00 E0 07 E7 [16:25:53]Write i2c OK [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 07 00 [16:25:53]MH_I2C_Read... [16:25:53]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 FF 0F FC [16:25:53]RasterBufferAndPrint [16:25:53]line *****ТОВАРНЫЙ ЧЕК***** [16:25:53]line АЗС 120 [16:25:53]line Партнер нефть [16:25:53]line 02508201610067 [16:25:53]line Кассир : Асанбаев Н. [16:25:53]line Счет N : (1)672657 [16:25:53]line 18.06.2024 16:04 [16:25:53]line ПРОДАЖА [16:25:53]line ТРК (МРК, ГНК): 21 [16:25:53]line Вид ГСМ : 2710194210 [16:25:53]line ДТ(л)-К-5 [16:25:53]line 6.000 x 72.90 [16:25:53]line ИТОГ: 437.40 [16:25:53]line Тип оплаты: Талоны: Топливная Карта [16:25:53]line 00562 [16:25:53]line ______________________ [16:25:53]line (подпись) [16:25:53]written 0, free lines is 4095 [16:25:54]Write to MH i2c: 01 00 00 F4 07 FB [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: 01 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: 01 07 00 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: 01 07 00 F4 07 00 00 00 00 00 0E 0E 1E [16:25:54]RasterBufferAndPrint [16:25:54]line [16:25:54]line [16:25:54]line [16:25:54]line [16:25:54]line [16:25:54]written 0, free lines is 3601 [16:25:54]MH_Cut [16:25:54]Write to MH i2c: D1 01 00 FB 07 01 D4 [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: D1 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: D1 01 00 [16:25:54]MH_I2C_Read... [16:25:54]Read from MH i2c: D1 01 00 FB 07 00 D3 [16:25:54]Write to MH i2c: 01 00 00 FC 07 03 [16:25:54]Write i2c OK [16:25:54]MH_I2C_Read... [16:25:54]*** Cut start [16:25:54]*** Partial cut [16:25:54]*** CUTSNS_PIN = 1 [16:25:54]*** CUTSNS_PIN = 0 [16:25:54]*** Brake cut motor [16:25:55]Read from MH i2c: 01 [16:25:55]MH_I2C_Read... [16:25:55]*** Stop cut motor [16:25:55]*** Cut end [16:25:55]Read from MH i2c: 01 07 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 FF 0F 18 [16:25:55]process_action print_text done [16:25:55]requested_data is exist [16:25:55]produce_requested_data [16:25:55]requested_item fm.sn is exist - process it [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 11 00 00 [16:25:55]Write to MH i2c: E2 08 00 FD 07 80 11 00 00 00 00 00 00 7E [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 17 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 17 00 FD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D3 [16:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:25:55]wFMCommunicate OK [16:25:55]requested_item fd.num is exist - process it [16:25:55]SAM_PROTO_GetFieldsCounters [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 13 00 00 [16:25:55]Write to MH i2c: E2 08 00 FE 07 80 13 00 00 00 00 00 00 81 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 62 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 62 00 FE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [16:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:55]wFMCommunicate OK [16:25:55]SAM_PROTO_GetFieldsCounters done [16:25:55]requested_item shift.num is exist - process it [16:25:55]requested_item shift.opened is exist - process it [16:25:55]req_shift_opened [16:25:55]FM_GetShiftState [16:25:55]SAM_PROTO_GetShiftState [16:25:55]wFMCommunicate request_size=4 [16:25:55]MH_SAM_APDU [16:25:55]CAPDU: 80 13 01 00 [16:25:55]Write to MH i2c: E2 08 00 FF 07 80 13 01 00 00 00 00 00 83 [16:25:55]Write i2c OK [16:25:55]MH_I2C_Read... [16:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:55]Read from MH i2c: E2 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 0E 00 [16:25:55]MH_I2C_Read... [16:25:55]Read from MH i2c: E2 0E 00 FF 07 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CE [16:25:55]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:25:55]wFMCommunicate OK [16:25:55]SAM_PROTO_GetShiftState done [16:25:55]FM_GetShiftState done [16:25:55]req_shift_opened done [16:25:55]requested_item shift.open_date is exist - process it [16:25:55]req_shift_open_date [16:25:55]req_shift_open_date done [16:25:55]produce_requested_data done [16:25:55]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34255,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:25:55]process_action_free print_text [16:25:55]json_value_free [16:25:55]json_value_free done [16:25:55]process_json_proto returns [16:25:55]Send response to host [16:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34255,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:25:55]free response buf [16:25:55]execute_script done [16:25:55]execute_script returns [16:25:55]free content buf [16:25:55]Sock 9.Close socket [16:25:55]Sock 9.Thread stoped [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28: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:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:09]accept exits with 7 [16:35:09]New connection [16:35:09]New thread 3067567460 created [16:35:09]Thread 3067424100 joined [16:35:09]Waiting for new connection... [16:35:09] Sock 7.Parse request [16:35:09]Sock 7.Check first char [16:35:09]Sock 7.First char is OK [16:35:09]request: POST /json_proto HTTP/1.0 [16:35:09]Method: POST [16:35:09]URL: /json_proto [16:35:09]Method is POST - this is cgi request [16:35:09]url: /json_proto [16:35:09]query_string will be loaded in cgi processing [16:35:09]execute_cgi json_proto POST (null) [16:35:09]execute_cgi path=json_proto method=POST [16:35:09]POST find Content-Length [16:35:09]Host: 172.17.38.134:8080 [16:35:09]Content-Length: 1195 [16:35:09]Content-Type: application/json [16:35:09] [16:35:09]POST finish read [16:35:09]Found Content-Length = 1195 [16:35: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672661\u000A18.06.2024 16:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 34.980 x 66.40\u000A\u0418\u0422\u041E\u0413: 2322.67\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\u000A43413\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:09]execute_script... [16:35: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672661\u000A18.06.2024 16:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 34.980 x 66.40\u000A\u0418\u0422\u041E\u0413: 2322.67\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\u000A43413\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:09]POST & json_proto [16:35:09]process_json_proto [16:35:09]json parsed OK: [16:35:09]protocol is kg_v1.0 [16:35:09]action value=print_text [16:35:09]process_action print_text [16:35:09]cmd_print_text [16:35:09]ExternCall_PrintAddStr [16:35:09]wPrintStart [16:35:09]Write to MH i2c: 01 00 00 00 08 08 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [16:35:09]RasterBufferAndPrint [16:35:09]line *****ТОВАРНЫЙ ЧЕК***** [16:35:09]line АЗС 120 [16:35:09]line Партнер нефть [16:35:09]line 02508201610067 [16:35:09]line Кассир : Асанбаев Н. [16:35:09]line Счет N : (1)672661 [16:35:09]line 18.06.2024 16:13 [16:35:09]line ПРОДАЖА [16:35:09]line ТРК (МРК, ГНК): 42 [16:35:09]line Вид ГСМ : 2710124130 [16:35:09]line Аи-92-К-5 [16:35:09]line 34.980 x 66.40 [16:35:09]line ИТОГ: 2322.67 [16:35:09]line Тип оплаты: Талоны: Топливная Карта [16:35:09]line 43413 [16:35:09]line ______________________ [16:35:09]line (подпись) [16:35:09]written 0, free lines is 4095 [16:35:09]Write to MH i2c: 01 00 00 14 08 1C [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 14 08 00 00 00 00 00 11 0E 42 [16:35:09]RasterBufferAndPrint [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]written 0, free lines is 3602 [16:35:09]MH_Cut [16:35:09]Write to MH i2c: D1 01 00 1B 08 01 F5 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 1B 08 00 F4 [16:35:09]Write to MH i2c: 01 00 00 1C 08 24 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:10]*** Cut start [16:35:10]*** Partial cut [16:35:10]*** CUTSNS_PIN = 1 [16:35:10]*** CUTSNS_PIN = 0 [16:35:10]*** Brake cut motor [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]*** Stop cut motor [16:35:10]*** Cut end [16:35:10]Read from MH i2c: 01 07 00 1C 08 00 00 00 00 00 FF 0F 39 [16:35:10]process_action print_text done [16:35:10]requested_data is exist [16:35:10]produce_requested_data [16:35:10]requested_item fm.sn is exist - process it [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 1D 08 80 11 00 00 00 00 00 00 9F [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 1D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F4 [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:35:10]wFMCommunicate OK [16:35:10]requested_item fd.num is exist - process it [16:35:10]SAM_PROTO_GetFieldsCounters [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 00 00 [16:35:10]Write to MH i2c: E2 08 00 1E 08 80 13 00 00 00 00 00 00 A2 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 62 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 62 00 1E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [16:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 CF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_GetFieldsCounters done [16:35:10]requested_item shift.num is exist - process it [16:35:10]requested_item shift.opened is exist - process it [16:35:10]req_shift_opened [16:35:10]FM_GetShiftState [16:35:10]SAM_PROTO_GetShiftState [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 01 00 [16:35:10]Write to MH i2c: E2 08 00 1F 08 80 13 01 00 00 00 00 00 A4 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 1F 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 EF [16:35:11]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]req_shift_opened done [16:35:11]requested_item shift.open_date is exist - process it [16:35:11]req_shift_open_date [16:35:11]req_shift_open_date done [16:35:11]produce_requested_data done [16:35:11]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34255,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:35:11]process_action_free print_text [16:35:11]json_value_free [16:35:11]json_value_free done [16:35:11]process_json_proto returns [16:35:11]Send response to host [16:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34255,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:35:11]free response buf [16:35:11]execute_script done [16:35:11]execute_script returns [16:35:11]free content buf [16:35:11]Sock 7.Close socket [16:35:11]Sock 7.Thread stoped [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:27]accept exits with 9 [16:40:27]New connection [16:40:27]New thread 3067424100 created [16:40:27]Thread 3067567460 joined [16:40:27]Waiting for new connection... [16:40:27] Sock 9.Parse request [16:40:27]Sock 9.Check first char [16:40:27]Sock 9.First char is OK [16:40:27]request: POST /json_proto HTTP/1.0 [16:40:27]Method: POST [16:40:27]URL: /json_proto [16:40:27]Method is POST - this is cgi request [16:40:27]url: /json_proto [16:40:27]query_string will be loaded in cgi processing [16:40:27]execute_cgi json_proto POST (null) [16:40:27]execute_cgi path=json_proto method=POST [16:40:27]POST find Content-Length [16:40:27]Host: 172.17.38.134:8080 [16:40:27]Content-Length: 678 [16:40:27]Content-Type: application/json [16:40:27] [16:40:27]POST finish read [16:40:27]Found Content-Length = 678 [16:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184043", "tax_sys" : 0, "items" : [ { "code": "4680036915880", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:27]execute_script... [16:40: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)184043", "tax_sys" : 0, "items" : [ { "code": "4680036915880", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:27]POST & json_proto [16:40:27]process_json_proto [16:40:27]json parsed OK: [16:40:27]protocol is kg_v1.0 [16:40:27]action value=close_receipt [16:40:27]process_action close_receipt [16:40:27]cmd_close_receipt [16:40:27]MH_GetDate [16:40:27]Write to MH i2c: F0 00 00 20 08 17 [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: F0 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: F0 09 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: F0 09 00 20 08 00 7C B8 71 66 13 9C 7C 64 BA [16:40:27]GetLastDocTimeStamp 1718727950 [16:40:27]current date 1718728828 [16:40:27]FM_GetShiftState [16:40:27]SAM_PROTO_GetShiftState [16:40:27]wFMCommunicate request_size=4 [16:40:27]MH_SAM_APDU [16:40:27]CAPDU: 80 13 01 00 [16:40:27]Write to MH i2c: E2 08 00 21 08 80 13 01 00 00 00 00 00 A6 [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:27]Read from MH i2c: E2 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 0E 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 0E 00 21 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F1 [16:40:27]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:40:27]wFMCommunicate OK [16:40:27]SAM_PROTO_GetShiftState done [16:40:27]FM_GetShiftState done [16:40:27]opened in 1718670230 [16:40:27]opened+sec_in_day 1718756630 [16:40:27]quantity*price = 11000 [16:40:27]sum+1 = 11001 [16:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 78 18.06.2024 16:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34256 ФПД: 97185195676588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164028&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34256&fm=97185195676588&tin=02508201610067®Number=0000000000092786&sum=11000 0 [16:40:28]StoreToDocumentArchive [16:40:28]shift 323 fd 34256 [16:40:28]save to /storage/0323/doc_00034256 [16:40:28]save last doc name /storage/0323/doc_00034256 to /storage/kkm_last_doc_name [16:40:28]save OK [16:40:28]Clear old archive folders... [16:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:40:28]tlvbuf is 01940E90 [16:40:28]SAM_PROTO_ClearQueue [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 09 00 00 [16:40:28]Write to MH i2c: E2 08 00 2E 08 80 09 00 00 00 00 00 00 A8 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]SAM_PROTO_ClearQueue done [16:40:28]KKMCreateOFDPacket [16:40:28]OFDProtocolAddRootSTLVToBuf [16:40:28]FM_MakeSignedData [16:40:28]FM_MakeSignedData [16:40:28]SAM_PROTO_SignData [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 01 02 [16:40:28]Write to MH i2c: E2 08 00 2F 08 80 0D 01 02 00 00 00 00 B0 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]wFMCommunicate request_size=255 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 35 38 38 30 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C B8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:40:28]Write to MH i2c: E2 02 01 30 08 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 35 38 38 30 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C B8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2D [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]wFMCommunicate request_size=53 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D0 85 00 00 35 04 06 00 58 63 B1 10 D3 AC [16:40:28]Write to MH i2c: E2 38 00 31 08 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D0 85 00 00 35 04 06 00 58 63 B1 10 D3 AC 00 00 01 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 03 02 [16:40:28]Write to MH i2c: E2 08 00 32 08 80 0D 03 02 00 00 00 00 B5 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 0B 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 0B 00 32 08 00 15 85 8A 82 56 6F 83 13 90 00 B7 [16:40:28]RAPDU: 15 85 8A 82 56 6F 83 13 90 00 [16:40:28]wFMCommunicate OK [16:40:28]SAM_PROTO_SignData done [16:40:28]FM_MakeSignedData done [16:40:28]CreateOFDProtocolMessage [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 11 00 00 [16:40:28]Write to MH i2c: E2 08 00 33 08 80 11 00 00 00 00 00 00 B5 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 17 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 17 00 33 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0A [16:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:40:28]wFMCommunicate OK [16:40:28]CreateOFDProtocolMessage done [16:40:28]OFDSenderStorePacket 34256 [16:40:28]StoreOFDPacket docnum=34256 [16:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 70 F1 32 01 E7 31 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 35 38 38 30 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C B8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D0 85 00 00 35 04 06 00 58 63 B1 10 D3 AC 15 85 8A 82 56 6F 83 13 [16:40:28]CheckFolder [16:40:28]dirname=/storage/ofd_packets [16:40:28]CheckFolder done [16:40:28]ProducePacketName [16:40:28]name=ofd_packets/00034256 [16:40:28]NVStorageSaveData ofd_packets/00034256 [16:40:28]File name is /storage/ofd_packets/00034256 [16:40:28]Write 344 bytes [16:40:28]NVStorageSaveData done [16:40:28]OFDSenderStorePacket done [16:40:28]KKMCreateOFDPacket done [16:40:28]NVStorageSaveData kkm_last_timestamp [16:40:28]File name is /storage/kkm_last_timestamp [16:40:28]Write 4 bytes [16:40:28]NVStorageSaveData done [16:40:28]ExternCall_PrintAddStr [16:40:28]wPrintStart [16:40:28]Write to MH i2c: 01 00 00 34 08 3C [16:40:28]OFD Sender: Processing packet 34256 [packets to send 8, broken 7] [16:40:28]ProducePacketName [16:40:28]name=ofd_packets/00034256 [16:40:28]OFD Sender: To server: pG, [16:40:28]CommunicateWithHost lk.salyk.kg:30040 [16:40:28]ConnectInit lk.salyk.kg [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 07 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [16:40:28]RasterBufferAndPrint [16:40:28]line Счет N : (3)184043 [16:40:28]line ИНН: 02508201610067 [16:40:28]line Контрольно-Кассовый Чек [16:40:28]line ПРОДАЖА [16:40:28]line Товар: 4680036915880 [16:40:28]line Gorilla эн нап манго-кокос 0,45 ж/б [16:40:28]line 1.000 * 110.00 [16:40:28]line = 110.00 [16:40:28]line НДС 12% НСП 1% [16:40:28]line > о реализуемом товаре [16:40:28]line ИТОГО: 110.00 [16:40:28]line НСП 1% : 0.97 [16:40:28]line НДС 12% : 11.68 [16:40:28]line Наличными: 110.00 [16:40:28]line Безнал.: 0.00 [16:40:28]line Место: АЗС № 120 "Партнер Нефть" [16:40:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:40:28]line СНО: Общий режим [16:40:28]line Чек 78 18.06.2024 16:40 [16:40:28]line Смена: 323 ФФД: 1.0 [16:40:28]line ЗНМ: 0300000172 [16:40:28]line РНМ: 0000000000092786 [16:40:28]line Версия ККМ: 001 [16:40:28]line ФМ: 0000000000875095 [16:40:28]line ФД: 34256 [16:40:28]line ФПД: 97185195676588 [16:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164028&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34256&fm=97185195676588&tin=02508201610067®Number=0000000000092786&sum=11000 [16:40:29]line 0 [16:40:29]Connected sock=10 [16:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 3A 01 00 00 70 F1 32 01 E7 31 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 35 38 38 30 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7C B8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D0 85 00 00 35 04 06 00 58 63 B1 10 D3 AC 15 85 8A 82 56 6F 83 13 [16:40:29]written 0, free lines is 4095 [16:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8D 17 47 00 C8 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D0 85 00 00 F4 03 04 00 4B 5F 71 66 B6 04 01 00 00 FC 83 C0 A5 F9 39 81 30 [16:40:29]CommunicateWithHost err = 0 [16:40:29]CheckOFDResponse [16:40:29]1017 (14) - 77093643461234 [16:40:29]1041 (16) - 0000000000875095 [16:40:29]1040 (4) - 34256 [16:40:29]1012 (4) - 18.06.2024 10:19 [16:40:29]1206 (1) - 0 [16:40:29]OFD Sender: Remove packet 34256 [16:40:29]ProducePacketName [16:40:29]name=ofd_packets/00034256 [16:40:29]NVStorageDeleteData [16:40:29]Write to MH i2c: 01 00 00 5D 08 65 [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: 01 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: 01 07 00 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: 01 07 00 5D 08 00 00 00 00 00 EB 0C 63 [16:40:29]RasterBufferAndPrint [16:40:29]line [16:40:29]line [16:40:29]line [16:40:29]line [16:40:29]line [16:40:29]written 0, free lines is 3313 [16:40:29]MH_Cut [16:40:29]Write to MH i2c: D1 01 00 64 08 01 3E [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: D1 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: D1 01 00 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: D1 01 00 64 08 00 3D [16:40:29]Write to MH i2c: 01 00 00 65 08 6D [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]OFD Sender: No OFD packet to send [16:40:30]*** Cut start [16:40:30]*** Partial cut [16:40:30]*** CUTSNS_PIN = 1 [16:40:30]*** CUTSNS_PIN = 0 [16:40:30]*** Brake cut motor [16:40:31]Read from MH i2c: 01 [16:40:31]MH_I2C_Read... [16:40:31]*** Stop cut motor [16:40:31]*** Cut end [16:40:31]Read from MH i2c: 01 07 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: 01 07 00 65 08 00 00 00 00 00 FF 0F 82 [16:40:31]process_action close_receipt done [16:40:31]requested_data is exist [16:40:31]produce_requested_data [16:40:31]requested_item fm.sn is exist - process it [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 11 00 00 [16:40:31]Write to MH i2c: E2 08 00 66 08 80 11 00 00 00 00 00 00 E8 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 17 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 17 00 66 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3D [16:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:40:31]wFMCommunicate OK [16:40:31]requested_item fd.num is exist - process it [16:40:31]SAM_PROTO_GetFieldsCounters [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 13 00 00 [16:40:31]Write to MH i2c: E2 08 00 67 08 80 13 00 00 00 00 00 00 EB [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 62 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 62 00 67 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D0 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D0 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_GetFieldsCounters done [16:40:31]requested_item shift.num is exist - process it [16:40:31]requested_item shift.opened is exist - process it [16:40:31]req_shift_opened [16:40:31]FM_GetShiftState [16:40:31]SAM_PROTO_GetShiftState [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 13 01 00 [16:40:31]Write to MH i2c: E2 08 00 68 08 80 13 01 00 00 00 00 00 ED [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0E 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0E 00 68 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 38 [16:40:31]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_GetShiftState done [16:40:31]FM_GetShiftState done [16:40:31]req_shift_opened done [16:40:31]requested_item shift.open_date is exist - process it [16:40:31]req_shift_open_date [16:40:31]req_shift_open_date done [16:40:31]produce_requested_data done [16:40:31]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34256,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:40:31]process_action_free close_receipt [16:40:31]json_value_free [16:40:31]json_value_free done [16:40:31]process_json_proto returns [16:40:31]Send response to host [16:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34256,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:40:31]free response buf [16:40:31]execute_script done [16:40:31]execute_script returns [16:40:31]free content buf [16:40:31]Sock 9.Close socket [16:40:31]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:24]accept exits with 7 [16:48:24]New connection [16:48:24]New thread 3067567460 created [16:48:24]Thread 3067424100 joined [16:48:24]Waiting for new connection... [16:48:24] Sock 7.Parse request [16:48:24]Sock 7.Check first char [16:48:24]Sock 7.First char is OK [16:48:24]request: POST /json_proto HTTP/1.0 [16:48:24]Method: POST [16:48:24]URL: /json_proto [16:48:24]Method is POST - this is cgi request [16:48:24]url: /json_proto [16:48:24]query_string will be loaded in cgi processing [16:48:24]execute_cgi json_proto POST (null) [16:48:24]execute_cgi path=json_proto method=POST [16:48:24]POST find Content-Length [16:48:24]Host: 172.17.38.134:8080 [16:48:24]Content-Length: 654 [16:48:24]Content-Type: application/json [16:48:24] [16:48:24]POST finish read [16:48:24]Found Content-Length = 654 [16:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184044", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:24]execute_script... [16:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184044", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:24]POST & json_proto [16:48:24]process_json_proto [16:48:24]json parsed OK: [16:48:24]protocol is kg_v1.0 [16:48:24]action value=close_receipt [16:48:24]process_action close_receipt [16:48:24]cmd_close_receipt [16:48:24]MH_GetDate [16:48:24]Write to MH i2c: F0 00 00 69 08 60 [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: F0 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: F0 09 00 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: F0 09 00 69 08 00 59 BA 71 66 13 9C 7C 64 E2 [16:48:24]GetLastDocTimeStamp 1718728828 [16:48:24]current date 1718729305 [16:48:24]FM_GetShiftState [16:48:24]SAM_PROTO_GetShiftState [16:48:24]wFMCommunicate request_size=4 [16:48:24]MH_SAM_APDU [16:48:24]CAPDU: 80 13 01 00 [16:48:24]Write to MH i2c: E2 08 00 6A 08 80 13 01 00 00 00 00 00 EF [16:48:24]Write i2c OK [16:48:24]MH_I2C_Read... [16:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:24]Read from MH i2c: E2 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: E2 0E 00 [16:48:24]MH_I2C_Read... [16:48:24]Read from MH i2c: E2 0E 00 6A 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3A [16:48:24]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:48:24]wFMCommunicate OK [16:48:24]SAM_PROTO_GetShiftState done [16:48:24]FM_GetShiftState done [16:48:24]opened in 1718670230 [16:48:24]opened+sec_in_day 1718756630 [16:48:24]quantity*price = 9500 [16:48:24]sum+1 = 9501 [16:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 79 18.06.2024 16:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34257 ФПД: 263766001919096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164825&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34257&fm=263766001919096&tin=02508201610067®Number=0000000000092786&sum=9500 0 [16:48:25]StoreToDocumentArchive [16:48:25]shift 323 fd 34257 [16:48:25]save to /storage/0323/doc_00034257 [16:48:25]save last doc name /storage/0323/doc_00034257 to /storage/kkm_last_doc_name [16:48:25]save OK [16:48:25]Clear old archive folders... [16:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:48:25]tlvbuf is B6E3E830 [16:48:25]SAM_PROTO_ClearQueue [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 09 00 00 [16:48:25]Write to MH i2c: E2 08 00 77 08 80 09 00 00 00 00 00 00 F1 [16:48:25]OFD Sender: No OFD packet to send [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 77 08 00 90 00 F3 [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_ClearQueue done [16:48:25]KKMCreateOFDPacket [16:48:25]OFDProtocolAddRootSTLVToBuf [16:48:25]FM_MakeSignedData [16:48:25]FM_MakeSignedData [16:48:25]SAM_PROTO_SignData [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 0D 01 02 [16:48:25]Write to MH i2c: E2 08 00 78 08 80 0D 01 02 00 00 00 00 F9 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 78 08 00 90 00 F4 [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]wFMCommunicate request_size=255 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 BA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:48:25]Write to MH i2c: E2 02 01 79 08 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 BA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 16 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]wFMCommunicate request_size=52 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D1 85 00 00 35 04 06 00 EF E4 CE D9 24 78 [16:48:25]Write to MH i2c: E2 37 00 7A 08 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D1 85 00 00 35 04 06 00 EF E4 CE D9 24 78 00 00 34 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [16:48:25]RAPDU: 90 00 [16:48:25]wFMCommunicate OK [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 0D 03 02 [16:48:25]Write to MH i2c: E2 08 00 7B 08 80 0D 03 02 00 00 00 00 FE [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0B 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0B 00 7B 08 00 34 3A F4 FD A5 7D 3E C0 90 00 7E [16:48:25]RAPDU: 34 3A F4 FD A5 7D 3E C0 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_SignData done [16:48:25]FM_MakeSignedData done [16:48:25]CreateOFDProtocolMessage [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 11 00 00 [16:48:25]Write to MH i2c: E2 08 00 7C 08 80 11 00 00 00 00 00 00 FE [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 17 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 17 00 7C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 53 [16:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:48:25]wFMCommunicate OK [16:48:25]CreateOFDProtocolMessage done [16:48:25]OFDSenderStorePacket 34257 [16:48:25]StoreOFDPacket docnum=34257 [16:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 57 54 31 01 D2 4E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 BA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D1 85 00 00 35 04 06 00 EF E4 CE D9 24 78 34 3A F4 FD A5 7D 3E C0 [16:48:25]CheckFolder [16:48:25]dirname=/storage/ofd_packets [16:48:25]CheckFolder done [16:48:25]ProducePacketName [16:48:25]name=ofd_packets/00034257 [16:48:25]NVStorageSaveData ofd_packets/00034257 [16:48:25]File name is /storage/ofd_packets/00034257 [16:48:25]Write 343 bytes [16:48:25]NVStorageSaveData done [16:48:25]OFDSenderStorePacket done [16:48:25]KKMCreateOFDPacket done [16:48:25]NVStorageSaveData kkm_last_timestamp [16:48:25]File name is /storage/kkm_last_timestamp [16:48:25]Write 4 bytes [16:48:25]NVStorageSaveData done [16:48:25]ExternCall_PrintAddStr [16:48:25]wPrintStart [16:48:25]Write to MH i2c: 01 00 00 7D 08 85 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: 01 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: 01 07 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: 01 07 00 7D 08 00 00 00 00 00 FF 0F 9A [16:48:25]RasterBufferAndPrint [16:48:25]line Счет N : (3)184044 [16:48:25]line ИНН: 02508201610067 [16:48:25]line Контрольно-Кассовый Чек [16:48:25]line ПРОДАЖА [16:48:25]line Товар: 4700000480050 [16:48:25]line Напиток Nitro Energy эн green ж/б 0,45л [16:48:25]line 1.000 * 95.00 [16:48:25]line = 95.00 [16:48:25]line НДС 12% НСП 1% [16:48:25]line > о реализуемом товаре [16:48:25]line ИТОГО: 95.00 [16:48:25]line НСП 1% : 0.84 [16:48:25]line НДС 12% : 10.09 [16:48:25]line Наличными: 95.00 [16:48:25]line Безнал.: 0.00 [16:48:25]line Место: АЗС № 120 "Партнер Нефть" [16:48:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:48:25]line СНО: Общий режим [16:48:25]line Чек 79 18.06.2024 16:48 [16:48:25]line Смена: 323 ФФД: 1.0 [16:48:25]line ЗНМ: 0300000172 [16:48:25]line РНМ: 0000000000092786 [16:48:25]line Версия ККМ: 001 [16:48:25]line ФМ: 0000000000875095 [16:48:25]line ФД: 34257 [16:48:25]line ФПД: 263766001919096 [16:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T164825&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34257&fm=263766001919096&tin=02508201610067®Number=0000000000092786&sum=9500 [16:48:26]line 0 [16:48:26]OFD Sender: Processing packet 34257 [packets to send 8, broken 7] [16:48:26]ProducePacketName [16:48:26]name=ofd_packets/00034257 [16:48:26]OFD Sender: To server: pG, [16:48:26]CommunicateWithHost lk.salyk.kg:30040 [16:48:26]ConnectInit lk.salyk.kg [16:48:26]written 0, free lines is 4095 [16:48:26]Connected sock=10 [16:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 57 54 31 01 D2 4E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 BA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D1 85 00 00 35 04 06 00 EF E4 CE D9 24 78 34 3A F4 FD A5 7D 3E C0 [16:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F1 52 47 00 BC CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D1 85 00 00 F4 03 04 00 28 61 71 66 B6 04 01 00 00 95 B1 10 CA F7 82 AC 56 [16:48:26]CommunicateWithHost err = 0 [16:48:26]CheckOFDResponse [16:48:26]1017 (14) - 77093643461234 [16:48:26]1041 (16) - 0000000000875095 [16:48:26]1040 (4) - 34257 [16:48:26]1012 (4) - 18.06.2024 10:27 [16:48:26]1206 (1) - 0 [16:48:26]OFD Sender: Remove packet 34257 [16:48:26]ProducePacketName [16:48:26]name=ofd_packets/00034257 [16:48:26]NVStorageDeleteData [16:48:26]Write to MH i2c: 01 00 00 A6 08 AE [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: 01 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: 01 07 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 F1 0C B2 [16:48:26]RasterBufferAndPrint [16:48:26]line [16:48:26]line [16:48:26]line [16:48:26]line [16:48:26]line [16:48:26]written 0, free lines is 3319 [16:48:26]MH_Cut [16:48:26]Write to MH i2c: D1 01 00 AD 08 01 87 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: D1 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: D1 01 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: D1 01 00 AD 08 00 86 [16:48:26]Write to MH i2c: 01 00 00 AE 08 B6 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:27]OFD Sender: No OFD packet to send [16:48:27]*** Cut start [16:48:27]*** Partial cut [16:48:27]*** CUTSNS_PIN = 1 [16:48:27]*** CUTSNS_PIN = 0 [16:48:27]*** Brake cut motor [16:48:28]Read from MH i2c: 01 [16:48:28]MH_I2C_Read... [16:48:28]*** Stop cut motor [16:48:28]*** Cut end [16:48:28]Read from MH i2c: 01 07 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 FF 0F CB [16:48:28]process_action close_receipt done [16:48:28]requested_data is exist [16:48:28]produce_requested_data [16:48:28]requested_item fm.sn is exist - process it [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 11 00 00 [16:48:28]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 17 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 17 00 AF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 86 [16:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [16:48:28]wFMCommunicate OK [16:48:28]requested_item fd.num is exist - process it [16:48:28]SAM_PROTO_GetFieldsCounters [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 13 00 00 [16:48:28]Write to MH i2c: E2 08 00 B0 08 80 13 00 00 00 00 00 00 34 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 62 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 62 00 B0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [16:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:28]wFMCommunicate OK [16:48:28]SAM_PROTO_GetFieldsCounters done [16:48:28]requested_item shift.num is exist - process it [16:48:28]requested_item shift.opened is exist - process it [16:48:28]req_shift_opened [16:48:28]FM_GetShiftState [16:48:28]SAM_PROTO_GetShiftState [16:48:28]wFMCommunicate request_size=4 [16:48:28]MH_SAM_APDU [16:48:28]CAPDU: 80 13 01 00 [16:48:28]Write to MH i2c: E2 08 00 B1 08 80 13 01 00 00 00 00 00 36 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:28]Read from MH i2c: E2 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 0E 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: E2 0E 00 B1 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 81 [16:48:28]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [16:48:28]wFMCommunicate OK [16:48:28]SAM_PROTO_GetShiftState done [16:48:28]FM_GetShiftState done [16:48:28]req_shift_opened done [16:48:28]requested_item shift.open_date is exist - process it [16:48:28]req_shift_open_date [16:48:28]req_shift_open_date done [16:48:28]produce_requested_data done [16:48:28]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34257,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [16:48:28]process_action_free close_receipt [16:48:28]json_value_free [16:48:28]json_value_free done [16:48:28]process_json_proto returns [16:48:28]Send response to host [16:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34257,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [16:48:28]free response buf [16:48:28]execute_script done [16:48:28]execute_script returns [16:48:28]free content buf [16:48:28]Sock 7.Close socket [16:48:28]Sock 7.Thread stoped [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16: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:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:16]accept exits with 9 [17:11:16]New connection [17:11:16]New thread 3067424100 created [17:11:16]Thread 3067567460 joined [17:11:16]Waiting for new connection... [17:11:16] Sock 9.Parse request [17:11:16]Sock 9.Check first char [17:11:16]Sock 9.First char is OK [17:11:16]request: POST /json_proto HTTP/1.0 [17:11:16]Method: POST [17:11:16]URL: /json_proto [17:11:16]Method is POST - this is cgi request [17:11:16]url: /json_proto [17:11:16]query_string will be loaded in cgi processing [17:11:16]execute_cgi json_proto POST (null) [17:11:16]execute_cgi path=json_proto method=POST [17:11:16]POST find Content-Length [17:11:16]Host: 172.17.38.134:8080 [17:11:16]Content-Length: 638 [17:11:16]Content-Type: application/json [17:11:16] [17:11:16]POST finish read [17:11:16]Found Content-Length = 638 [17:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184045", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:16]execute_script... [17:11: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 : (3)184045", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:16]POST & json_proto [17:11:16]process_json_proto [17:11:16]json parsed OK: [17:11:16]protocol is kg_v1.0 [17:11:16]action value=close_receipt [17:11:16]process_action close_receipt [17:11:16]cmd_close_receipt [17:11:16]MH_GetDate [17:11:16]Write to MH i2c: F0 00 00 B2 08 A9 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: F0 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: F0 09 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: F0 09 00 B2 08 00 B5 BF 71 66 13 9C 7C 64 8C [17:11:16]GetLastDocTimeStamp 1718729305 [17:11:16]current date 1718730677 [17:11:16]FM_GetShiftState [17:11:16]SAM_PROTO_GetShiftState [17:11:16]wFMCommunicate request_size=4 [17:11:16]MH_SAM_APDU [17:11:16]CAPDU: 80 13 01 00 [17:11:16]Write to MH i2c: E2 08 00 B3 08 80 13 01 00 00 00 00 00 38 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:16]Read from MH i2c: E2 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: E2 0E 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: E2 0E 00 B3 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 83 [17:11:16]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:11:16]wFMCommunicate OK [17:11:16]SAM_PROTO_GetShiftState done [17:11:16]FM_GetShiftState done [17:11:16]opened in 1718670230 [17:11:16]opened+sec_in_day 1718756630 [17:11:16]quantity*price = 7000 [17:11:16]sum+1 = 7001 [17:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 80 18.06.2024 17:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34258 ФПД: 104400236845620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171117&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34258&fm=104400236845620&tin=02508201610067®Number=0000000000092786&sum=7000 0 [17:11:17]StoreToDocumentArchive [17:11:17]shift 323 fd 34258 [17:11:17]save to /storage/0323/doc_00034258 [17:11:17]save last doc name /storage/0323/doc_00034258 to /storage/kkm_last_doc_name [17:11:17]save OK [17:11:17]Clear old archive folders... [17:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:11:17]tlvbuf is 01940E90 [17:11:17]SAM_PROTO_ClearQueue [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 09 00 00 [17:11:17]Write to MH i2c: E2 08 00 C0 08 80 09 00 00 00 00 00 00 3A [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 C0 08 00 90 00 3C [17:11:17]RAPDU: 90 00 [17:11:17]wFMCommunicate OK [17:11:17]SAM_PROTO_ClearQueue done [17:11:17]KKMCreateOFDPacket [17:11:17]OFDProtocolAddRootSTLVToBuf [17:11:17]FM_MakeSignedData [17:11:17]FM_MakeSignedData [17:11:17]SAM_PROTO_SignData [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 0D 01 02 [17:11:17]Write to MH i2c: E2 08 00 C1 08 80 0D 01 02 00 00 00 00 42 [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 C1 08 00 90 00 3D [17:11:17]RAPDU: 90 00 [17:11:17]wFMCommunicate OK [17:11:17]wFMCommunicate request_size=255 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B5 BF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [17:11:17]Write to MH i2c: E2 02 01 C2 08 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B5 BF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 43 [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 C2 08 00 90 00 3E [17:11:17]RAPDU: 90 00 [17:11:17]wFMCommunicate OK [17:11:17]wFMCommunicate request_size=32 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 D2 85 00 00 35 04 06 00 5E F3 93 08 1A 34 [17:11:17]Write to MH i2c: E2 23 00 C3 08 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 D2 85 00 00 35 04 06 00 5E F3 93 08 1A 34 00 00 35 [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [17:11:17]RAPDU: 90 00 [17:11:17]wFMCommunicate OK [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 0D 03 02 [17:11:17]Write to MH i2c: E2 08 00 C4 08 80 0D 03 02 00 00 00 00 47 [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 0B 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 0B 00 C4 08 00 89 FC 7E 80 70 08 34 A7 90 00 1E [17:11:17]RAPDU: 89 FC 7E 80 70 08 34 A7 90 00 [17:11:17]wFMCommunicate OK [17:11:17]SAM_PROTO_SignData done [17:11:17]FM_MakeSignedData done [17:11:17]CreateOFDProtocolMessage [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 11 00 00 [17:11:17]Write to MH i2c: E2 08 00 C5 08 80 11 00 00 00 00 00 00 47 [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 17 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 17 00 C5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9C [17:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:11:17]wFMCommunicate OK [17:11:17]CreateOFDProtocolMessage done [17:11:17]OFDSenderStorePacket 34258 [17:11:17]StoreOFDPacket docnum=34258 [17:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 D5 BD 1D 01 01 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B5 BF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D2 85 00 00 35 04 06 00 5E F3 93 08 1A 34 89 FC 7E 80 70 08 34 A7 [17:11:17]CheckFolder [17:11:17]dirname=/storage/ofd_packets [17:11:17]CheckFolder done [17:11:17]ProducePacketName [17:11:17]name=ofd_packets/00034258 [17:11:17]NVStorageSaveData ofd_packets/00034258 [17:11:17]File name is /storage/ofd_packets/00034258 [17:11:17]Write 323 bytes [17:11:17]NVStorageSaveData done [17:11:17]OFDSenderStorePacket done [17:11:17]KKMCreateOFDPacket done [17:11:17]NVStorageSaveData kkm_last_timestamp [17:11:17]File name is /storage/kkm_last_timestamp [17:11:17]Write 4 bytes [17:11:17]NVStorageSaveData done [17:11:17]ExternCall_PrintAddStr [17:11:17]wPrintStart [17:11:17]Write to MH i2c: 01 00 00 C6 08 CE [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: 01 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: 01 07 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [17:11:17]RasterBufferAndPrint [17:11:17]line Счет N : (3)184045 [17:11:17]line ИНН: 02508201610067 [17:11:17]line Контрольно-Кассовый Чек [17:11:17]line ПРОДАЖА [17:11:17]line Товар: 4700002082931 [17:11:17]line Водка Хорошая 0,1л [17:11:17]line 1.000 * 70.00 [17:11:17]line = 70.00 [17:11:17]line НДС 12% НСП 1% [17:11:17]line > о реализуемом товаре [17:11:17]line ИТОГО: 70.00 [17:11:17]line НСП 1% : 0.62 [17:11:17]line НДС 12% : 7.43 [17:11:17]line Наличными: 70.00 [17:11:17]line Безнал.: 0.00 [17:11:17]line Место: АЗС № 120 "Партнер Нефть" [17:11:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:11:17]line СНО: Общий режим [17:11:17]line Чек 80 18.06.2024 17:11 [17:11:17]line Смена: 323 ФФД: 1.0 [17:11:17]line ЗНМ: 0300000172 [17:11:17]line РНМ: 0000000000092786 [17:11:17]line Версия ККМ: 001 [17:11:17]line ФМ: 0000000000875095 [17:11:17]line ФД: 34258 [17:11:17]line ФПД: 104400236845620 [17:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171117&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34258&fm=104400236845620&tin=02508201610067®Number=0000000000092786&sum=7000 [17:11:18]line 0 [17:11:18]OFD Sender: Processing packet 34258 [packets to send 8, broken 7] [17:11:18]ProducePacketName [17:11:18]name=ofd_packets/00034258 [17:11:18]OFD Sender: To server: pG, [17:11:18]CommunicateWithHost lk.salyk.kg:30040 [17:11:18]ConnectInit lk.salyk.kg [17:11:18]written 0, free lines is 4095 [17:11:18]Connected sock=10 [17:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 D5 BD 1D 01 01 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B5 BF 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D2 85 00 00 35 04 06 00 5E F3 93 08 1A 34 89 FC 7E 80 70 08 34 A7 [17:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 24 1D 47 00 E5 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D2 85 00 00 F4 03 04 00 84 66 71 66 B6 04 01 00 00 47 3E BF 47 39 15 47 BD [17:11:18]CommunicateWithHost err = 0 [17:11:18]CheckOFDResponse [17:11:18]1017 (14) - 77093643461234 [17:11:18]1041 (16) - 0000000000875095 [17:11:18]1040 (4) - 34258 [17:11:18]1012 (4) - 18.06.2024 10:50 [17:11:18]1206 (1) - 0 [17:11:18]OFD Sender: Remove packet 34258 [17:11:18]ProducePacketName [17:11:18]name=ofd_packets/00034258 [17:11:18]NVStorageDeleteData [17:11:18]Write to MH i2c: 01 00 00 EE 08 F6 [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 07 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: 01 07 00 EE 08 00 00 00 00 00 F8 0C 01 [17:11:18]RasterBufferAndPrint [17:11:18]line [17:11:18]line [17:11:18]line [17:11:18]line [17:11:18]line [17:11:18]written 0, free lines is 3328 [17:11:18]MH_Cut [17:11:18]Write to MH i2c: D1 01 00 F5 08 01 CF [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: D1 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: D1 01 00 [17:11:18]MH_I2C_Read... [17:11:18]Read from MH i2c: D1 01 00 F5 08 00 CE [17:11:18]Write to MH i2c: 01 00 00 F6 08 FE [17:11:18]Write i2c OK [17:11:18]MH_I2C_Read... [17:11:19]OFD Sender: No OFD packet to send [17:11:19]*** Cut start [17:11:19]*** Partial cut [17:11:19]*** CUTSNS_PIN = 1 [17:11:19]*** CUTSNS_PIN = 0 [17:11:19]*** Brake cut motor [17:11:19]Read from MH i2c: 01 [17:11:19]MH_I2C_Read... [17:11:20]*** Stop cut motor [17:11:20]*** Cut end [17:11:20]Read from MH i2c: 01 07 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: 01 07 00 F6 08 00 00 00 00 00 FF 0F 13 [17:11:20]process_action close_receipt done [17:11:20]requested_data is exist [17:11:20]produce_requested_data [17:11:20]requested_item fm.sn is exist - process it [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 11 00 00 [17:11:20]Write to MH i2c: E2 08 00 F7 08 80 11 00 00 00 00 00 00 79 [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 17 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 17 00 F7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CE [17:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:11:20]wFMCommunicate OK [17:11:20]requested_item fd.num is exist - process it [17:11:20]SAM_PROTO_GetFieldsCounters [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 13 00 00 [17:11:20]Write to MH i2c: E2 08 00 F8 08 80 13 00 00 00 00 00 00 7C [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 62 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 62 00 F8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [17:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:20]wFMCommunicate OK [17:11:20]SAM_PROTO_GetFieldsCounters done [17:11:20]requested_item shift.num is exist - process it [17:11:20]requested_item shift.opened is exist - process it [17:11:20]req_shift_opened [17:11:20]FM_GetShiftState [17:11:20]SAM_PROTO_GetShiftState [17:11:20]wFMCommunicate request_size=4 [17:11:20]MH_SAM_APDU [17:11:20]CAPDU: 80 13 01 00 [17:11:20]Write to MH i2c: E2 08 00 F9 08 80 13 01 00 00 00 00 00 7E [17:11:20]Write i2c OK [17:11:20]MH_I2C_Read... [17:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:20]Read from MH i2c: E2 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 0E 00 [17:11:20]MH_I2C_Read... [17:11:20]Read from MH i2c: E2 0E 00 F9 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 C9 [17:11:20]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:11:20]wFMCommunicate OK [17:11:20]SAM_PROTO_GetShiftState done [17:11:20]FM_GetShiftState done [17:11:20]req_shift_opened done [17:11:20]requested_item shift.open_date is exist - process it [17:11:20]req_shift_open_date [17:11:20]req_shift_open_date done [17:11:20]produce_requested_data done [17:11:20]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34258,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [17:11:20]process_action_free close_receipt [17:11:20]json_value_free [17:11:20]json_value_free done [17:11:20]process_json_proto returns [17:11:20]Send response to host [17:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34258,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [17:11:20]free response buf [17:11:20]execute_script done [17:11:20]execute_script returns [17:11:20]free content buf [17:11:20]Sock 9.Close socket [17:11:20]Sock 9.Thread stoped [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:33]accept exits with 7 [17:16:33]New connection [17:16:33]New thread 3067567460 created [17:16:33]Thread 3067424100 joined [17:16:33]Waiting for new connection... [17:16:33] Sock 7.Parse request [17:16:33]Sock 7.Check first char [17:16:33]Sock 7.First char is OK [17:16:33]request: POST /json_proto HTTP/1.0 [17:16:33]Method: POST [17:16:33]URL: /json_proto [17:16:33]Method is POST - this is cgi request [17:16:33]url: /json_proto [17:16:33]query_string will be loaded in cgi processing [17:16:33]execute_cgi json_proto POST (null) [17:16:33]execute_cgi path=json_proto method=POST [17:16:33]POST find Content-Length [17:16:33]Host: 172.17.38.134:8080 [17:16:33]Content-Length: 640 [17:16:33]Content-Type: application/json [17:16:33] [17:16:33]POST finish read [17:16:33]Found Content-Length = 640 [17:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:33]execute_script... [17:16:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:33]POST & json_proto [17:16:33]process_json_proto [17:16:33]json parsed OK: [17:16:33]protocol is kg_v1.0 [17:16:33]action value=close_receipt [17:16:33]process_action close_receipt [17:16:33]cmd_close_receipt [17:16:33]MH_GetDate [17:16:33]Write to MH i2c: F0 00 00 FA 08 F1 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: F0 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: F0 09 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: F0 09 00 FA 08 00 F2 C0 71 66 13 9C 7C 64 12 [17:16:33]GetLastDocTimeStamp 1718730677 [17:16:33]current date 1718730994 [17:16:33]FM_GetShiftState [17:16:33]SAM_PROTO_GetShiftState [17:16:33]wFMCommunicate request_size=4 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 13 01 00 [17:16:33]Write to MH i2c: E2 08 00 FB 08 80 13 01 00 00 00 00 00 80 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 0E 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 0E 00 FB 08 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CB [17:16:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:16:33]wFMCommunicate OK [17:16:33]SAM_PROTO_GetShiftState done [17:16:33]FM_GetShiftState done [17:16:33]opened in 1718670230 [17:16:33]opened+sec_in_day 1718756630 [17:16:33]quantity*price = 66400 [17:16:33]sum+1 = 66401 [17:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 81 18.06.2024 17:16 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34259 ФПД: 132514002178410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171634&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34259&fm=132514002178410&tin=02508201610067®Number=0000000000092786&sum=66400 [17:16:34]StoreToDocumentArchive [17:16:34]shift 323 fd 34259 [17:16:34]save to /storage/0323/doc_00034259 [17:16:34]save last doc name /storage/0323/doc_00034259 to /storage/kkm_last_doc_name [17:16:34]save OK [17:16:34]Clear old archive folders... [17:16:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:34]tlvbuf is 0191BF90 [17:16:34]SAM_PROTO_ClearQueue [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 09 00 00 [17:16:34]Write to MH i2c: E2 08 00 08 09 80 09 00 00 00 00 00 00 83 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 08 09 00 90 00 85 [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]SAM_PROTO_ClearQueue done [17:16:34]KKMCreateOFDPacket [17:16:34]OFDProtocolAddRootSTLVToBuf [17:16:34]FM_MakeSignedData [17:16:34]FM_MakeSignedData [17:16:34]SAM_PROTO_SignData [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 01 02 [17:16:34]Write to MH i2c: E2 08 00 09 09 80 0D 01 02 00 00 00 00 8B [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 09 09 00 90 00 86 [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]wFMCommunicate request_size=255 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F2 C0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D3 85 00 00 35 04 06 00 78 [17:16:34]Write to MH i2c: E2 02 01 0A 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F2 C0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D3 85 00 00 35 04 06 00 78 00 00 EC [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]OFD Sender: No OFD packet to send [17:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 0A 09 00 90 00 87 [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]wFMCommunicate request_size=10 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 02 02 05 85 52 07 11 6A [17:16:34]Write to MH i2c: E2 0D 00 0B 09 80 0D 02 02 05 00 85 52 07 11 6A 00 00 F1 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 0B 09 00 90 00 88 [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 03 02 [17:16:34]Write to MH i2c: E2 08 00 0C 09 80 0D 03 02 00 00 00 00 90 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 0B 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 0B 00 0C 09 00 78 95 CD 99 67 05 0C 0F 90 00 8B [17:16:34]RAPDU: 78 95 CD 99 67 05 0C 0F 90 00 [17:16:34]wFMCommunicate OK [17:16:34]SAM_PROTO_SignData done [17:16:34]FM_MakeSignedData done [17:16:34]CreateOFDProtocolMessage [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 11 00 00 [17:16:34]Write to MH i2c: E2 08 00 0D 09 80 11 00 00 00 00 00 00 90 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 17 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 17 00 0D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E5 [17:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:16:34]wFMCommunicate OK [17:16:34]CreateOFDProtocolMessage done [17:16:34]OFDSenderStorePacket 34259 [17:16:34]StoreOFDPacket docnum=34259 [17:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 F0 00 07 01 C3 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F2 C0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D3 85 00 00 35 04 06 00 78 85 52 07 11 6A 78 95 CD 99 67 05 0C 0F [17:16:34]CheckFolder [17:16:34]dirname=/storage/ofd_packets [17:16:34]CheckFolder done [17:16:34]ProducePacketName [17:16:34]name=ofd_packets/00034259 [17:16:34]NVStorageSaveData ofd_packets/00034259 [17:16:34]File name is /storage/ofd_packets/00034259 [17:16:34]Write 301 bytes [17:16:34]NVStorageSaveData done [17:16:34]OFDSenderStorePacket done [17:16:34]KKMCreateOFDPacket done [17:16:34]NVStorageSaveData kkm_last_timestamp [17:16:34]File name is /storage/kkm_last_timestamp [17:16:34]Write 4 bytes [17:16:34]NVStorageSaveData done [17:16:34]ExternCall_PrintAddStr [17:16:34]wPrintStart [17:16:34]Write to MH i2c: 01 00 00 0E 09 17 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 07 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 FF 0F 2C [17:16:34]RasterBufferAndPrint [17:16:34]line Счет N : (1)672676 [17:16:34]line ИНН: 02508201610067 [17:16:34]line Контрольно-Кассовый Чек [17:16:34]line ПРОДАЖА [17:16:34]line ТРК (МРК, ГНК) : 32 [17:16:34]line Товар: 2710124130 [17:16:34]line Аи-92-К-5 [17:16:34]line 10.000 * 66.40 [17:16:34]line = 664.00 [17:16:34]line НДС 12% НСП 1% [17:16:34]line > о реализуемом товаре [17:16:34]line ИТОГО: 664.00 [17:16:34]line НСП 1% : 5.88 [17:16:34]line НДС 12% : 70.51 [17:16:34]line Наличными: 664.00 [17:16:34]line Безнал.: 0.00 [17:16:34]line Место: АЗС № 120 "Партнер Нефть" [17:16:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:16:34]line СНО: Общий режим [17:16:34]line Чек 81 18.06.2024 17:16 [17:16:34]line Смена: 323 ФФД: 1.0 [17:16:34]line ЗНМ: 0300000172 [17:16:34]line РНМ: 0000000000092786 [17:16:34]line Версия ККМ: 001 [17:16:34]line ФМ: 0000000000875095 [17:16:34]line ФД: 34259 [17:16:34]line ФПД: 132514002178410 [17:16:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T171634&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34259&fm=132514002178410&tin=02508201610067®Number=0000000000092786&sum=66400 [17:16:35]OFD Sender: Processing packet 34259 [packets to send 8, broken 7] [17:16:35]ProducePacketName [17:16:35]name=ofd_packets/00034259 [17:16:35]OFD Sender: To server: pG, [17:16:35]CommunicateWithHost lk.salyk.kg:30040 [17:16:35]ConnectInit lk.salyk.kg [17:16:35]written 0, free lines is 4095 [17:16:35]Write to MH i2c: 01 00 00 36 09 3F [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 07 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 0C 0D 5F [17:16:35]RasterBufferAndPrint [17:16:35]line [17:16:35]line [17:16:35]line [17:16:35]line [17:16:35]line [17:16:35]written 0, free lines is 3346 [17:16:35]MH_Cut [17:16:35]Write to MH i2c: D1 01 00 3D 09 01 18 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: D1 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: D1 01 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: D1 01 00 3D 09 00 17 [17:16:35]Write to MH i2c: 01 00 00 3E 09 47 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:36]*** Cut start [17:16:36]*** Partial cut [17:16:36]*** CUTSNS_PIN = 1 [17:16:36]*** CUTSNS_PIN = 0 [17:16:36]*** Brake cut motor [17:16:36]Read from MH i2c: 01 [17:16:36]MH_I2C_Read... [17:16:36]*** Stop cut motor [17:16:36]*** Cut end [17:16:36]Read from MH i2c: 01 07 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: 01 07 00 3E 09 00 00 00 00 00 FF 0F 5C [17:16:36]process_action close_receipt done [17:16:36]requested_data is exist [17:16:36]produce_requested_data [17:16:36]requested_item fm.sn is exist - process it [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 11 00 00 [17:16:36]Write to MH i2c: E2 08 00 3F 09 80 11 00 00 00 00 00 00 C2 [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:36]Read from MH i2c: E2 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 17 00 [17:16:36]MH_I2C_Read... [17:16:36]Read from MH i2c: E2 17 00 3F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 17 [17:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:16:36]wFMCommunicate OK [17:16:36]requested_item fd.num is exist - process it [17:16:36]SAM_PROTO_GetFieldsCounters [17:16:36]wFMCommunicate request_size=4 [17:16:36]MH_SAM_APDU [17:16:36]CAPDU: 80 13 00 00 [17:16:36]Write to MH i2c: E2 08 00 40 09 80 13 00 00 00 00 00 00 C5 [17:16:36]Write i2c OK [17:16:36]MH_I2C_Read... [17:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:37]Read from MH i2c: E2 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 62 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 62 00 40 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D3 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D3 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:37]wFMCommunicate OK [17:16:37]SAM_PROTO_GetFieldsCounters done [17:16:37]requested_item shift.num is exist - process it [17:16:37]requested_item shift.opened is exist - process it [17:16:37]req_shift_opened [17:16:37]FM_GetShiftState [17:16:37]SAM_PROTO_GetShiftState [17:16:37]wFMCommunicate request_size=4 [17:16:37]MH_SAM_APDU [17:16:37]CAPDU: 80 13 01 00 [17:16:37]Write to MH i2c: E2 08 00 41 09 80 13 01 00 00 00 00 00 C7 [17:16:37]Write i2c OK [17:16:37]MH_I2C_Read... [17:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:37]Read from MH i2c: E2 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 0E 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 0E 00 41 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 12 [17:16:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:16:37]wFMCommunicate OK [17:16:37]SAM_PROTO_GetShiftState done [17:16:37]FM_GetShiftState done [17:16:37]req_shift_opened done [17:16:37]requested_item shift.open_date is exist - process it [17:16:37]req_shift_open_date [17:16:37]req_shift_open_date done [17:16:37]produce_requested_data done [17:16:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34259,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [17:16:37]process_action_free close_receipt [17:16:37]json_value_free [17:16:37]json_value_free done [17:16:37]process_json_proto returns [17:16:37]Send response to host [17:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34259,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [17:16:37]free response buf [17:16:37]execute_script done [17:16:37]execute_script returns [17:16:37]free content buf [17:16:37]Sock 7.Close socket [17:16:37]Sock 7.Thread stoped [17:18:48]ConnectInit Can't connect to host [17:18:48]CommunicateWithHost connect error [17:18:48]CommunicateWithHost err = -1 [17:18:48]OFD Sender: Server communicate error [17:18:53]OFD Sender: Processing packet 34259 [packets to send 8, broken 7] [17:18:53]ProducePacketName [17:18:53]name=ofd_packets/00034259 [17:18:53]OFD Sender: To server: pG, [17:18:53]CommunicateWithHost lk.salyk.kg:30040 [17:18:53]ConnectInit lk.salyk.kg [17:18:53]Connected sock=7 [17:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 F0 00 07 01 C3 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F2 C0 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D3 85 00 00 35 04 06 00 78 85 52 07 11 6A 78 95 CD 99 67 05 0C 0F [17:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 CE 61 47 00 6C 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D3 85 00 00 F4 03 04 00 4C 68 71 66 B6 04 01 00 00 3B F9 22 4B 33 D3 E6 7B [17:18:54]CommunicateWithHost err = 0 [17:18:54]CheckOFDResponse [17:18:54]1017 (14) - 77093643461234 [17:18:54]1041 (16) - 0000000000875095 [17:18:54]1040 (4) - 34259 [17:18:54]1012 (4) - 18.06.2024 10:58 [17:18:54]1206 (1) - 0 [17:18:54]OFD Sender: Remove packet 34259 [17:18:54]ProducePacketName [17:18:54]name=ofd_packets/00034259 [17:18:54]NVStorageDeleteData [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:41]accept exits with 9 [17:48:41]New connection [17:48:41]New thread 3067424100 created [17:48:41]Thread 3067567460 joined [17:48:41]Waiting for new connection... [17:48:41] Sock 9.Parse request [17:48:41]Sock 9.Check first char [17:48:41]Sock 9.First char is OK [17:48:41]request: POST /json_proto HTTP/1.0 [17:48:41]Method: POST [17:48:41]URL: /json_proto [17:48:41]Method is POST - this is cgi request [17:48:41]url: /json_proto [17:48:41]query_string will be loaded in cgi processing [17:48:41]execute_cgi json_proto POST (null) [17:48:41]execute_cgi path=json_proto method=POST [17:48:41]POST find Content-Length [17:48:41]Host: 172.17.38.134:8080 [17:48:41]Content-Length: 829 [17:48:41]Content-Type: application/json [17:48:41] [17:48:41]POST finish read [17:48:41]Found Content-Length = 829 [17:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184046", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 3.000, "sum" : 795.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" : 795.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:41]execute_script... [17:48: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)184046", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 3.000, "sum" : 795.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" : 795.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:41]POST & json_proto [17:48:41]process_json_proto [17:48:41]json parsed OK: [17:48:41]protocol is kg_v1.0 [17:48:41]action value=close_receipt [17:48:41]process_action close_receipt [17:48:41]cmd_close_receipt [17:48:41]MH_GetDate [17:48:41]Write to MH i2c: F0 00 00 42 09 3A [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: F0 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: F0 09 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: F0 09 00 42 09 00 7A C8 71 66 13 9C 7C 64 EB [17:48:41]GetLastDocTimeStamp 1718730994 [17:48:41]current date 1718732922 [17:48:41]FM_GetShiftState [17:48:41]SAM_PROTO_GetShiftState [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 13 01 00 [17:48:41]Write to MH i2c: E2 08 00 43 09 80 13 01 00 00 00 00 00 C9 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 0E 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 0E 00 43 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 14 [17:48:41]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:48:41]wFMCommunicate OK [17:48:41]SAM_PROTO_GetShiftState done [17:48:41]FM_GetShiftState done [17:48:41]opened in 1718670230 [17:48:41]opened+sec_in_day 1718756630 [17:48:41]quantity*price = 79500 [17:48:41]sum+1 = 79501 [17:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 795.00 НСП 1% : 7.03 НДС 12% : 84.42 Наличными: 0.00 Безнал.: 795.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 82 18.06.2024 17:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34260 ФПД: 93554577663987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T174842&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34260&fm=93554577663987&tin=02508201610067®Number=0000000000092786&sum=79500 0 [17:48:42]StoreToDocumentArchive [17:48:42]shift 323 fd 34260 [17:48:42]save to /storage/0323/doc_00034260 [17:48:42]save last doc name /storage/0323/doc_00034260 to /storage/kkm_last_doc_name [17:48:42]save OK [17:48:42]Clear old archive folders... [17:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=284 [17:48:42]tlvbuf is B6FEE9B0 [17:48:42]SAM_PROTO_ClearQueue [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 09 00 00 [17:48:42]Write to MH i2c: E2 08 00 50 09 80 09 00 00 00 00 00 00 CB [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 50 09 00 90 00 CD [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_ClearQueue done [17:48:42]KKMCreateOFDPacket [17:48:42]OFDProtocolAddRootSTLVToBuf [17:48:42]FM_MakeSignedData [17:48:42]FM_MakeSignedData [17:48:42]SAM_PROTO_SignData [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 0D 01 02 [17:48:42]Write to MH i2c: E2 08 00 51 09 80 0D 01 02 00 00 00 00 D3 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 51 09 00 90 00 CE [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]wFMCommunicate request_size=255 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 36 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7A C8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [17:48:42]Write to MH i2c: E2 02 01 52 09 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 36 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7A C8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 F9 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 52 09 00 90 00 CF [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]wFMCommunicate request_size=43 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D4 85 00 00 35 04 06 00 55 16 5F 5E 67 F3 [17:48:42]Write to MH i2c: E2 2E 00 53 09 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D4 85 00 00 35 04 06 00 55 16 5F 5E 67 F3 00 00 9B [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 53 09 00 90 00 D0 [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 0D 03 02 [17:48:42]Write to MH i2c: E2 08 00 54 09 80 0D 03 02 00 00 00 00 D8 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0B 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0B 00 54 09 00 52 D7 00 C5 19 DB B3 0D 90 00 7B [17:48:42]RAPDU: 52 D7 00 C5 19 DB B3 0D 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_SignData done [17:48:42]FM_MakeSignedData done [17:48:42]CreateOFDProtocolMessage [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 11 00 00 [17:48:42]Write to MH i2c: E2 08 00 55 09 80 11 00 00 00 00 00 00 D8 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 55 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 2D [17:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:48:42]wFMCommunicate OK [17:48:42]CreateOFDProtocolMessage done [17:48:42]OFDSenderStorePacket 34260 [17:48:42]StoreOFDPacket docnum=34260 [17:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 14 E4 28 01 08 E9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 36 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7A C8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D4 85 00 00 35 04 06 00 55 16 5F 5E 67 F3 52 D7 00 C5 19 DB B3 0D [17:48:42]CheckFolder [17:48:42]dirname=/storage/ofd_packets [17:48:42]CheckFolder done [17:48:42]ProducePacketName [17:48:42]name=ofd_packets/00034260 [17:48:42]NVStorageSaveData ofd_packets/00034260 [17:48:42]File name is /storage/ofd_packets/00034260 [17:48:42]Write 334 bytes [17:48:42]NVStorageSaveData done [17:48:42]OFDSenderStorePacket done [17:48:42]KKMCreateOFDPacket done [17:48:42]NVStorageSaveData kkm_last_timestamp [17:48:42]File name is /storage/kkm_last_timestamp [17:48:42]Write 4 bytes [17:48:42]NVStorageSaveData done [17:48:42]ExternCall_PrintAddStr [17:48:42]wPrintStart [17:48:42]Write to MH i2c: 01 00 00 56 09 5F [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 FF 0F 74 [17:48:42]RasterBufferAndPrint [17:48:42]line Счет N : (3)184046 [17:48:42]line ИНН: 02508201610067 [17:48:42]line Контрольно-Кассовый Чек [17:48:42]line ПРОДАЖА [17:48:42]line Товар: 9002490206550 [17:48:42]line Энерг напиток Red Bull 0,355л [17:48:42]line 3.000 * 265.00 [17:48:42]line = 795.00 [17:48:42]line НДС 12% НСП 1% [17:48:42]line > о реализуемом товаре [17:48:42]line ИТОГО: 795.00 [17:48:42]line НСП 1% : 7.03 [17:48:42]line НДС 12% : 84.42 [17:48:42]line Наличными: 0.00 [17:48:42]line Безнал.: 795.00 [17:48:42]line Место: АЗС № 120 "Партнер Нефть" [17:48:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:48:42]line СНО: Общий режим [17:48:42]line Чек 82 18.06.2024 17:48 [17:48:42]line Смена: 323 ФФД: 1.0 [17:48:42]line ЗНМ: 0300000172 [17:48:42]line РНМ: 0000000000092786 [17:48:42]line Версия ККМ: 001 [17:48:42]line Платежная система: Бакай Банк [17:48:42]line ФМ: 0000000000875095 [17:48:42]line ФД: 34260 [17:48:42]line ФПД: 93554577663987 [17:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T174842&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34260&fm=93554577663987&tin=02508201610067®Number=0000000000092786&sum=79500 [17:48:43]line 0 [17:48:43]OFD Sender: Processing packet 34260 [packets to send 8, broken 7] [17:48:43]ProducePacketName [17:48:43]name=ofd_packets/00034260 [17:48:43]OFD Sender: To server: pG, [17:48:43]CommunicateWithHost lk.salyk.kg:30040 [17:48:43]ConnectInit lk.salyk.kg [17:48:43]written 0, free lines is 4095 [17:48:43]Connected sock=10 [17:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 30 01 00 00 14 E4 28 01 08 E9 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 36 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7A C8 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D4 85 00 00 35 04 06 00 55 16 5F 5E 67 F3 52 D7 00 C5 19 DB B3 0D [17:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 D3 4F 47 00 9D E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D4 85 00 00 F4 03 04 00 49 6F 71 66 B6 04 01 00 00 9A 5B 42 13 D8 C0 4F AE [17:48:43]CommunicateWithHost err = 0 [17:48:43]CheckOFDResponse [17:48:43]1017 (14) - 77093643461234 [17:48:43]1041 (16) - 0000000000875095 [17:48:43]1040 (4) - 34260 [17:48:43]1012 (4) - 18.06.2024 11:28 [17:48:43]1206 (1) - 0 [17:48:43]OFD Sender: Remove packet 34260 [17:48:43]ProducePacketName [17:48:43]name=ofd_packets/00034260 [17:48:43]NVStorageDeleteData [17:48:43]Write to MH i2c: 01 00 00 80 09 89 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: 01 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: 01 07 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: 01 07 00 80 09 00 00 00 00 00 EA 0C 86 [17:48:43]RasterBufferAndPrint [17:48:43]line [17:48:43]line [17:48:43]line [17:48:43]line [17:48:43]line [17:48:43]written 0, free lines is 3313 [17:48:43]MH_Cut [17:48:43]Write to MH i2c: D1 01 00 87 09 01 62 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: D1 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: D1 01 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: D1 01 00 87 09 00 61 [17:48:43]Write to MH i2c: 01 00 00 88 09 91 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:44]OFD Sender: No OFD packet to send [17:48:44]*** Cut start [17:48:44]*** Partial cut [17:48:44]*** CUTSNS_PIN = 1 [17:48:44]*** CUTSNS_PIN = 0 [17:48:44]*** Brake cut motor [17:48:44]Read from MH i2c: 01 [17:48:45]MH_I2C_Read... [17:48:45]*** Stop cut motor [17:48:45]Read from MH i2c: 01 07 00 [17:48:45]MH_I2C_Read... [17:48:45]*** Cut end [17:48:45]Read from MH i2c: 01 07 00 88 09 00 00 00 00 00 FF 0F A6 [17:48:45]process_action close_receipt done [17:48:45]requested_data is exist [17:48:45]produce_requested_data [17:48:45]requested_item fm.sn is exist - process it [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 11 00 00 [17:48:45]Write to MH i2c: E2 08 00 89 09 80 11 00 00 00 00 00 00 0C [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 17 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 17 00 89 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 61 [17:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:48:45]wFMCommunicate OK [17:48:45]requested_item fd.num is exist - process it [17:48:45]SAM_PROTO_GetFieldsCounters [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 13 00 00 [17:48:45]Write to MH i2c: E2 08 00 8A 09 80 13 00 00 00 00 00 00 0F [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 62 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 62 00 8A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D4 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [17:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D4 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:45]wFMCommunicate OK [17:48:45]SAM_PROTO_GetFieldsCounters done [17:48:45]requested_item shift.num is exist - process it [17:48:45]requested_item shift.opened is exist - process it [17:48:45]req_shift_opened [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 8B 09 80 13 01 00 00 00 00 00 11 [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 8B 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 5C [17:48:45]RAPDU: 09 00 01 96 D3 70 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]req_shift_opened done [17:48:45]requested_item shift.open_date is exist - process it [17:48:45]req_shift_open_date [17:48:45]req_shift_open_date done [17:48:45]produce_requested_data done [17:48:45]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34260,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [17:48:45]process_action_free close_receipt [17:48:45]json_value_free [17:48:45]json_value_free done [17:48:45]process_json_proto returns [17:48:45]Send response to host [17:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34260,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [17:48:45]free response buf [17:48:45]execute_script done [17:48:45]execute_script returns [17:48:45]free content buf [17:48:45]Sock 9.Close socket [17:48:45]Sock 9.Thread stoped [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [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:03]accept exits with 7 [17:59:03]New connection [17:59:03]New thread 3067567460 created [17:59:03]Thread 3067424100 joined [17:59:03]Waiting for new connection... [17:59:03] Sock 7.Parse request [17:59:03]Sock 7.Check first char [17:59:03]Sock 7.First char is OK [17:59:03]request: POST /json_proto HTTP/1.0 [17:59:03]Method: POST [17:59:03]URL: /json_proto [17:59:03]Method is POST - this is cgi request [17:59:03]url: /json_proto [17:59:03]query_string will be loaded in cgi processing [17:59:03]execute_cgi json_proto POST (null) [17:59:03]execute_cgi path=json_proto method=POST [17:59:03]POST find Content-Length [17:59:03]Host: 172.17.38.134:8080 [17:59:03]Content-Length: 669 [17:59:03]Content-Type: application/json [17:59:03] [17:59:03]POST finish read [17:59:03]Found Content-Length = 669 [17:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184047", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:03]execute_script... [17:59:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184047", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:03]POST & json_proto [17:59:03]process_json_proto [17:59:03]json parsed OK: [17:59:03]protocol is kg_v1.0 [17:59:03]action value=close_receipt [17:59:03]process_action close_receipt [17:59:03]cmd_close_receipt [17:59:03]MH_GetDate [17:59:03]Write to MH i2c: F0 00 00 8C 09 84 [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: F0 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: F0 09 00 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: F0 09 00 8C 09 00 E8 CA 71 66 13 9C 7C 64 A5 [17:59:03]GetLastDocTimeStamp 1718732922 [17:59:03]current date 1718733544 [17:59:03]FM_GetShiftState [17:59:03]SAM_PROTO_GetShiftState [17:59:03]wFMCommunicate request_size=4 [17:59:03]MH_SAM_APDU [17:59:03]CAPDU: 80 13 01 00 [17:59:03]Write to MH i2c: E2 08 00 8D 09 80 13 01 00 00 00 00 00 13 [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:03]Read from MH i2c: E2 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: E2 0E 00 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: E2 0E 00 8D 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 5E [17:59:03]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:59:03]wFMCommunicate OK [17:59:03]SAM_PROTO_GetShiftState done [17:59:03]FM_GetShiftState done [17:59:03]opened in 1718670230 [17:59:03]opened+sec_in_day 1718756630 [17:59:03]quantity*price = 22000 [17:59:03]sum+1 = 22001 [17:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 83 18.06.2024 17:59 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34261 ФПД: 4630511077919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175904&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34261&fm=4630511077919&tin=02508201610067®Number=0000000000092786&sum=22000 0 [17:59:04]StoreToDocumentArchive [17:59:04]shift 323 fd 34261 [17:59:04]save to /storage/0323/doc_00034261 [17:59:04]save last doc name /storage/0323/doc_00034261 to /storage/kkm_last_doc_name [17:59:04]save OK [17:59:04]Clear old archive folders... [17:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:59:04]tlvbuf is 018ED060 [17:59:04]SAM_PROTO_ClearQueue [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 09 00 00 [17:59:04]Write to MH i2c: E2 08 00 9A 09 80 09 00 00 00 00 00 00 15 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 9A 09 00 90 00 17 [17:59:04]RAPDU: 90 00 [17:59:04]wFMCommunicate OK [17:59:04]SAM_PROTO_ClearQueue done [17:59:04]KKMCreateOFDPacket [17:59:04]OFDProtocolAddRootSTLVToBuf [17:59:04]FM_MakeSignedData [17:59:04]FM_MakeSignedData [17:59:04]SAM_PROTO_SignData [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 0D 01 02 [17:59:04]Write to MH i2c: E2 08 00 9B 09 80 0D 01 02 00 00 00 00 1D [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 9B 09 00 90 00 18 [17:59:04]RAPDU: 90 00 [17:59:04]wFMCommunicate OK [17:59:04]wFMCommunicate request_size=255 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 E8 CA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:59:04]Write to MH i2c: E2 02 01 9C 09 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 E8 CA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 A3 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:04]OFD Sender: No OFD packet to send [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 9C 09 00 90 00 19 [17:59:04]RAPDU: 90 00 [17:59:04]wFMCommunicate OK [17:59:04]wFMCommunicate request_size=52 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D5 85 00 00 35 04 06 00 04 36 1F F7 CA 1F [17:59:04]Write to MH i2c: E2 37 00 9D 09 80 0D 02 02 2F 00 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D5 85 00 00 35 04 06 00 04 36 1F F7 CA 1F 00 00 7F [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 03 00 9D 09 00 90 00 1A [17:59:04]RAPDU: 90 00 [17:59:04]wFMCommunicate OK [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 0D 03 02 [17:59:04]Write to MH i2c: E2 08 00 9E 09 80 0D 03 02 00 00 00 00 22 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 0B 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 0B 00 9E 09 00 E3 70 01 D7 B7 28 77 94 90 00 38 [17:59:04]RAPDU: E3 70 01 D7 B7 28 77 94 90 00 [17:59:04]wFMCommunicate OK [17:59:04]SAM_PROTO_SignData done [17:59:04]FM_MakeSignedData done [17:59:04]CreateOFDProtocolMessage [17:59:04]wFMCommunicate request_size=4 [17:59:04]MH_SAM_APDU [17:59:04]CAPDU: 80 11 00 00 [17:59:04]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:04]Read from MH i2c: E2 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 17 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 77 [17:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:59:04]wFMCommunicate OK [17:59:04]CreateOFDProtocolMessage done [17:59:04]OFDSenderStorePacket 34261 [17:59:04]StoreOFDPacket docnum=34261 [17:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 B1 CC 31 01 42 4C 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 E8 CA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D5 85 00 00 35 04 06 00 04 36 1F F7 CA 1F E3 70 01 D7 B7 28 77 94 [17:59:04]CheckFolder [17:59:04]dirname=/storage/ofd_packets [17:59:04]CheckFolder done [17:59:04]ProducePacketName [17:59:04]name=ofd_packets/00034261 [17:59:04]NVStorageSaveData ofd_packets/00034261 [17:59:04]File name is /storage/ofd_packets/00034261 [17:59:04]Write 343 bytes [17:59:04]NVStorageSaveData done [17:59:04]OFDSenderStorePacket done [17:59:04]KKMCreateOFDPacket done [17:59:04]NVStorageSaveData kkm_last_timestamp [17:59:04]File name is /storage/kkm_last_timestamp [17:59:04]Write 4 bytes [17:59:04]NVStorageSaveData done [17:59:04]ExternCall_PrintAddStr [17:59:04]wPrintStart [17:59:04]Write to MH i2c: 01 00 00 A0 09 A9 [17:59:04]Write i2c OK [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: 01 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: 01 07 00 [17:59:04]MH_I2C_Read... [17:59:04]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 FF 0F BE [17:59:04]RasterBufferAndPrint [17:59:04]line Счет N : (3)184047 [17:59:04]line ИНН: 02508201610067 [17:59:04]line Контрольно-Кассовый Чек [17:59:04]line ПРОДАЖА [17:59:04]line Товар: 4870022003305 [17:59:04]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:59:04]line 2.000 * 110.00 [17:59:04]line = 220.00 [17:59:04]line НДС 12% НСП 1% [17:59:04]line > о реализуемом товаре [17:59:04]line ИТОГО: 220.00 [17:59:04]line НСП 1% : 1.95 [17:59:04]line НДС 12% : 23.36 [17:59:04]line Наличными: 220.00 [17:59:04]line Безнал.: 0.00 [17:59:04]line Место: АЗС № 120 "Партнер Нефть" [17:59:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:59:04]line СНО: Общий режим [17:59:04]line Чек 83 18.06.2024 17:59 [17:59:04]line Смена: 323 ФФД: 1.0 [17:59:04]line ЗНМ: 0300000172 [17:59:04]line РНМ: 0000000000092786 [17:59:04]line Версия ККМ: 001 [17:59:04]line ФМ: 0000000000875095 [17:59:04]line ФД: 34261 [17:59:04]line ФПД: 4630511077919 [17:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175904&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34261&fm=4630511077919&tin=02508201610067®Number=0000000000092786&sum=22000 [17:59:04]line 0 [17:59:04]written 0, free lines is 4095 [17:59:04]OFD Sender: Processing packet 34261 [packets to send 8, broken 7] [17:59:04]ProducePacketName [17:59:04]name=ofd_packets/00034261 [17:59:04]OFD Sender: To server: pG, [17:59:04]CommunicateWithHost lk.salyk.kg:30040 [17:59:04]ConnectInit lk.salyk.kg [17:59:04]Connected sock=10 [17:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 39 01 00 00 B1 CC 31 01 42 4C 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 E8 CA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D5 85 00 00 35 04 06 00 04 36 1F F7 CA 1F E3 70 01 D7 B7 28 77 94 [17:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 AC B8 47 00 A6 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D5 85 00 00 F4 03 04 00 B7 71 71 66 B6 04 01 00 00 3A 85 B5 AA E6 C9 5B C5 [17:59:05]CommunicateWithHost err = 0 [17:59:05]CheckOFDResponse [17:59:05]1017 (14) - 77093643461234 [17:59:05]1041 (16) - 0000000000875095 [17:59:05]1040 (4) - 34261 [17:59:05]1012 (4) - 18.06.2024 11:38 [17:59:05]1206 (1) - 0 [17:59:05]OFD Sender: Remove packet 34261 [17:59:05]ProducePacketName [17:59:05]name=ofd_packets/00034261 [17:59:05]NVStorageDeleteData [17:59:05]Write to MH i2c: 01 00 00 C9 09 D2 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: 01 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: 01 07 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: 01 07 00 C9 09 00 00 00 00 00 F4 0C D9 [17:59:05]RasterBufferAndPrint [17:59:05]line [17:59:05]line [17:59:05]line [17:59:05]line [17:59:05]line [17:59:05]written 0, free lines is 3323 [17:59:05]MH_Cut [17:59:05]Write to MH i2c: D1 01 00 D0 09 01 AB [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: D1 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: D1 01 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: D1 01 00 D0 09 00 AA [17:59:05]Write to MH i2c: 01 00 00 D1 09 DA [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]OFD Sender: No OFD packet to send [17:59:06]*** Cut start [17:59:06]*** Partial cut [17:59:06]*** CUTSNS_PIN = 1 [17:59:06]*** CUTSNS_PIN = 0 [17:59:06]*** Brake cut motor [17:59:06]Read from MH i2c: 01 [17:59:06]MH_I2C_Read... [17:59:06]*** Stop cut motor [17:59:06]*** Cut end [17:59:06]Read from MH i2c: 01 07 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 07 00 D1 09 00 00 00 00 00 FF 0F EF [17:59:06]process_action close_receipt done [17:59:06]requested_data is exist [17:59:06]produce_requested_data [17:59:06]requested_item fm.sn is exist - process it [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 11 00 00 [17:59:06]Write to MH i2c: E2 08 00 D2 09 80 11 00 00 00 00 00 00 55 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 17 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 17 00 D2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AA [17:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:59:06]wFMCommunicate OK [17:59:06]requested_item fd.num is exist - process it [17:59:06]SAM_PROTO_GetFieldsCounters [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 13 00 00 [17:59:06]Write to MH i2c: E2 08 00 D3 09 80 13 00 00 00 00 00 00 58 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 62 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 62 00 D3 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [17:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:06]wFMCommunicate OK [17:59:06]SAM_PROTO_GetFieldsCounters done [17:59:06]requested_item shift.num is exist - process it [17:59:06]requested_item shift.opened is exist - process it [17:59:06]req_shift_opened [17:59:06]FM_GetShiftState [17:59:06]SAM_PROTO_GetShiftState [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 13 01 00 [17:59:06]Write to MH i2c: E2 08 00 D4 09 80 13 01 00 00 00 00 00 5A [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 0E 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 0E 00 D4 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 A5 [17:59:06]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:59:06]wFMCommunicate OK [17:59:06]SAM_PROTO_GetShiftState done [17:59:06]FM_GetShiftState done [17:59:06]req_shift_opened done [17:59:06]requested_item shift.open_date is exist - process it [17:59:06]req_shift_open_date [17:59:06]req_shift_open_date done [17:59:06]produce_requested_data done [17:59:06]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34261,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [17:59:06]process_action_free close_receipt [17:59:06]json_value_free [17:59:06]json_value_free done [17:59:06]process_json_proto returns [17:59:06]Send response to host [17:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34261,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [17:59:06]free response buf [17:59:06]execute_script done [17:59:06]execute_script returns [17:59:06]free content buf [17:59:06]Sock 7.Close socket [17:59:06]Sock 7.Thread stoped [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:47]accept exits with 9 [17:59:47]New connection [17:59:47]New thread 3067424100 created [17:59:47]Thread 3067567460 joined [17:59:47]Waiting for new connection... [17:59:47] Sock 9.Parse request [17:59:47]Sock 9.Check first char [17:59:47]Sock 9.First char is OK [17:59:47]request: POST /json_proto HTTP/1.0 [17:59:47]Method: POST [17:59:47]URL: /json_proto [17:59:47]Method is POST - this is cgi request [17:59:47]url: /json_proto [17:59:47]query_string will be loaded in cgi processing [17:59:47]execute_cgi json_proto POST (null) [17:59:47]execute_cgi path=json_proto method=POST [17:59:47]POST find Content-Length [17:59:47]Host: 172.17.38.134:8080 [17:59:47]Content-Length: 729 [17:59:47]Content-Type: application/json [17:59:47] [17:59:47]POST finish read [17:59:47]Found Content-Length = 729 [17:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 34261, "base_FM": "0000000000875095", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184047", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "34261" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:47]execute_script... [17:59:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 34261, "base_FM": "0000000000875095", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184047", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "34261" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:47]POST & json_proto [17:59:47]process_json_proto [17:59:47]json parsed OK: [17:59:47]protocol is kg_v1.0 [17:59:47]action value=close_receipt [17:59:47]process_action close_receipt [17:59:47]cmd_close_receipt [17:59:47]MH_GetDate [17:59:47]Write to MH i2c: F0 00 00 D5 09 CD [17:59:47]Write i2c OK [17:59:47]MH_I2C_Read... [17:59:47]Read from MH i2c: F0 [17:59:47]MH_I2C_Read... [17:59:47]Read from MH i2c: F0 09 00 [17:59:47]MH_I2C_Read... [17:59:47]Read from MH i2c: F0 09 00 D5 09 00 14 CB 71 66 13 9C 7C 64 1B [17:59:47]GetLastDocTimeStamp 1718733544 [17:59:47]current date 1718733588 [17:59:47]FM_GetShiftState [17:59:47]SAM_PROTO_GetShiftState [17:59:47]wFMCommunicate request_size=4 [17:59:47]MH_SAM_APDU [17:59:47]CAPDU: 80 13 01 00 [17:59:47]Write to MH i2c: E2 08 00 D6 09 80 13 01 00 00 00 00 00 5C [17:59:47]Write i2c OK [17:59:47]MH_I2C_Read... [17:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:47]Read from MH i2c: E2 [17:59:47]MH_I2C_Read... [17:59:47]Read from MH i2c: E2 0E 00 [17:59:47]MH_I2C_Read... [17:59:47]Read from MH i2c: E2 0E 00 D6 09 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 A7 [17:59:47]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:59:47]wFMCommunicate OK [17:59:47]SAM_PROTO_GetShiftState done [17:59:47]FM_GetShiftState done [17:59:47]opened in 1718670230 [17:59:47]opened+sec_in_day 1718756630 [17:59:47]quantity*price = 22000 [17:59:47]sum+1 = 22001 [17:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 84 18.06.2024 17:59 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФД осн.: 34261 ФМ осн.: 0000000000875095 ФМ: 0000000000875095 ФД: 34262 ФПД: 267772733307251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175948&type=2&operation_type=1&fn_number=0000000000875095&fd_number=34262&fm=267772733307251&tin=02508201610067®Number=0000000000092786&sum=22000 34261 [17:59:48]StoreToDocumentArchive [17:59:48]shift 323 fd 34262 [17:59:48]save to /storage/0323/doc_00034262 [17:59:48]save last doc name /storage/0323/doc_00034262 to /storage/kkm_last_doc_name [17:59:48]save OK [17:59:48]Clear old archive folders... [17:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=321 [17:59:48]tlvbuf is 0190FF10 [17:59:48]SAM_PROTO_ClearQueue [17:59:48]wFMCommunicate request_size=4 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 09 00 00 [17:59:48]Write to MH i2c: E2 08 00 E5 09 80 09 00 00 00 00 00 00 60 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:48]Read from MH i2c: E2 03 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 03 00 E5 09 00 90 00 62 [17:59:48]RAPDU: 90 00 [17:59:48]wFMCommunicate OK [17:59:48]SAM_PROTO_ClearQueue done [17:59:48]KKMCreateOFDPacket [17:59:48]OFDProtocolAddRootSTLVToBuf [17:59:48]FM_MakeSignedData [17:59:48]FM_MakeSignedData [17:59:48]SAM_PROTO_SignData [17:59:48]wFMCommunicate request_size=4 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 0D 01 02 [17:59:48]Write to MH i2c: E2 08 00 E6 09 80 0D 01 02 00 00 00 00 68 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:48]Read from MH i2c: E2 03 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 03 00 E6 09 00 90 00 63 [17:59:48]RAPDU: 90 00 [17:59:48]wFMCommunicate OK [17:59:48]wFMCommunicate request_size=255 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 0D 02 02 FA 03 00 41 01 1E 04 01 00 02 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:59:48]Write to MH i2c: E2 02 01 E7 09 80 0D 02 02 FA 00 03 00 41 01 1E 04 01 00 02 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 39 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 03 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [17:59:48]RAPDU: 90 00 [17:59:48]wFMCommunicate OK [17:59:48]wFMCommunicate request_size=80 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 0D 02 02 4B 30 30 30 30 39 32 37 38 36 27 04 04 00 D5 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D6 85 00 00 35 04 06 00 F3 89 B2 A6 39 73 [17:59:48]Write to MH i2c: E2 53 00 E8 09 80 0D 02 02 4B 00 30 30 30 30 39 32 37 38 36 27 04 04 00 D5 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D6 85 00 00 35 04 06 00 F3 89 B2 A6 39 73 00 00 31 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 03 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 03 00 E8 09 00 90 00 65 [17:59:48]RAPDU: 90 00 [17:59:48]wFMCommunicate OK [17:59:48]wFMCommunicate request_size=4 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 0D 03 02 [17:59:48]Write to MH i2c: E2 08 00 E9 09 80 0D 03 02 00 00 00 00 6D [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 0B 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 0B 00 E9 09 00 36 AB 86 68 01 15 B2 01 90 00 06 [17:59:48]RAPDU: 36 AB 86 68 01 15 B2 01 90 00 [17:59:48]wFMCommunicate OK [17:59:48]SAM_PROTO_SignData done [17:59:48]FM_MakeSignedData done [17:59:48]CreateOFDProtocolMessage [17:59:48]wFMCommunicate request_size=4 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 11 00 00 [17:59:48]Write to MH i2c: E2 08 00 EA 09 80 11 00 00 00 00 00 00 6D [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 17 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 17 00 EA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C2 [17:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:59:48]wFMCommunicate OK [17:59:48]CreateOFDProtocolMessage done [17:59:48]OFDSenderStorePacket 34262 [17:59:48]StoreOFDPacket docnum=34262 [17:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 55 01 00 00 C6 D4 4D 01 48 76 5A 03 01 00 03 00 41 01 1E 04 01 00 02 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 D5 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D6 85 00 00 35 04 06 00 F3 89 B2 A6 39 73 36 AB 86 68 01 15 B2 01 [17:59:48]CheckFolder [17:59:48]dirname=/storage/ofd_packets [17:59:48]CheckFolder done [17:59:48]ProducePacketName [17:59:48]name=ofd_packets/00034262 [17:59:48]NVStorageSaveData ofd_packets/00034262 [17:59:48]File name is /storage/ofd_packets/00034262 [17:59:48]Write 371 bytes [17:59:48]NVStorageSaveData done [17:59:48]OFDSenderStorePacket done [17:59:48]KKMCreateOFDPacket done [17:59:48]NVStorageSaveData kkm_last_timestamp [17:59:48]File name is /storage/kkm_last_timestamp [17:59:48]Write 4 bytes [17:59:48]NVStorageSaveData done [17:59:48]ExternCall_PrintAddStr [17:59:48]wPrintStart [17:59:48]Write to MH i2c: 01 00 00 EB 09 F4 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: 01 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: 01 07 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [17:59:48]RasterBufferAndPrint [17:59:48]line Счет N : (3)184047 [17:59:48]line ИНН: 02508201610067 [17:59:48]line Контрольно-Кассовый Чек [17:59:48]line ВОЗВРАТ ПРОДАЖИ [17:59:48]line Товар: 4870022003305 [17:59:48]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:59:48]line 2.000 * 110.00 [17:59:48]line = 220.00 [17:59:48]line НДС 12% НСП 1% [17:59:48]line > о реализуемом товаре [17:59:48]line ИТОГО: 220.00 [17:59:48]line НСП 1% : 1.95 [17:59:48]line НДС 12% : 23.36 [17:59:48]line Наличными: 220.00 [17:59:48]line Безнал.: 0.00 [17:59:48]line Место: АЗС № 120 "Партнер Нефть" [17:59:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:59:48]line СНО: Общий режим [17:59:48]line Чек 84 18.06.2024 17:59 [17:59:48]line Смена: 323 ФФД: 1.0 [17:59:48]line ЗНМ: 0300000172 [17:59:48]line РНМ: 0000000000092786 [17:59:48]line Версия ККМ: 001 [17:59:48]line ФД осн.: 34261 [17:59:48]line ФМ осн.: 0000000000875095 [17:59:48]line ФМ: 0000000000875095 [17:59:48]line ФД: 34262 [17:59:48]line ФПД: 267772733307251 [17:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T175948&type=2&operation_type=1&fn_number=0000000000875095&fd_number=34262&fm=267772733307251&tin=02508201610067®Number=0000000000092786&sum=22000 [17:59:49]line 34261 [17:59:49]OFD Sender: Processing packet 34262 [packets to send 8, broken 7] [17:59:49]ProducePacketName [17:59:49]name=ofd_packets/00034262 [17:59:49]OFD Sender: To server: pG, [17:59:49]CommunicateWithHost lk.salyk.kg:30040 [17:59:49]ConnectInit lk.salyk.kg [17:59:49]written 0, free lines is 4095 [17:59:49]Connected sock=10 [17:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 55 01 00 00 C6 D4 4D 01 48 76 5A 03 01 00 03 00 41 01 1E 04 01 00 02 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 27 04 04 00 D5 85 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D6 85 00 00 35 04 06 00 F3 89 B2 A6 39 73 36 AB 86 68 01 15 B2 01 [17:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8A 64 47 00 C8 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D6 85 00 00 F4 03 04 00 E3 71 71 66 B6 04 01 00 00 06 6F 7D 10 0D FC 78 07 [17:59:49]CommunicateWithHost err = 0 [17:59:49]CheckOFDResponse [17:59:49]1017 (14) - 77093643461234 [17:59:49]1041 (16) - 0000000000875095 [17:59:49]1040 (4) - 34262 [17:59:49]1012 (4) - 18.06.2024 11:39 [17:59:49]1206 (1) - 0 [17:59:49]OFD Sender: Remove packet 34262 [17:59:49]ProducePacketName [17:59:49]name=ofd_packets/00034262 [17:59:49]NVStorageDeleteData [17:59:49]Write to MH i2c: 01 00 00 16 0A 20 [17:59:49]Write i2c OK [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: 01 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: 01 07 00 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: 01 07 00 16 0A 00 00 00 00 00 F4 0C 27 [17:59:49]RasterBufferAndPrint [17:59:49]line [17:59:49]line [17:59:49]line [17:59:49]line [17:59:49]line [17:59:49]written 0, free lines is 3324 [17:59:49]MH_Cut [17:59:49]Write to MH i2c: D1 01 00 1D 0A 01 F9 [17:59:49]Write i2c OK [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: D1 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: D1 01 00 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: D1 01 00 1D 0A 00 F8 [17:59:49]Write to MH i2c: 01 00 00 1E 0A 28 [17:59:49]Write i2c OK [17:59:49]MH_I2C_Read... [17:59:50]OFD Sender: No OFD packet to send [17:59:50]*** Cut start [17:59:50]*** Partial cut [17:59:50]*** CUTSNS_PIN = 1 [17:59:50]*** CUTSNS_PIN = 0 [17:59:50]*** Brake cut motor [17:59:51]Read from MH i2c: 01 [17:59:51]MH_I2C_Read... [17:59:51]*** Stop cut motor [17:59:51]*** Cut end [17:59:51]Read from MH i2c: 01 07 00 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: 01 07 00 1E 0A 00 00 00 00 00 FF 0F 3D [17:59:51]process_action close_receipt done [17:59:51]requested_data is exist [17:59:51]produce_requested_data [17:59:51]requested_item fm.sn is exist - process it [17:59:51]wFMCommunicate request_size=4 [17:59:51]MH_SAM_APDU [17:59:51]CAPDU: 80 11 00 00 [17:59:51]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [17:59:51]Write i2c OK [17:59:51]MH_I2C_Read... [17:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:51]Read from MH i2c: E2 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: E2 17 00 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F8 [17:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [17:59:51]wFMCommunicate OK [17:59:51]requested_item fd.num is exist - process it [17:59:51]SAM_PROTO_GetFieldsCounters [17:59:51]wFMCommunicate request_size=4 [17:59:51]MH_SAM_APDU [17:59:51]CAPDU: 80 13 00 00 [17:59:51]Write to MH i2c: E2 08 00 20 0A 80 13 00 00 00 00 00 00 A6 [17:59:51]Write i2c OK [17:59:51]MH_I2C_Read... [17:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:51]Read from MH i2c: E2 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: E2 62 00 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: E2 62 00 20 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:51]wFMCommunicate OK [17:59:51]SAM_PROTO_GetFieldsCounters done [17:59:51]requested_item shift.num is exist - process it [17:59:51]requested_item shift.opened is exist - process it [17:59:51]req_shift_opened [17:59:51]FM_GetShiftState [17:59:51]SAM_PROTO_GetShiftState [17:59:51]wFMCommunicate request_size=4 [17:59:51]MH_SAM_APDU [17:59:51]CAPDU: 80 13 01 00 [17:59:51]Write to MH i2c: E2 08 00 21 0A 80 13 01 00 00 00 00 00 A8 [17:59:51]Write i2c OK [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: E2 [17:59:51]MH_I2C_Read... [17:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:51]Read from MH i2c: E2 0E 00 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: E2 0E 00 21 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F3 [17:59:51]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [17:59:51]wFMCommunicate OK [17:59:51]SAM_PROTO_GetShiftState done [17:59:51]FM_GetShiftState done [17:59:51]req_shift_opened done [17:59:51]requested_item shift.open_date is exist - process it [17:59:51]req_shift_open_date [17:59:51]req_shift_open_date done [17:59:51]produce_requested_data done [17:59:51]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34262,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [17:59:51]process_action_free close_receipt [17:59:51]json_value_free [17:59:51]json_value_free done [17:59:51]process_json_proto returns [17:59:51]Send response to host [17:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34262,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [17:59:51]free response buf [17:59:51]execute_script done [17:59:51]execute_script returns [17:59:51]free content buf [17:59:51]Sock 9.Close socket [17:59:51]Sock 9.Thread stoped [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:28]accept exits with 7 [18:02:28]New connection [18:02:28]New thread 3067567460 created [18:02:28]Thread 3067424100 joined [18:02:28]Waiting for new connection... [18:02:28] Sock 7.Parse request [18:02:28]Sock 7.Check first char [18:02:28]Sock 7.First char is OK [18:02:28]request: POST /json_proto HTTP/1.0 [18:02:28]Method: POST [18:02:28]URL: /json_proto [18:02:28]Method is POST - this is cgi request [18:02:28]url: /json_proto [18:02:28]query_string will be loaded in cgi processing [18:02:28]execute_cgi json_proto POST (null) [18:02:28]execute_cgi path=json_proto method=POST [18:02:28]POST find Content-Length [18:02:28]Host: 172.17.38.134:8080 [18:02:28]Content-Length: 972 [18:02:28]Content-Type: application/json [18:02:28] [18:02:28]POST finish read [18:02:28]Found Content-Length = 972 [18:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184048", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:28]execute_script... [18:02: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 : (3)184048", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:28]POST & json_proto [18:02:28]process_json_proto [18:02:28]json parsed OK: [18:02:28]protocol is kg_v1.0 [18:02:28]action value=close_receipt [18:02:28]process_action close_receipt [18:02:28]cmd_close_receipt [18:02:28]MH_GetDate [18:02:28]Write to MH i2c: F0 00 00 22 0A 1B [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: F0 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: F0 09 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: F0 09 00 22 0A 00 B5 CB 71 66 13 9C 7C 64 0A [18:02:28]GetLastDocTimeStamp 1718733588 [18:02:28]current date 1718733749 [18:02:28]FM_GetShiftState [18:02:28]SAM_PROTO_GetShiftState [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 13 01 00 [18:02:28]Write to MH i2c: E2 08 00 23 0A 80 13 01 00 00 00 00 00 AA [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 0E 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 0E 00 23 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F5 [18:02:28]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:02:28]wFMCommunicate OK [18:02:28]SAM_PROTO_GetShiftState done [18:02:28]FM_GetShiftState done [18:02:28]opened in 1718670230 [18:02:28]opened+sec_in_day 1718756630 [18:02:28]quantity*price = 19000 [18:02:28]sum+1 = 19001 [18:02:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 85 18.06.2024 18:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34263 ФПД: 64939760335078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180229&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34263&fm=64939760335078&tin=02508201610067®Number=0000000000092786&sum=28500 0 [18:02:29]StoreToDocumentArchive [18:02:29]shift 323 fd 34263 [18:02:29]save to /storage/0323/doc_00034263 [18:02:29]save last doc name /storage/0323/doc_00034263 to /storage/kkm_last_doc_name [18:02:29]save OK [18:02:29]Clear old archive folders... [18:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=425 [18:02:29]tlvbuf is 0192FBA0 [18:02:29]SAM_PROTO_ClearQueue [18:02:29]wFMCommunicate request_size=4 [18:02:29]MH_SAM_APDU [18:02:29]CAPDU: 80 09 00 00 [18:02:29]Write to MH i2c: E2 08 00 30 0A 80 09 00 00 00 00 00 00 AC [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:29]Read from MH i2c: E2 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 03 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [18:02:29]RAPDU: 90 00 [18:02:29]wFMCommunicate OK [18:02:29]SAM_PROTO_ClearQueue done [18:02:29]KKMCreateOFDPacket [18:02:29]OFDProtocolAddRootSTLVToBuf [18:02:29]FM_MakeSignedData [18:02:29]FM_MakeSignedData [18:02:29]SAM_PROTO_SignData [18:02:29]wFMCommunicate request_size=4 [18:02:29]MH_SAM_APDU [18:02:29]CAPDU: 80 0D 01 02 [18:02:29]Write to MH i2c: E2 08 00 31 0A 80 0D 01 02 00 00 00 00 B4 [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:29]Read from MH i2c: E2 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 03 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [18:02:29]RAPDU: 90 00 [18:02:29]wFMCommunicate OK [18:02:29]wFMCommunicate request_size=255 [18:02:29]MH_SAM_APDU [18:02:29]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 [18:02:29]Write to MH i2c: E2 02 01 32 0A 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 00 00 2A [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:29]Read from MH i2c: E2 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 03 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [18:02:29]RAPDU: 90 00 [18:02:29]wFMCommunicate OK [18:02:29]wFMCommunicate request_size=184 [18:02:29]MH_SAM_APDU [18:02:29]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D7 85 00 00 35 04 06 00 3B 0F F7 58 B8 E6 [18:02:29]Write to MH i2c: E2 BB 00 33 0A 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D7 85 00 00 35 04 06 00 3B 0F F7 58 B8 E6 00 00 0D [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [18:02:30]RAPDU: 90 00 [18:02:30]wFMCommunicate OK [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 0D 03 02 [18:02:30]Write to MH i2c: E2 08 00 34 0A 80 0D 03 02 00 00 00 00 B9 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 0B 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 0B 00 34 0A 00 22 02 08 6B 6D 35 DE 15 90 00 E6 [18:02:30]RAPDU: 22 02 08 6B 6D 35 DE 15 90 00 [18:02:30]wFMCommunicate OK [18:02:30]SAM_PROTO_SignData done [18:02:30]FM_MakeSignedData done [18:02:30]CreateOFDProtocolMessage [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 11 00 00 [18:02:30]Write to MH i2c: E2 08 00 35 0A 80 11 00 00 00 00 00 00 B9 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 17 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 17 00 35 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0E [18:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:02:30]wFMCommunicate OK [18:02:30]CreateOFDProtocolMessage done [18:02:30]OFDSenderStorePacket 34263 [18:02:30]StoreOFDPacket docnum=34263 [18:02:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 BD 01 00 00 1A B3 B5 01 88 87 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D7 85 00 00 35 04 06 00 3B 0F F7 58 B8 E6 22 02 08 6B 6D 35 DE 15 [18:02:30]CheckFolder [18:02:30]dirname=/storage/ofd_packets [18:02:30]CheckFolder done [18:02:30]ProducePacketName [18:02:30]name=ofd_packets/00034263 [18:02:30]NVStorageSaveData ofd_packets/00034263 [18:02:30]File name is /storage/ofd_packets/00034263 [18:02:30]Write 475 bytes [18:02:30]NVStorageSaveData done [18:02:30]OFDSenderStorePacket done [18:02:30]KKMCreateOFDPacket done [18:02:30]NVStorageSaveData kkm_last_timestamp [18:02:30]File name is /storage/kkm_last_timestamp [18:02:30]Write 4 bytes [18:02:30]NVStorageSaveData done [18:02:30]ExternCall_PrintAddStr [18:02:30]wPrintStart [18:02:30]Write to MH i2c: 01 00 00 36 0A 40 [18:02:30]OFD Sender: Processing packet 34263 [packets to send 8, broken 7] [18:02:30]ProducePacketName [18:02:30]name=ofd_packets/00034263 [18:02:30]OFD Sender: To server: pG, [18:02:30]CommunicateWithHost lk.salyk.kg:30040 [18:02:30]ConnectInit lk.salyk.kg [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 07 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 07 00 36 0A 00 00 00 00 00 FF 0F 55 [18:02:30]RasterBufferAndPrint [18:02:30]line Счет N : (3)184048 [18:02:30]line ИНН: 02508201610067 [18:02:30]line Контрольно-Кассовый Чек [18:02:30]line ПРОДАЖА [18:02:30]line Товар: 4700000482740 [18:02:30]line Напиток Nitro Fr газ апельсин ж/б 0,45л [18:02:30]line 2.000 * 95.00 [18:02:30]line = 190.00 [18:02:30]line НДС 12% НСП 1% [18:02:30]line > о реализуемом товаре [18:02:30]line Товар: 4700000480050 [18:02:30]line Напиток Nitro Energy эн green ж/б 0,45л [18:02:30]line 1.000 * 95.00 [18:02:30]line = 95.00 [18:02:30]line НДС 12% НСП 1% [18:02:30]line > о реализуемом товаре [18:02:30]line ИТОГО: 285.00 [18:02:30]line НСП 1% : 2.52 [18:02:30]line НДС 12% : 30.27 [18:02:30]line Наличными: 285.00 [18:02:30]line Безнал.: 0.00 [18:02:30]line Место: АЗС № 120 "Партнер Нефть" [18:02:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:02:30]line СНО: Общий режим [18:02:30]line Чек 85 18.06.2024 18:02 [18:02:30]line Смена: 323 ФФД: 1.0 [18:02:30]line ЗНМ: 0300000172 [18:02:30]line РНМ: 0000000000092786 [18:02:30]line Версия ККМ: 001 [18:02:30]line ФМ: 0000000000875095 [18:02:30]line ФД: 34263 [18:02:30]line ФПД: 64939760335078 [18:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180229&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34263&fm=64939760335078&tin=02508201610067®Number=0000000000092786&sum=28500 [18:02:30]line 0 [18:02:30]written 0, free lines is 4095 [18:02:30]Connected sock=11 [18:02:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 BD 01 00 00 1A B3 B5 01 88 87 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B5 CB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D7 85 00 00 35 04 06 00 3B 0F F7 58 B8 E6 22 02 08 6B 6D 35 DE 15 [18:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 3F 1E 47 00 1A 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D7 85 00 00 F4 03 04 00 84 72 71 66 B6 04 01 00 00 C1 79 27 EB 8D 8D 45 27 [18:02:30]CommunicateWithHost err = 0 [18:02:30]CheckOFDResponse [18:02:30]1017 (14) - 77093643461234 [18:02:30]1041 (16) - 0000000000875095 [18:02:30]1040 (4) - 34263 [18:02:30]1012 (4) - 18.06.2024 11:41 [18:02:30]1206 (1) - 0 [18:02:30]OFD Sender: Remove packet 34263 [18:02:30]ProducePacketName [18:02:30]name=ofd_packets/00034263 [18:02:30]NVStorageDeleteData [18:02:30]Write to MH i2c: 01 00 00 66 0A 70 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 07 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 76 0C F9 [18:02:30]RasterBufferAndPrint [18:02:30]line [18:02:30]line [18:02:30]line [18:02:30]line [18:02:30]line [18:02:30]written 0, free lines is 3196 [18:02:30]MH_Cut [18:02:30]Write to MH i2c: D1 01 00 6D 0A 01 49 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: D1 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: D1 01 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: D1 01 00 6D 0A 00 48 [18:02:30]Write to MH i2c: 01 00 00 6E 0A 78 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:31]OFD Sender: No OFD packet to send [18:02:31]*** Cut start [18:02:31]*** Partial cut [18:02:31]*** CUTSNS_PIN = 1 [18:02:31]*** CUTSNS_PIN = 0 [18:02:32]*** Brake cut motor [18:02:32]Read from MH i2c: 01 [18:02:32]MH_I2C_Read... [18:02:32]*** Stop cut motor [18:02:32]*** Cut end [18:02:32]Read from MH i2c: 01 07 00 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 FF 0F 8D [18:02:32]process_action close_receipt done [18:02:32]requested_data is exist [18:02:32]produce_requested_data [18:02:32]requested_item fm.sn is exist - process it [18:02:32]wFMCommunicate request_size=4 [18:02:32]MH_SAM_APDU [18:02:32]CAPDU: 80 11 00 00 [18:02:32]Write to MH i2c: E2 08 00 6F 0A 80 11 00 00 00 00 00 00 F3 [18:02:32]Write i2c OK [18:02:32]MH_I2C_Read... [18:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:32]Read from MH i2c: E2 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: E2 17 00 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: E2 17 00 6F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 48 [18:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:02:32]wFMCommunicate OK [18:02:32]requested_item fd.num is exist - process it [18:02:32]SAM_PROTO_GetFieldsCounters [18:02:32]wFMCommunicate request_size=4 [18:02:32]MH_SAM_APDU [18:02:32]CAPDU: 80 13 00 00 [18:02:32]Write to MH i2c: E2 08 00 70 0A 80 13 00 00 00 00 00 00 F6 [18:02:32]Write i2c OK [18:02:32]MH_I2C_Read... [18:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:32]Read from MH i2c: E2 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: E2 62 00 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: E2 62 00 70 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [18:02:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:32]wFMCommunicate OK [18:02:32]SAM_PROTO_GetFieldsCounters done [18:02:32]requested_item shift.num is exist - process it [18:02:32]requested_item shift.opened is exist - process it [18:02:32]req_shift_opened [18:02:32]FM_GetShiftState [18:02:32]SAM_PROTO_GetShiftState [18:02:32]wFMCommunicate request_size=4 [18:02:32]MH_SAM_APDU [18:02:32]CAPDU: 80 13 01 00 [18:02:32]Write to MH i2c: E2 08 00 71 0A 80 13 01 00 00 00 00 00 F8 [18:02:32]Write i2c OK [18:02:32]MH_I2C_Read... [18:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:32]Read from MH i2c: E2 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: E2 0E 00 [18:02:32]MH_I2C_Read... [18:02:32]Read from MH i2c: E2 0E 00 71 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 43 [18:02:32]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:02:32]wFMCommunicate OK [18:02:32]SAM_PROTO_GetShiftState done [18:02:32]FM_GetShiftState done [18:02:32]req_shift_opened done [18:02:32]requested_item shift.open_date is exist - process it [18:02:32]req_shift_open_date [18:02:32]req_shift_open_date done [18:02:32]produce_requested_data done [18:02:32]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34263,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:02:32]process_action_free close_receipt [18:02:32]json_value_free [18:02:32]json_value_free done [18:02:32]process_json_proto returns [18:02:32]Send response to host [18:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34263,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:02:32]free response buf [18:02:32]execute_script done [18:02:32]execute_script returns [18:02:32]free content buf [18:02:32]Sock 7.Close socket [18:02:32]Sock 7.Thread stoped [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:49]accept exits with 9 [18:04:49]New connection [18:04:49]New thread 3067424100 created [18:04:49]Thread 3067567460 joined [18:04:49]Waiting for new connection... [18:04:49] Sock 9.Parse request [18:04:49]Sock 9.Check first char [18:04:49]Sock 9.First char is OK [18:04:49]request: POST /json_proto HTTP/1.0 [18:04:49]Method: POST [18:04:49]URL: /json_proto [18:04:49]Method is POST - this is cgi request [18:04:49]url: /json_proto [18:04:49]query_string will be loaded in cgi processing [18:04:49]execute_cgi json_proto POST (null) [18:04:49]execute_cgi path=json_proto method=POST [18:04:49]POST find Content-Length [18:04:49]Host: 172.17.38.134:8080 [18:04:49]Content-Length: 638 [18:04:49]Content-Type: application/json [18:04:49] [18:04:49]POST finish read [18:04:49]Found Content-Length = 638 [18:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184049", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:50]execute_script... [18:04:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184049", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:50]POST & json_proto [18:04:50]process_json_proto [18:04:50]json parsed OK: [18:04:50]protocol is kg_v1.0 [18:04:50]action value=close_receipt [18:04:50]process_action close_receipt [18:04:50]cmd_close_receipt [18:04:50]MH_GetDate [18:04:50]Write to MH i2c: F0 00 00 72 0A 6B [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: F0 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: F0 09 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: F0 09 00 72 0A 00 43 CC 71 66 13 9C 7C 64 E9 [18:04:50]GetLastDocTimeStamp 1718733749 [18:04:50]current date 1718733891 [18:04:50]FM_GetShiftState [18:04:50]SAM_PROTO_GetShiftState [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 13 01 00 [18:04:50]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 0E 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 45 [18:04:50]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:04:50]wFMCommunicate OK [18:04:50]SAM_PROTO_GetShiftState done [18:04:50]FM_GetShiftState done [18:04:50]opened in 1718670230 [18:04:50]opened+sec_in_day 1718756630 [18:04:50]quantity*price = 7000 [18:04:50]sum+1 = 7001 [18:04:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 86 18.06.2024 18:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34264 ФПД: 114504752995506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180451&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34264&fm=114504752995506&tin=02508201610067®Number=0000000000092786&sum=7000 0 [18:04:51]StoreToDocumentArchive [18:04:51]shift 323 fd 34264 [18:04:51]save to /storage/0323/doc_00034264 [18:04:51]save last doc name /storage/0323/doc_00034264 to /storage/kkm_last_doc_name [18:04:51]save OK [18:04:51]Clear old archive folders... [18:04:51]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:04:51]tlvbuf is 01921AB0 [18:04:51]SAM_PROTO_ClearQueue [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 09 00 00 [18:04:51]Write to MH i2c: E2 08 00 80 0A 80 09 00 00 00 00 00 00 FC [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]SAM_PROTO_ClearQueue done [18:04:51]KKMCreateOFDPacket [18:04:51]OFDProtocolAddRootSTLVToBuf [18:04:51]FM_MakeSignedData [18:04:51]FM_MakeSignedData [18:04:51]SAM_PROTO_SignData [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 0D 01 02 [18:04:51]Write to MH i2c: E2 08 00 81 0A 80 0D 01 02 00 00 00 00 04 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 81 0A 00 90 00 FF [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=255 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 43 CC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [18:04:51]Write to MH i2c: E2 02 01 82 0A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 43 CC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 A6 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 82 0A 00 90 00 00 [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=32 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 D8 85 00 00 35 04 06 00 68 24 37 20 9C B2 [18:04:51]Write to MH i2c: E2 23 00 83 0A 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 D8 85 00 00 35 04 06 00 68 24 37 20 9C B2 00 00 F4 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]OFD Sender: No OFD packet to send [18:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 0D 03 02 [18:04:51]Write to MH i2c: E2 08 00 84 0A 80 0D 03 02 00 00 00 00 09 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0B 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0B 00 84 0A 00 89 93 F0 5F 51 2D 02 9B 90 00 90 [18:04:51]RAPDU: 89 93 F0 5F 51 2D 02 9B 90 00 [18:04:51]wFMCommunicate OK [18:04:51]SAM_PROTO_SignData done [18:04:51]FM_MakeSignedData done [18:04:51]CreateOFDProtocolMessage [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 11 00 00 [18:04:51]Write to MH i2c: E2 08 00 85 0A 80 11 00 00 00 00 00 00 09 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 17 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 17 00 85 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 5E [18:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:04:51]wFMCommunicate OK [18:04:51]CreateOFDProtocolMessage done [18:04:51]OFDSenderStorePacket 34264 [18:04:51]StoreOFDPacket docnum=34264 [18:04:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 01 12 1D 01 F6 A6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 43 CC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D8 85 00 00 35 04 06 00 68 24 37 20 9C B2 89 93 F0 5F 51 2D 02 9B [18:04:51]CheckFolder [18:04:51]dirname=/storage/ofd_packets [18:04:51]CheckFolder done [18:04:51]ProducePacketName [18:04:51]name=ofd_packets/00034264 [18:04:51]NVStorageSaveData ofd_packets/00034264 [18:04:51]File name is /storage/ofd_packets/00034264 [18:04:51]Write 323 bytes [18:04:51]NVStorageSaveData done [18:04:51]OFDSenderStorePacket done [18:04:51]KKMCreateOFDPacket done [18:04:51]NVStorageSaveData kkm_last_timestamp [18:04:51]File name is /storage/kkm_last_timestamp [18:04:51]Write 4 bytes [18:04:51]NVStorageSaveData done [18:04:51]ExternCall_PrintAddStr [18:04:51]wPrintStart [18:04:51]Write to MH i2c: 01 00 00 86 0A 90 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FF 0F A5 [18:04:51]RasterBufferAndPrint [18:04:51]line Счет N : (3)184049 [18:04:51]line ИНН: 02508201610067 [18:04:51]line Контрольно-Кассовый Чек [18:04:51]line ПРОДАЖА [18:04:51]line Товар: 4700002082931 [18:04:51]line Водка Хорошая 0,1л [18:04:51]line 1.000 * 70.00 [18:04:51]line = 70.00 [18:04:51]line НДС 12% НСП 1% [18:04:51]line > о реализуемом товаре [18:04:51]line ИТОГО: 70.00 [18:04:51]line НСП 1% : 0.62 [18:04:51]line НДС 12% : 7.43 [18:04:51]line Наличными: 70.00 [18:04:51]line Безнал.: 0.00 [18:04:51]line Место: АЗС № 120 "Партнер Нефть" [18:04:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:04:51]line СНО: Общий режим [18:04:51]line Чек 86 18.06.2024 18:04 [18:04:51]line Смена: 323 ФФД: 1.0 [18:04:51]line ЗНМ: 0300000172 [18:04:51]line РНМ: 0000000000092786 [18:04:51]line Версия ККМ: 001 [18:04:51]line ФМ: 0000000000875095 [18:04:51]line ФД: 34264 [18:04:51]line ФПД: 114504752995506 [18:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T180451&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34264&fm=114504752995506&tin=02508201610067®Number=0000000000092786&sum=7000 [18:04:52]line 0 [18:04:52]OFD Sender: Processing packet 34264 [packets to send 8, broken 7] [18:04:52]ProducePacketName [18:04:52]name=ofd_packets/00034264 [18:04:52]OFD Sender: To server: pG, [18:04:52]CommunicateWithHost lk.salyk.kg:30040 [18:04:52]ConnectInit lk.salyk.kg [18:04:52]written 0, free lines is 4095 [18:04:52]Connected sock=10 [18:04:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 01 12 1D 01 F6 A6 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 43 CC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D8 85 00 00 35 04 06 00 68 24 37 20 9C B2 89 93 F0 5F 51 2D 02 9B [18:04:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 3E 7C 47 00 63 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D8 85 00 00 F4 03 04 00 12 73 71 66 B6 04 01 00 00 A8 1D 93 E2 A3 3A 8D C4 [18:04:52]CommunicateWithHost err = 0 [18:04:52]CheckOFDResponse [18:04:52]1017 (14) - 77093643461234 [18:04:52]1041 (16) - 0000000000875095 [18:04:52]1040 (4) - 34264 [18:04:52]1012 (4) - 18.06.2024 11:44 [18:04:52]1206 (1) - 0 [18:04:52]OFD Sender: Remove packet 34264 [18:04:52]ProducePacketName [18:04:52]name=ofd_packets/00034264 [18:04:52]NVStorageDeleteData [18:04:52]Write to MH i2c: 01 00 00 AE 0A B8 [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: 01 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: 01 07 00 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 FE 0C C9 [18:04:52]RasterBufferAndPrint [18:04:52]line [18:04:52]line [18:04:52]line [18:04:52]line [18:04:52]line [18:04:52]written 0, free lines is 3332 [18:04:52]MH_Cut [18:04:52]Write to MH i2c: D1 01 00 B5 0A 01 91 [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: D1 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: D1 01 00 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: D1 01 00 B5 0A 00 90 [18:04:52]Write to MH i2c: 01 00 00 B6 0A C0 [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]OFD Sender: No OFD packet to send [18:04:53]*** Cut start [18:04:53]*** Partial cut [18:04:53]*** CUTSNS_PIN = 1 [18:04:53]*** CUTSNS_PIN = 0 [18:04:53]*** Brake cut motor [18:04:53]Read from MH i2c: 01 [18:04:53]MH_I2C_Read... [18:04:53]*** Stop cut motor [18:04:53]*** Cut end [18:04:53]Read from MH i2c: 01 07 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [18:04:53]process_action close_receipt done [18:04:53]requested_data is exist [18:04:53]produce_requested_data [18:04:53]requested_item fm.sn is exist - process it [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 11 00 00 [18:04:53]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 B7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 90 [18:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:04:53]wFMCommunicate OK [18:04:53]requested_item fd.num is exist - process it [18:04:53]SAM_PROTO_GetFieldsCounters [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 13 00 00 [18:04:53]Write to MH i2c: E2 08 00 B8 0A 80 13 00 00 00 00 00 00 3E [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 62 00 [18:04:54]MH_I2C_Read... [18:04:54]Read from MH i2c: E2 62 00 B8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D8 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D8 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:54]wFMCommunicate OK [18:04:54]SAM_PROTO_GetFieldsCounters done [18:04:54]requested_item shift.num is exist - process it [18:04:54]requested_item shift.opened is exist - process it [18:04:54]req_shift_opened [18:04:54]FM_GetShiftState [18:04:54]SAM_PROTO_GetShiftState [18:04:54]wFMCommunicate request_size=4 [18:04:54]MH_SAM_APDU [18:04:54]CAPDU: 80 13 01 00 [18:04:54]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [18:04:54]Write i2c OK [18:04:54]MH_I2C_Read... [18:04:54]Read from MH i2c: E2 [18:04:54]MH_I2C_Read... [18:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:54]Read from MH i2c: E2 0E 00 [18:04:54]MH_I2C_Read... [18:04:54]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8B [18:04:54]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:04:54]wFMCommunicate OK [18:04:54]SAM_PROTO_GetShiftState done [18:04:54]FM_GetShiftState done [18:04:54]req_shift_opened done [18:04:54]requested_item shift.open_date is exist - process it [18:04:54]req_shift_open_date [18:04:54]req_shift_open_date done [18:04:54]produce_requested_data done [18:04:54]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34264,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:04:54]process_action_free close_receipt [18:04:54]json_value_free [18:04:54]json_value_free done [18:04:54]process_json_proto returns [18:04:54]Send response to host [18:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34264,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:04:54]free response buf [18:04:54]execute_script done [18:04:54]execute_script returns [18:04:54]free content buf [18:04:54]Sock 9.Close socket [18:04:54]Sock 9.Thread stoped [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:14]accept exits with 7 [18:18:14]New connection [18:18:14]New thread 3067567460 created [18:18:14]Thread 3067424100 joined [18:18:14]Waiting for new connection... [18:18:14] Sock 7.Parse request [18:18:14]Sock 7.Check first char [18:18:14]Sock 7.First char is OK [18:18:14]request: POST /json_proto HTTP/1.0 [18:18:14]Method: POST [18:18:14]URL: /json_proto [18:18:14]Method is POST - this is cgi request [18:18:14]url: /json_proto [18:18:14]query_string will be loaded in cgi processing [18:18:14]execute_cgi json_proto POST (null) [18:18:14]execute_cgi path=json_proto method=POST [18:18:14]POST find Content-Length [18:18:14]Host: 172.17.38.134:8080 [18:18:14]Content-Length: 1162 [18:18:14]Content-Type: application/json [18:18:14] [18:18:14]POST finish read [18:18:14]Found Content-Length = 1162 [18:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672700\u000A18.06.2024 17:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 26.340 x 72.90\u000A\u0418\u0422\u041E\u0413: 1920.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:14]execute_script... [18:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)672700\u000A18.06.2024 17:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 26.340 x 72.90\u000A\u0418\u0422\u041E\u0413: 1920.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:14]POST & json_proto [18:18:14]process_json_proto [18:18:14]json parsed OK: [18:18:14]protocol is kg_v1.0 [18:18:14]action value=print_text [18:18:14]process_action print_text [18:18:14]cmd_print_text [18:18:14]ExternCall_PrintAddStr [18:18:14]wPrintStart [18:18:14]Write to MH i2c: 01 00 00 BA 0A C4 [18:18:14]Write i2c OK [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: 01 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: 01 07 00 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: 01 07 00 BA 0A 00 00 00 00 00 FF 0F D9 [18:18:14]RasterBufferAndPrint [18:18:14]line *****ТОВАРНЫЙ ЧЕК***** [18:18:14]line АЗС 120 [18:18:14]line Партнер нефть [18:18:14]line 02508201610067 [18:18:14]line Кассир : Асанбаев Н. [18:18:14]line Счет N : (1)672700 [18:18:14]line 18.06.2024 17:56 [18:18:14]line ПРОДАЖА [18:18:14]line ТРК (МРК, ГНК): 21 [18:18:14]line Вид ГСМ : 2710194210 [18:18:14]line ДТ(л)-К-5 [18:18:14]line 26.340 x 72.90 [18:18:14]line ИТОГ: 1920.19 [18:18:14]line Тип оплаты: Талоны: ТК ГПНА Online [18:18:14]line 30101770 [18:18:14]line ______________________ [18:18:14]line (подпись) [18:18:14]written 0, free lines is 4095 [18:18:14]Write to MH i2c: 01 00 00 CE 0A D8 [18:18:14]Write i2c OK [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: 01 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: 01 07 00 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 0E 0E FB [18:18:14]RasterBufferAndPrint [18:18:14]line [18:18:14]line [18:18:14]line [18:18:14]line [18:18:14]line [18:18:14]written 0, free lines is 3600 [18:18:14]MH_Cut [18:18:14]Write to MH i2c: D1 01 00 D5 0A 01 B1 [18:18:14]Write i2c OK [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: D1 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: D1 01 00 [18:18:14]MH_I2C_Read... [18:18:14]Read from MH i2c: D1 01 00 D5 0A 00 B0 [18:18:14]Write to MH i2c: 01 00 00 D6 0A E0 [18:18:14]Write i2c OK [18:18:14]MH_I2C_Read... [18:18:15]*** Cut start [18:18:15]*** Partial cut [18:18:15]*** CUTSNS_PIN = 1 [18:18:15]*** CUTSNS_PIN = 0 [18:18:15]*** Brake cut motor [18:18:15]Read from MH i2c: 01 [18:18:15]MH_I2C_Read... [18:18:15]Read from MH i2c: 01 07 00 [18:18:15]MH_I2C_Read... [18:18:15]*** Stop cut motor [18:18:15]*** Cut end [18:18:15]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [18:18:15]process_action print_text done [18:18:15]requested_data is exist [18:18:15]produce_requested_data [18:18:15]requested_item fm.sn is exist - process it [18:18:15]wFMCommunicate request_size=4 [18:18:15]MH_SAM_APDU [18:18:15]CAPDU: 80 11 00 00 [18:18:15]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [18:18:15]Write i2c OK [18:18:15]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 17 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B0 [18:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:18:16]wFMCommunicate OK [18:18:16]requested_item fd.num is exist - process it [18:18:16]SAM_PROTO_GetFieldsCounters [18:18:16]wFMCommunicate request_size=4 [18:18:16]MH_SAM_APDU [18:18:16]CAPDU: 80 13 00 00 [18:18:16]Write to MH i2c: E2 08 00 D8 0A 80 13 00 00 00 00 00 00 5E [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 62 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 62 00 D8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D8 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D8 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:16]wFMCommunicate OK [18:18:16]SAM_PROTO_GetFieldsCounters done [18:18:16]requested_item shift.num is exist - process it [18:18:16]requested_item shift.opened is exist - process it [18:18:16]req_shift_opened [18:18:16]FM_GetShiftState [18:18:16]SAM_PROTO_GetShiftState [18:18:16]wFMCommunicate request_size=4 [18:18:16]MH_SAM_APDU [18:18:16]CAPDU: 80 13 01 00 [18:18:16]Write to MH i2c: E2 08 00 D9 0A 80 13 01 00 00 00 00 00 60 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 0E 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 0E 00 D9 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AB [18:18:16]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:18:16]wFMCommunicate OK [18:18:16]SAM_PROTO_GetShiftState done [18:18:16]FM_GetShiftState done [18:18:16]req_shift_opened done [18:18:16]requested_item shift.open_date is exist - process it [18:18:16]req_shift_open_date [18:18:16]req_shift_open_date done [18:18:16]produce_requested_data done [18:18:16]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34264,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:18:16]process_action_free print_text [18:18:16]json_value_free [18:18:16]json_value_free done [18:18:16]process_json_proto returns [18:18:16]Send response to host [18:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34264,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:18:16]free response buf [18:18:16]execute_script done [18:18:16]execute_script returns [18:18:16]free content buf [18:18:16]Sock 7.Close socket [18:18:16]Sock 7.Thread stoped [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:18]accept exits with 9 [18:28:18]New connection [18:28:18]New thread 3067424100 created [18:28:18]Thread 3067567460 joined [18:28:18]Waiting for new connection... [18:28:18] Sock 9.Parse request [18:28:18]Sock 9.Check first char [18:28:18]Sock 9.First char is OK [18:28:18]request: POST /json_proto HTTP/1.0 [18:28:18]Method: POST [18:28:18]URL: /json_proto [18:28:18]Method is POST - this is cgi request [18:28:18]url: /json_proto [18:28:18]query_string will be loaded in cgi processing [18:28:18]execute_cgi json_proto POST (null) [18:28:18]execute_cgi path=json_proto method=POST [18:28:18]POST find Content-Length [18:28:18]Host: 172.17.38.134:8080 [18:28:18]Content-Length: 677 [18:28:18]Content-Type: application/json [18:28:18] [18:28:18]POST finish read [18:28:18]Found Content-Length = 677 [18:28:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:18]execute_script... [18:28: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)672706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:18]POST & json_proto [18:28:18]process_json_proto [18:28:18]json parsed OK: [18:28:18]protocol is kg_v1.0 [18:28:18]action value=close_receipt [18:28:18]process_action close_receipt [18:28:18]cmd_close_receipt [18:28:18]MH_GetDate [18:28:18]Write to MH i2c: F0 00 00 DA 0A D3 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: F0 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: F0 09 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: F0 09 00 DA 0A 00 C4 D1 71 66 13 9C 7C 64 D7 [18:28:18]GetLastDocTimeStamp 1718733891 [18:28:18]current date 1718735300 [18:28:18]FM_GetShiftState [18:28:18]SAM_PROTO_GetShiftState [18:28:18]wFMCommunicate request_size=4 [18:28:18]MH_SAM_APDU [18:28:18]CAPDU: 80 13 01 00 [18:28:18]Write to MH i2c: E2 08 00 DB 0A 80 13 01 00 00 00 00 00 62 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:18]Read from MH i2c: E2 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 0E 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: E2 0E 00 DB 0A 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 AD [18:28:18]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:28:18]wFMCommunicate OK [18:28:18]SAM_PROTO_GetShiftState done [18:28:18]FM_GetShiftState done [18:28:18]opened in 1718670230 [18:28:18]opened+sec_in_day 1718756630 [18:28:18]quantity*price = 50065 [18:28:18]sum+1 = 50067 [18:28:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 87 18.06.2024 18:28 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34265 ФПД: 157198137820464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182820&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34265&fm=157198137820464&tin=02508201610067®Number=0000000000092786&sum=50000 [18:28:20]StoreToDocumentArchive [18:28:20]shift 323 fd 34265 [18:28:20]save to /storage/0323/doc_00034265 [18:28:20]save last doc name /storage/0323/doc_00034265 to /storage/kkm_last_doc_name [18:28:20]save OK [18:28:20]Clear old archive folders... [18:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:20]tlvbuf is 018FB130 [18:28:20]SAM_PROTO_ClearQueue [18:28:20]wFMCommunicate request_size=4 [18:28:20]MH_SAM_APDU [18:28:20]CAPDU: 80 09 00 00 [18:28:20]Write to MH i2c: E2 08 00 E8 0A 80 09 00 00 00 00 00 00 64 [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:20]Read from MH i2c: E2 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [18:28:20]RAPDU: 90 00 [18:28:20]wFMCommunicate OK [18:28:20]SAM_PROTO_ClearQueue done [18:28:20]KKMCreateOFDPacket [18:28:20]OFDProtocolAddRootSTLVToBuf [18:28:20]FM_MakeSignedData [18:28:20]FM_MakeSignedData [18:28:20]SAM_PROTO_SignData [18:28:20]wFMCommunicate request_size=4 [18:28:20]MH_SAM_APDU [18:28:20]CAPDU: 80 0D 01 02 [18:28:20]Write to MH i2c: E2 08 00 E9 0A 80 0D 01 02 00 00 00 00 6C [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:20]Read from MH i2c: E2 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [18:28:20]RAPDU: 90 00 [18:28:20]wFMCommunicate OK [18:28:20]wFMCommunicate request_size=255 [18:28:20]MH_SAM_APDU [18:28:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C4 D1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D9 85 00 00 35 04 06 00 8E [18:28:20]Write to MH i2c: E2 02 01 EA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C4 D1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D9 85 00 00 35 04 06 00 8E 00 00 1C [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:20]Read from MH i2c: E2 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [18:28:20]RAPDU: 90 00 [18:28:20]wFMCommunicate OK [18:28:20]wFMCommunicate request_size=10 [18:28:20]MH_SAM_APDU [18:28:20]CAPDU: 80 0D 02 02 05 F8 8B 2A 05 30 [18:28:20]Write to MH i2c: E2 0D 00 EB 0A 80 0D 02 02 05 00 F8 8B 2A 05 30 00 00 5B [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:20]Read from MH i2c: E2 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [18:28:20]RAPDU: 90 00 [18:28:20]wFMCommunicate OK [18:28:20]wFMCommunicate request_size=4 [18:28:20]MH_SAM_APDU [18:28:20]CAPDU: 80 0D 03 02 [18:28:20]Write to MH i2c: E2 08 00 EC 0A 80 0D 03 02 00 00 00 00 71 [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:20]Read from MH i2c: E2 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 0B 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 0B 00 EC 0A 00 0C E4 8F 33 1C 43 E5 7B 90 00 E3 [18:28:20]RAPDU: 0C E4 8F 33 1C 43 E5 7B 90 00 [18:28:20]wFMCommunicate OK [18:28:20]SAM_PROTO_SignData done [18:28:20]FM_MakeSignedData done [18:28:20]CreateOFDProtocolMessage [18:28:20]wFMCommunicate request_size=4 [18:28:20]MH_SAM_APDU [18:28:20]CAPDU: 80 11 00 00 [18:28:20]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:20]Read from MH i2c: E2 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 17 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C6 [18:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:28:20]wFMCommunicate OK [18:28:20]CreateOFDProtocolMessage done [18:28:20]OFDSenderStorePacket 34265 [18:28:20]StoreOFDPacket docnum=34265 [18:28:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 D0 E0 07 01 2E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C4 D1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D9 85 00 00 35 04 06 00 8E F8 8B 2A 05 30 0C E4 8F 33 1C 43 E5 7B [18:28:20]CheckFolder [18:28:20]dirname=/storage/ofd_packets [18:28:20]CheckFolder done [18:28:20]ProducePacketName [18:28:20]name=ofd_packets/00034265 [18:28:20]NVStorageSaveData ofd_packets/00034265 [18:28:20]File name is /storage/ofd_packets/00034265 [18:28:20]Write 301 bytes [18:28:20]NVStorageSaveData done [18:28:20]OFDSenderStorePacket done [18:28:20]KKMCreateOFDPacket done [18:28:20]NVStorageSaveData kkm_last_timestamp [18:28:20]File name is /storage/kkm_last_timestamp [18:28:20]Write 4 bytes [18:28:20]NVStorageSaveData done [18:28:20]ExternCall_PrintAddStr [18:28:20]wPrintStart [18:28:20]Write to MH i2c: 01 00 00 EE 0A F8 [18:28:20]Write i2c OK [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: 01 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: 01 07 00 [18:28:20]MH_I2C_Read... [18:28:20]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [18:28:20]RasterBufferAndPrint [18:28:20]line Счет N : (1)672706 [18:28:20]line ИНН: 02508201610067 [18:28:20]line Контрольно-Кассовый Чек [18:28:20]line ПРОДАЖА [18:28:20]line ТРК (МРК, ГНК) : 42 [18:28:20]line Товар: 2710124130 [18:28:20]line Аи-92-К-5 [18:28:20]line 7.540 * 66.40 [18:28:20]line = 500.66 [18:28:20]line НДС 12% НСП 1% [18:28:20]line > о реализуемом товаре [18:28:20]line ОКРУГЛЕНИЕ: -0.66 [18:28:20]line ИТОГО: 500.00 [18:28:20]line Внесено: 500.00 [18:28:20]line СДАЧА: 0.00 [18:28:20]line НСП 1% : 4.43 [18:28:20]line НДС 12% : 53.17 [18:28:20]line Наличными: 500.00 [18:28:20]line Безнал.: 0.00 [18:28:20]line Место: АЗС № 120 "Партнер Нефть" [18:28:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:28:20]line СНО: Общий режим [18:28:20]line Чек 87 18.06.2024 18:28 [18:28:20]line Смена: 323 ФФД: 1.0 [18:28:20]line ЗНМ: 0300000172 [18:28:20]line РНМ: 0000000000092786 [18:28:20]line Версия ККМ: 001 [18:28:20]line ФМ: 0000000000875095 [18:28:20]line ФД: 34265 [18:28:20]line ФПД: 157198137820464 [18:28:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T182820&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34265&fm=157198137820464&tin=02508201610067®Number=0000000000092786&sum=50000 [18:28:20]OFD Sender: Processing packet 34265 [packets to send 8, broken 7] [18:28:20]ProducePacketName [18:28:20]name=ofd_packets/00034265 [18:28:20]OFD Sender: To server: pG, [18:28:20]CommunicateWithHost lk.salyk.kg:30040 [18:28:20]ConnectInit lk.salyk.kg [18:28:20]written 0, free lines is 4095 [18:28:21]Connected sock=10 [18:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 D0 E0 07 01 2E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C4 D1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D9 85 00 00 35 04 06 00 8E F8 8B 2A 05 30 0C E4 8F 33 1C 43 E5 7B [18:28:21]Write to MH i2c: 01 00 00 19 0B 24 [18:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0D 16 47 00 D7 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 D9 85 00 00 F4 03 04 00 93 78 71 66 B6 04 01 00 00 A8 38 C9 A9 5F 05 4F 8F [18:28:21]CommunicateWithHost err = 0 [18:28:21]CheckOFDResponse [18:28:21]1017 (14) - 77093643461234 [18:28:21]1041 (16) - 0000000000875095 [18:28:21]1040 (4) - 34265 [18:28:21]1012 (4) - 18.06.2024 12:07 [18:28:21]1206 (1) - 0 [18:28:21]OFD Sender: Remove packet 34265 [18:28:21]ProducePacketName [18:28:21]name=ofd_packets/00034265 [18:28:21]NVStorageDeleteData [18:28:21]Write i2c OK [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: 01 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: 01 07 00 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 F0 0C 27 [18:28:21]RasterBufferAndPrint [18:28:21]line [18:28:21]line [18:28:21]line [18:28:21]line [18:28:21]line [18:28:21]written 0, free lines is 3339 [18:28:21]MH_Cut [18:28:21]Write to MH i2c: D1 01 00 20 0B 01 FD [18:28:21]Write i2c OK [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: D1 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: D1 01 00 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: D1 01 00 20 0B 00 FC [18:28:21]Write to MH i2c: 01 00 00 21 0B 2C [18:28:21]Write i2c OK [18:28:21]MH_I2C_Read... [18:28:21]OFD Sender: No OFD packet to send [18:28:22]*** Cut start [18:28:22]*** Partial cut [18:28:22]*** CUTSNS_PIN = 1 [18:28:22]*** CUTSNS_PIN = 0 [18:28:22]*** Brake cut motor [18:28:22]Read from MH i2c: 01 [18:28:22]MH_I2C_Read... [18:28:22]*** Stop cut motor [18:28:22]*** Cut end [18:28:22]Read from MH i2c: 01 07 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 FF 0F 41 [18:28:22]process_action close_receipt done [18:28:22]requested_data is exist [18:28:22]produce_requested_data [18:28:22]requested_item fm.sn is exist - process it [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 11 00 00 [18:28:22]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 17 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 FC [18:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:28:22]wFMCommunicate OK [18:28:22]requested_item fd.num is exist - process it [18:28:22]SAM_PROTO_GetFieldsCounters [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 13 00 00 [18:28:22]Write to MH i2c: E2 08 00 23 0B 80 13 00 00 00 00 00 00 AA [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 62 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 62 00 23 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D9 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [18:28:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 D9 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:22]wFMCommunicate OK [18:28:22]SAM_PROTO_GetFieldsCounters done [18:28:22]requested_item shift.num is exist - process it [18:28:22]requested_item shift.opened is exist - process it [18:28:22]req_shift_opened [18:28:22]FM_GetShiftState [18:28:22]SAM_PROTO_GetShiftState [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 13 01 00 [18:28:22]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 0E 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F7 [18:28:22]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:28:22]wFMCommunicate OK [18:28:22]SAM_PROTO_GetShiftState done [18:28:22]FM_GetShiftState done [18:28:22]req_shift_opened done [18:28:22]requested_item shift.open_date is exist - process it [18:28:22]req_shift_open_date [18:28:22]req_shift_open_date done [18:28:22]produce_requested_data done [18:28:22]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34265,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:28:22]process_action_free close_receipt [18:28:22]json_value_free [18:28:22]json_value_free done [18:28:22]process_json_proto returns [18:28:22]Send response to host [18:28:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34265,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:28:22]free response buf [18:28:22]execute_script done [18:28:22]execute_script returns [18:28:22]free content buf [18:28:22]Sock 9.Close socket [18:28:22]Sock 9.Thread stoped [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:45]accept exits with 7 [18:34:45]New connection [18:34:45]New thread 3067567460 created [18:34:45]Thread 3067424100 joined [18:34:45]Waiting for new connection... [18:34:45] Sock 7.Parse request [18:34:45]Sock 7.Check first char [18:34:45]Sock 7.First char is OK [18:34:45]request: POST /json_proto HTTP/1.0 [18:34:45]Method: POST [18:34:45]URL: /json_proto [18:34:45]Method is POST - this is cgi request [18:34:45]url: /json_proto [18:34:45]query_string will be loaded in cgi processing [18:34:45]execute_cgi json_proto POST (null) [18:34:45]execute_cgi path=json_proto method=POST [18:34:45]POST find Content-Length [18:34:45]Host: 172.17.38.134:8080 [18:34:45]Content-Length: 682 [18:34:45]Content-Type: application/json [18:34:45] [18:34:45]POST finish read [18:34:45]Found Content-Length = 682 [18:34:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:45]execute_script... [18:34: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)672707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:45]POST & json_proto [18:34:45]process_json_proto [18:34:45]json parsed OK: [18:34:45]protocol is kg_v1.0 [18:34:45]action value=close_receipt [18:34:45]process_action close_receipt [18:34:45]cmd_close_receipt [18:34:45]MH_GetDate [18:34:45]Write to MH i2c: F0 00 00 25 0B 1F [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: F0 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: F0 09 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: F0 09 00 25 0B 00 47 D3 71 66 13 9C 7C 64 A8 [18:34:45]GetLastDocTimeStamp 1718735300 [18:34:45]current date 1718735687 [18:34:45]FM_GetShiftState [18:34:45]SAM_PROTO_GetShiftState [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 13 01 00 [18:34:45]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0E 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F9 [18:34:45]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:34:45]wFMCommunicate OK [18:34:45]SAM_PROTO_GetShiftState done [18:34:45]FM_GetShiftState done [18:34:45]opened in 1718670230 [18:34:45]opened+sec_in_day 1718756630 [18:34:45]quantity*price = 60069 [18:34:45]sum+1 = 60071 [18:34:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 88 18.06.2024 18:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34266 ФПД: 15138022154395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183447&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34266&fm=15138022154395&tin=02508201610067®Number=0000000000092786&sum=60000 [18:34:46]StoreToDocumentArchive [18:34:46]shift 323 fd 34266 [18:34:46]save to /storage/0323/doc_00034266 [18:34:46]save last doc name /storage/0323/doc_00034266 to /storage/kkm_last_doc_name [18:34:46]save OK [18:34:46]Clear old archive folders... [18:34:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:34:46]tlvbuf is 018E60A0 [18:34:46]SAM_PROTO_ClearQueue [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 09 00 00 [18:34:46]Write to MH i2c: E2 08 00 33 0B 80 09 00 00 00 00 00 00 B0 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 03 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [18:34:46]RAPDU: 90 00 [18:34:46]wFMCommunicate OK [18:34:46]SAM_PROTO_ClearQueue done [18:34:46]KKMCreateOFDPacket [18:34:46]OFDProtocolAddRootSTLVToBuf [18:34:46]FM_MakeSignedData [18:34:46]FM_MakeSignedData [18:34:46]SAM_PROTO_SignData [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 0D 01 02 [18:34:46]Write to MH i2c: E2 08 00 34 0B 80 0D 01 02 00 00 00 00 B8 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 03 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [18:34:46]RAPDU: 90 00 [18:34:46]wFMCommunicate OK [18:34:46]wFMCommunicate request_size=255 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 47 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DA 85 00 00 35 04 06 00 [18:34:47]Write to MH i2c: E2 02 01 35 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 47 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DA 85 00 00 35 04 06 00 00 00 15 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]OFD Sender: No OFD packet to send [18:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 03 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [18:34:47]RAPDU: 90 00 [18:34:47]wFMCommunicate OK [18:34:47]wFMCommunicate request_size=11 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 0D 02 02 06 0D C4 98 6E E0 9B [18:34:47]Write to MH i2c: E2 0E 00 36 0B 80 0D 02 02 06 00 0D C4 98 6E E0 9B 00 00 19 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 03 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [18:34:47]RAPDU: 90 00 [18:34:47]wFMCommunicate OK [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 0D 03 02 [18:34:47]Write to MH i2c: E2 08 00 37 0B 80 0D 03 02 00 00 00 00 BD [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 0B 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 0B 00 37 0B 00 02 39 9A 56 3E 53 12 D9 90 00 65 [18:34:47]RAPDU: 02 39 9A 56 3E 53 12 D9 90 00 [18:34:47]wFMCommunicate OK [18:34:47]SAM_PROTO_SignData done [18:34:47]FM_MakeSignedData done [18:34:47]CreateOFDProtocolMessage [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 11 00 00 [18:34:47]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 17 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 12 [18:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:34:47]wFMCommunicate OK [18:34:47]CreateOFDProtocolMessage done [18:34:47]OFDSenderStorePacket 34266 [18:34:47]StoreOFDPacket docnum=34266 [18:34:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 89 77 08 01 F0 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 47 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DA 85 00 00 35 04 06 00 0D C4 98 6E E0 9B 02 39 9A 56 3E 53 12 D9 [18:34:47]CheckFolder [18:34:47]dirname=/storage/ofd_packets [18:34:47]CheckFolder done [18:34:47]ProducePacketName [18:34:47]name=ofd_packets/00034266 [18:34:47]NVStorageSaveData ofd_packets/00034266 [18:34:47]File name is /storage/ofd_packets/00034266 [18:34:47]Write 302 bytes [18:34:47]NVStorageSaveData done [18:34:47]OFDSenderStorePacket done [18:34:47]KKMCreateOFDPacket done [18:34:47]NVStorageSaveData kkm_last_timestamp [18:34:47]File name is /storage/kkm_last_timestamp [18:34:47]Write 4 bytes [18:34:47]NVStorageSaveData done [18:34:47]ExternCall_PrintAddStr [18:34:47]wPrintStart [18:34:47]Write to MH i2c: 01 00 00 39 0B 44 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: 01 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: 01 07 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 FF 0F 59 [18:34:47]RasterBufferAndPrint [18:34:47]line Счет N : (1)672707 [18:34:47]line ИНН: 02508201610067 [18:34:47]line Контрольно-Кассовый Чек [18:34:47]line ПРОДАЖА [18:34:47]line ТРК (МРК, ГНК) : 21 [18:34:47]line Товар: 2710194210 [18:34:47]line ДТ(л)-К-5 [18:34:47]line 8.240 * 72.90 [18:34:47]line = 600.70 [18:34:47]line НДС 12% НСП 1% [18:34:47]line > о реализуемом товаре [18:34:47]line ОКРУГЛЕНИЕ: -0.70 [18:34:47]line ИТОГО: 600.00 [18:34:47]line Внесено: 600.00 [18:34:47]line СДАЧА: 0.00 [18:34:47]line НСП 1% : 5.32 [18:34:47]line НДС 12% : 63.79 [18:34:47]line Наличными: 600.00 [18:34:47]line Безнал.: 0.00 [18:34:47]line Место: АЗС № 120 "Партнер Нефть" [18:34:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:34:47]line СНО: Общий режим [18:34:47]line Чек 88 18.06.2024 18:34 [18:34:47]line Смена: 323 ФФД: 1.0 [18:34:47]line ЗНМ: 0300000172 [18:34:47]line РНМ: 0000000000092786 [18:34:47]line Версия ККМ: 001 [18:34:47]line ФМ: 0000000000875095 [18:34:47]line ФД: 34266 [18:34:47]line ФПД: 15138022154395 [18:34:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183447&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34266&fm=15138022154395&tin=02508201610067®Number=0000000000092786&sum=60000 [18:34:47]OFD Sender: Processing packet 34266 [packets to send 8, broken 7] [18:34:47]ProducePacketName [18:34:47]name=ofd_packets/00034266 [18:34:47]OFD Sender: To server: pG, [18:34:47]CommunicateWithHost lk.salyk.kg:30040 [18:34:47]ConnectInit lk.salyk.kg [18:34:47]written 0, free lines is 4095 [18:34:47]Connected sock=10 [18:34:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 01 00 00 89 77 08 01 F0 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 47 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DA 85 00 00 35 04 06 00 0D C4 98 6E E0 9B 02 39 9A 56 3E 53 12 D9 [18:34:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 99 A0 47 00 64 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DA 85 00 00 F4 03 04 00 16 7A 71 66 B6 04 01 00 00 14 C7 DD 95 53 65 77 B6 [18:34:48]CommunicateWithHost err = 0 [18:34:48]CheckOFDResponse [18:34:48]1017 (14) - 77093643461234 [18:34:48]1041 (16) - 0000000000875095 [18:34:48]1040 (4) - 34266 [18:34:48]1012 (4) - 18.06.2024 12:14 [18:34:48]1206 (1) - 0 [18:34:48]OFD Sender: Remove packet 34266 [18:34:48]ProducePacketName [18:34:48]name=ofd_packets/00034266 [18:34:48]NVStorageDeleteData [18:34:48]Write to MH i2c: 01 00 00 64 0B 6F [18:34:48]Write i2c OK [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: 01 [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: 01 07 00 [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 E4 0C 66 [18:34:48]RasterBufferAndPrint [18:34:48]line [18:34:48]line [18:34:48]line [18:34:48]line [18:34:48]line [18:34:48]written 0, free lines is 3306 [18:34:48]MH_Cut [18:34:48]Write to MH i2c: D1 01 00 6B 0B 01 48 [18:34:48]Write i2c OK [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: D1 [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: D1 01 00 [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: D1 01 00 6B 0B 00 47 [18:34:48]Write to MH i2c: 01 00 00 6C 0B 77 [18:34:48]Write i2c OK [18:34:48]MH_I2C_Read... [18:34:48]OFD Sender: No OFD packet to send [18:34:48]*** Cut start [18:34:48]*** Partial cut [18:34:48]*** CUTSNS_PIN = 1 [18:34:49]*** CUTSNS_PIN = 0 [18:34:49]*** Brake cut motor [18:34:49]Read from MH i2c: 01 [18:34:49]MH_I2C_Read... [18:34:49]*** Stop cut motor [18:34:49]*** Cut end [18:34:49]Read from MH i2c: 01 07 00 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [18:34:49]process_action close_receipt done [18:34:49]requested_data is exist [18:34:49]produce_requested_data [18:34:49]requested_item fm.sn is exist - process it [18:34:49]wFMCommunicate request_size=4 [18:34:49]MH_SAM_APDU [18:34:49]CAPDU: 80 11 00 00 [18:34:49]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [18:34:49]Write i2c OK [18:34:49]MH_I2C_Read... [18:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:49]Read from MH i2c: E2 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 17 00 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 47 [18:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:34:49]wFMCommunicate OK [18:34:49]requested_item fd.num is exist - process it [18:34:49]SAM_PROTO_GetFieldsCounters [18:34:49]wFMCommunicate request_size=4 [18:34:49]MH_SAM_APDU [18:34:49]CAPDU: 80 13 00 00 [18:34:49]Write to MH i2c: E2 08 00 6E 0B 80 13 00 00 00 00 00 00 F5 [18:34:49]Write i2c OK [18:34:49]MH_I2C_Read... [18:34:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:49]Read from MH i2c: E2 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 62 00 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 62 00 6E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DA 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [18:34:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DA 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:49]wFMCommunicate OK [18:34:49]SAM_PROTO_GetFieldsCounters done [18:34:49]requested_item shift.num is exist - process it [18:34:49]requested_item shift.opened is exist - process it [18:34:49]req_shift_opened [18:34:49]FM_GetShiftState [18:34:49]SAM_PROTO_GetShiftState [18:34:49]wFMCommunicate request_size=4 [18:34:49]MH_SAM_APDU [18:34:49]CAPDU: 80 13 01 00 [18:34:49]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [18:34:49]Write i2c OK [18:34:49]MH_I2C_Read... [18:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:49]Read from MH i2c: E2 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 0E 00 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 42 [18:34:49]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:34:49]wFMCommunicate OK [18:34:49]SAM_PROTO_GetShiftState done [18:34:49]FM_GetShiftState done [18:34:49]req_shift_opened done [18:34:49]requested_item shift.open_date is exist - process it [18:34:49]req_shift_open_date [18:34:49]req_shift_open_date done [18:34:49]produce_requested_data done [18:34:49]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34266,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:34:49]process_action_free close_receipt [18:34:49]json_value_free [18:34:49]json_value_free done [18:34:49]process_json_proto returns [18:34:49]Send response to host [18:34:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34266,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:34:49]free response buf [18:34:49]execute_script done [18:34:49]execute_script returns [18:34:49]free content buf [18:34:49]Sock 7.Close socket [18:34:49]Sock 7.Thread stoped [18:34:53]OFD Sender: No OFD packet to send [18:34:54]accept exits with 9 [18:34:54]New connection [18:34:54]New thread 3067424100 created [18:34:54]Thread 3067567460 joined [18:34:54]Waiting for new connection... [18:34:54] Sock 9.Parse request [18:34:54]Sock 9.Check first char [18:34:54]Sock 9.First char is OK [18:34:54]request: POST /json_proto HTTP/1.0 [18:34:54]Method: POST [18:34:54]URL: /json_proto [18:34:54]Method is POST - this is cgi request [18:34:54]url: /json_proto [18:34:54]query_string will be loaded in cgi processing [18:34:54]execute_cgi json_proto POST (null) [18:34:54]execute_cgi path=json_proto method=POST [18:34:54]POST find Content-Length [18:34:54]Host: 172.17.38.134:8080 [18:34:54]Content-Length: 677 [18:34:54]Content-Type: application/json [18:34:54] [18:34:54]POST finish read [18:34:54]Found Content-Length = 677 [18:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:54]execute_script... [18:34:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:54]POST & json_proto [18:34:54]process_json_proto [18:34:54]json parsed OK: [18:34:54]protocol is kg_v1.0 [18:34:54]action value=close_receipt [18:34:54]process_action close_receipt [18:34:54]cmd_close_receipt [18:34:54]MH_GetDate [18:34:54]Write to MH i2c: F0 00 00 70 0B 6A [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: F0 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: F0 09 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: F0 09 00 70 0B 00 50 D3 71 66 13 9C 7C 64 FC [18:34:54]GetLastDocTimeStamp 1718735687 [18:34:54]current date 1718735696 [18:34:54]FM_GetShiftState [18:34:54]SAM_PROTO_GetShiftState [18:34:54]wFMCommunicate request_size=4 [18:34:54]MH_SAM_APDU [18:34:54]CAPDU: 80 13 01 00 [18:34:54]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [18:34:54]Write i2c OK [18:34:54]MH_I2C_Read... [18:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:54]Read from MH i2c: E2 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 0E 00 [18:34:54]MH_I2C_Read... [18:34:54]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 44 [18:34:54]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:34:54]wFMCommunicate OK [18:34:54]SAM_PROTO_GetShiftState done [18:34:54]FM_GetShiftState done [18:34:54]opened in 1718670230 [18:34:54]opened+sec_in_day 1718756630 [18:34:54]quantity*price = 50065 [18:34:54]sum+1 = 50067 [18:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 89 18.06.2024 18:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34267 ФПД: 111609914213921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183456&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34267&fm=111609914213921&tin=02508201610067®Number=0000000000092786&sum=50000 [18:34:55]StoreToDocumentArchive [18:34:55]shift 323 fd 34267 [18:34:55]save to /storage/0323/doc_00034267 [18:34:55]save last doc name /storage/0323/doc_00034267 to /storage/kkm_last_doc_name [18:34:55]save OK [18:34:55]Clear old archive folders... [18:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:55]tlvbuf is 01917D80 [18:34:55]SAM_PROTO_ClearQueue [18:34:55]wFMCommunicate request_size=4 [18:34:55]MH_SAM_APDU [18:34:55]CAPDU: 80 09 00 00 [18:34:55]Write to MH i2c: E2 08 00 7E 0B 80 09 00 00 00 00 00 00 FB [18:34:55]Write i2c OK [18:34:55]MH_I2C_Read... [18:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:56]Read from MH i2c: E2 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [18:34:56]RAPDU: 90 00 [18:34:56]wFMCommunicate OK [18:34:56]SAM_PROTO_ClearQueue done [18:34:56]KKMCreateOFDPacket [18:34:56]OFDProtocolAddRootSTLVToBuf [18:34:56]FM_MakeSignedData [18:34:56]FM_MakeSignedData [18:34:56]SAM_PROTO_SignData [18:34:56]wFMCommunicate request_size=4 [18:34:56]MH_SAM_APDU [18:34:56]CAPDU: 80 0D 01 02 [18:34:56]Write to MH i2c: E2 08 00 7F 0B 80 0D 01 02 00 00 00 00 03 [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:56]Read from MH i2c: E2 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [18:34:56]RAPDU: 90 00 [18:34:56]wFMCommunicate OK [18:34:56]wFMCommunicate request_size=255 [18:34:56]MH_SAM_APDU [18:34: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 50 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DB 85 00 00 35 04 06 00 65 [18:34:56]Write to MH i2c: E2 02 01 80 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 50 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DB 85 00 00 35 04 06 00 65 00 00 1C [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:56]Read from MH i2c: E2 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [18:34:56]RAPDU: 90 00 [18:34:56]wFMCommunicate OK [18:34:56]wFMCommunicate request_size=10 [18:34:56]MH_SAM_APDU [18:34:56]CAPDU: 80 0D 02 02 05 82 35 4A 46 21 [18:34:56]Write to MH i2c: E2 0D 00 81 0B 80 0D 02 02 05 00 82 35 4A 46 21 00 00 78 [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:56]Read from MH i2c: E2 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [18:34:56]RAPDU: 90 00 [18:34:56]wFMCommunicate OK [18:34:56]wFMCommunicate request_size=4 [18:34:56]MH_SAM_APDU [18:34:56]CAPDU: 80 0D 03 02 [18:34:56]Write to MH i2c: E2 08 00 82 0B 80 0D 03 02 00 00 00 00 08 [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:56]Read from MH i2c: E2 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 0B 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 0B 00 82 0B 00 1D 44 82 FF 95 D5 3E CA 90 00 5D [18:34:56]RAPDU: 1D 44 82 FF 95 D5 3E CA 90 00 [18:34:56]wFMCommunicate OK [18:34:56]SAM_PROTO_SignData done [18:34:56]FM_MakeSignedData done [18:34:56]CreateOFDProtocolMessage [18:34:56]wFMCommunicate request_size=4 [18:34:56]MH_SAM_APDU [18:34:56]CAPDU: 80 11 00 00 [18:34:56]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:56]Read from MH i2c: E2 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 17 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 5D [18:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:34:56]wFMCommunicate OK [18:34:56]CreateOFDProtocolMessage done [18:34:56]OFDSenderStorePacket 34267 [18:34:56]StoreOFDPacket docnum=34267 [18:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 38 D5 07 01 9F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 50 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DB 85 00 00 35 04 06 00 65 82 35 4A 46 21 1D 44 82 FF 95 D5 3E CA [18:34:56]CheckFolder [18:34:56]dirname=/storage/ofd_packets [18:34:56]CheckFolder done [18:34:56]ProducePacketName [18:34:56]name=ofd_packets/00034267 [18:34:56]NVStorageSaveData ofd_packets/00034267 [18:34:56]File name is /storage/ofd_packets/00034267 [18:34:56]Write 301 bytes [18:34:56]NVStorageSaveData done [18:34:56]OFDSenderStorePacket done [18:34:56]KKMCreateOFDPacket done [18:34:56]NVStorageSaveData kkm_last_timestamp [18:34:56]File name is /storage/kkm_last_timestamp [18:34:56]Write 4 bytes [18:34:56]NVStorageSaveData done [18:34:56]ExternCall_PrintAddStr [18:34:56]wPrintStart [18:34:56]Write to MH i2c: 01 00 00 84 0B 8F [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: 01 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: 01 07 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [18:34:56]RasterBufferAndPrint [18:34:56]line Счет N : (1)672709 [18:34:56]line ИНН: 02508201610067 [18:34:56]line Контрольно-Кассовый Чек [18:34:56]line ПРОДАЖА [18:34:56]line ТРК (МРК, ГНК) : 32 [18:34:56]line Товар: 2710124130 [18:34:56]line Аи-92-К-5 [18:34:56]line 7.540 * 66.40 [18:34:56]line = 500.66 [18:34:56]line НДС 12% НСП 1% [18:34:56]line > о реализуемом товаре [18:34:56]line ОКРУГЛЕНИЕ: -0.66 [18:34:56]line ИТОГО: 500.00 [18:34:56]line Внесено: 500.00 [18:34:56]line СДАЧА: 0.00 [18:34:56]line НСП 1% : 4.43 [18:34:56]line НДС 12% : 53.17 [18:34:56]line Наличными: 500.00 [18:34:56]line Безнал.: 0.00 [18:34:56]line Место: АЗС № 120 "Партнер Нефть" [18:34:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:34:56]line СНО: Общий режим [18:34:56]line Чек 89 18.06.2024 18:34 [18:34:56]line Смена: 323 ФФД: 1.0 [18:34:56]line ЗНМ: 0300000172 [18:34:56]line РНМ: 0000000000092786 [18:34:56]line Версия ККМ: 001 [18:34:56]line ФМ: 0000000000875095 [18:34:56]line ФД: 34267 [18:34:56]line ФПД: 111609914213921 [18:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183456&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34267&fm=111609914213921&tin=02508201610067®Number=0000000000092786&sum=50000 [18:34:56]written 0, free lines is 4095 [18:34:56]OFD Sender: Processing packet 34267 [packets to send 8, broken 7] [18:34:56]ProducePacketName [18:34:56]name=ofd_packets/00034267 [18:34:56]OFD Sender: To server: pG, [18:34:56]CommunicateWithHost lk.salyk.kg:30040 [18:34:56]ConnectInit lk.salyk.kg [18:34:56]Connected sock=10 [18:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 38 D5 07 01 9F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 50 D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DB 85 00 00 35 04 06 00 65 82 35 4A 46 21 1D 44 82 FF 95 D5 3E CA [18:34:56]Write to MH i2c: 01 00 00 AF 0B BA [18:34:56]Write i2c OK [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: 01 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: 01 07 00 [18:34:56]MH_I2C_Read... [18:34:56]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 E4 0C B1 [18:34:56]RasterBufferAndPrint [18:34:56]line [18:34:56]line [18:34:56]line [18:34:56]line [18:34:56]line [18:34:56]written 0, free lines is 3309 [18:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C4 A4 47 00 5F 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DB 85 00 00 F4 03 04 00 1F 7A 71 66 B6 04 01 00 00 A9 C0 69 E4 08 78 3A 67 [18:34:57]CommunicateWithHost err = 0 [18:34:57]CheckOFDResponse [18:34:57]1017 (14) - 77093643461234 [18:34:57]1041 (16) - 0000000000875095 [18:34:57]1040 (4) - 34267 [18:34:57]1012 (4) - 18.06.2024 12:14 [18:34:57]1206 (1) - 0 [18:34:57]OFD Sender: Remove packet 34267 [18:34:57]ProducePacketName [18:34:57]name=ofd_packets/00034267 [18:34:57]NVStorageDeleteData [18:34:57]MH_Cut [18:34:57]Write to MH i2c: D1 01 00 B6 0B 01 93 [18:34:57]Write i2c OK [18:34:57]MH_I2C_Read... [18:34:57]Read from MH i2c: D1 [18:34:57]MH_I2C_Read... [18:34:57]Read from MH i2c: D1 01 00 [18:34:57]MH_I2C_Read... [18:34:57]Read from MH i2c: D1 01 00 B6 0B 00 92 [18:34:57]Write to MH i2c: 01 00 00 B7 0B C2 [18:34:57]Write i2c OK [18:34:57]MH_I2C_Read... [18:34:57]OFD Sender: No OFD packet to send [18:34:57]*** Cut start [18:34:57]*** Partial cut [18:34:57]*** CUTSNS_PIN = 1 [18:34:57]*** CUTSNS_PIN = 0 [18:34:57]*** Brake cut motor [18:34:58]Read from MH i2c: 01 [18:34:58]MH_I2C_Read... [18:34:58]*** Stop cut motor [18:34:58]*** Cut end [18:34:58]Read from MH i2c: 01 07 00 [18:34:58]MH_I2C_Read... [18:34:58]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [18:34:58]process_action close_receipt done [18:34:58]requested_data is exist [18:34:58]produce_requested_data [18:34:58]requested_item fm.sn is exist - process it [18:34:58]wFMCommunicate request_size=4 [18:34:58]MH_SAM_APDU [18:34:58]CAPDU: 80 11 00 00 [18:34:58]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [18:34:58]Write i2c OK [18:34:58]MH_I2C_Read... [18:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:58]Read from MH i2c: E2 [18:34:58]MH_I2C_Read... [18:34:58]Read from MH i2c: E2 17 00 [18:34:58]MH_I2C_Read... [18:34:58]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 35 30 39 35 90 00 92 [18:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:34:58]wFMCommunicate OK [18:34:58]requested_item fd.num is exist - process it [18:34:58]SAM_PROTO_GetFieldsCounters [18:34:58]wFMCommunicate request_size=4 [18:34:58]MH_SAM_APDU [18:34:58]CAPDU: 80 13 00 00 [18:34:58]Write to MH i2c: E2 08 00 B9 0B 80 13 00 00 00 00 00 00 40 [18:34:58]Write i2c OK [18:34:58]MH_I2C_Read... [18:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:58]Read from MH i2c: E2 [18:34:58]MH_I2C_Read... [18:34:58]Read from MH i2c: E2 62 00 [18:34:58]MH_I2C_Read... [18:34:58]Read from MH i2c: E2 62 00 B9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DB 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DB 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:58]wFMCommunicate OK [18:34:58]SAM_PROTO_GetFieldsCounters done [18:34:58]requested_item shift.num is exist - process it [18:34:58]requested_item shift.opened is exist - process it [18:34:58]req_shift_opened [18:34:58]FM_GetShiftState [18:34:58]SAM_PROTO_GetShiftState [18:34:58]wFMCommunicate request_size=4 [18:34:58]MH_SAM_APDU [18:34:58]CAPDU: 80 13 01 00 [18:34:58]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [18:34:58]Write i2c OK [18:34:58]MH_I2C_Read... [18:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:58]Read from MH i2c: E2 [18:34:58]MH_I2C_Read... [18:34:58]Read from MH i2c: E2 0E 00 [18:34:58]MH_I2C_Read... [18:34:58]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8D [18:34:58]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:34:58]wFMCommunicate OK [18:34:58]SAM_PROTO_GetShiftState done [18:34:58]FM_GetShiftState done [18:34:58]req_shift_opened done [18:34:58]requested_item shift.open_date is exist - process it [18:34:58]req_shift_open_date [18:34:58]req_shift_open_date done [18:34:58]produce_requested_data done [18:34:58]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34267,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:34:58]process_action_free close_receipt [18:34:58]json_value_free [18:34:58]json_value_free done [18:34:58]process_json_proto returns [18:34:58]Send response to host [18:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34267,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:34:58]free response buf [18:34:58]execute_script done [18:34:58]execute_script returns [18:34:58]free content buf [18:34:58]Sock 9.Close socket [18:34:58]Sock 9.Thread stoped [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:09]accept exits with 7 [18:36:09]New connection [18:36:09]New thread 3067567460 created [18:36:09]Thread 3067424100 joined [18:36:09]Waiting for new connection... [18:36:09] Sock 7.Parse request [18:36:09]Sock 7.Check first char [18:36:09]Sock 7.First char is OK [18:36:09]request: POST /json_proto HTTP/1.0 [18:36:09]Method: POST [18:36:09]URL: /json_proto [18:36:09]Method is POST - this is cgi request [18:36:09]url: /json_proto [18:36:09]query_string will be loaded in cgi processing [18:36:09]execute_cgi json_proto POST (null) [18:36:09]execute_cgi path=json_proto method=POST [18:36:09]POST find Content-Length [18:36:09]Host: 172.17.38.134:8080 [18:36:09]Content-Length: 621 [18:36:09]Content-Type: application/json [18:36:09] [18:36:09]POST finish read [18:36:09]Found Content-Length = 621 [18:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184050", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [18:36:09]execute_script... [18:36:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184050", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [18:36:09]POST & json_proto [18:36:09]process_json_proto [18:36:09]json parsed OK: [18:36:09]protocol is kg_v1.0 [18:36:09]action value=close_receipt [18:36:09]process_action close_receipt [18:36:09]cmd_close_receipt [18:36:09]MH_GetDate [18:36:09]Write to MH i2c: F0 00 00 BB 0B B5 [18:36:09]Write i2c OK [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: F0 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: F0 09 00 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: F0 09 00 BB 0B 00 9B D3 71 66 13 9C 7C 64 92 [18:36:09]GetLastDocTimeStamp 1718735696 [18:36:09]current date 1718735771 [18:36:09]FM_GetShiftState [18:36:09]SAM_PROTO_GetShiftState [18:36:09]wFMCommunicate request_size=4 [18:36:09]MH_SAM_APDU [18:36:09]CAPDU: 80 13 01 00 [18:36:09]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [18:36:09]Write i2c OK [18:36:09]MH_I2C_Read... [18:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:09]Read from MH i2c: E2 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: E2 0E 00 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 8F [18:36:09]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:36:09]wFMCommunicate OK [18:36:09]SAM_PROTO_GetShiftState done [18:36:09]FM_GetShiftState done [18:36:09]opened in 1718670230 [18:36:09]opened+sec_in_day 1718756630 [18:36:09]quantity*price = 14000 [18:36:09]sum+1 = 14001 [18:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 90 18.06.2024 18:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34268 ФПД: 233176947569813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183611&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34268&fm=233176947569813&tin=02508201610067®Number=0000000000092786&sum=14000 0 [18:36:11]StoreToDocumentArchive [18:36:11]shift 323 fd 34268 [18:36:11]save to /storage/0323/doc_00034268 [18:36:11]save last doc name /storage/0323/doc_00034268 to /storage/kkm_last_doc_name [18:36:11]save OK [18:36:11]Clear old archive folders... [18:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:36:11]tlvbuf is 01928540 [18:36:11]SAM_PROTO_ClearQueue [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 09 00 00 [18:36:11]Write to MH i2c: E2 08 00 C9 0B 80 09 00 00 00 00 00 00 46 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]SAM_PROTO_ClearQueue done [18:36:11]KKMCreateOFDPacket [18:36:11]OFDProtocolAddRootSTLVToBuf [18:36:11]FM_MakeSignedData [18:36:11]FM_MakeSignedData [18:36:11]SAM_PROTO_SignData [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 01 02 [18:36:11]Write to MH i2c: E2 08 00 CA 0B 80 0D 01 02 00 00 00 00 4E [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=255 [18:36:11]MH_SAM_APDU [18:36: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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 5A 00 00 00 F4 03 04 00 9B D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [18:36:11]Write to MH i2c: E2 02 01 CB 0B 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 5A 00 00 00 F4 03 04 00 9B D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 2D [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=32 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 DC 85 00 00 35 04 06 00 D4 12 BD 21 34 95 [18:36:11]Write to MH i2c: E2 23 00 CC 0B 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 DC 85 00 00 35 04 06 00 D4 12 BD 21 34 95 00 00 9E [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 03 02 [18:36:11]Write to MH i2c: E2 08 00 CD 0B 80 0D 03 02 00 00 00 00 53 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0B 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0B 00 CD 0B 00 5B DD 71 A7 4C 18 63 FC 90 00 67 [18:36:11]RAPDU: 5B DD 71 A7 4C 18 63 FC 90 00 [18:36:11]wFMCommunicate OK [18:36:11]SAM_PROTO_SignData done [18:36:11]FM_MakeSignedData done [18:36:11]CreateOFDProtocolMessage [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 11 00 00 [18:36:11]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 17 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 A8 [18:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:36:11]wFMCommunicate OK [18:36:11]CreateOFDProtocolMessage done [18:36:11]OFDSenderStorePacket 34268 [18:36:11]StoreOFDPacket docnum=34268 [18:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 4F F3 1D 01 A1 FE 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 5A 00 00 00 F4 03 04 00 9B D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DC 85 00 00 35 04 06 00 D4 12 BD 21 34 95 5B DD 71 A7 4C 18 63 FC [18:36:11]CheckFolder [18:36:11]dirname=/storage/ofd_packets [18:36:11]CheckFolder done [18:36:11]ProducePacketName [18:36:11]name=ofd_packets/00034268 [18:36:11]NVStorageSaveData ofd_packets/00034268 [18:36:11]File name is /storage/ofd_packets/00034268 [18:36:11]Write 323 bytes [18:36:11]NVStorageSaveData done [18:36:11]OFDSenderStorePacket done [18:36:11]KKMCreateOFDPacket done [18:36:11]NVStorageSaveData kkm_last_timestamp [18:36:11]File name is /storage/kkm_last_timestamp [18:36:11]Write 4 bytes [18:36:11]NVStorageSaveData done [18:36:11]ExternCall_PrintAddStr [18:36:11]wPrintStart [18:36:11]Write to MH i2c: 01 00 00 CF 0B DA [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 CF 0B 00 00 00 00 00 FF 0F EF [18:36:11]RasterBufferAndPrint [18:36:11]line Счет N : (3)184050 [18:36:11]line ИНН: 02508201610067 [18:36:11]line Контрольно-Кассовый Чек [18:36:11]line ПРОДАЖА [18:36:11]line Товар: 48743570 [18:36:11]line Сигареты Winston XStyle Blue [18:36:11]line 1.000 * 140.00 [18:36:11]line = 140.00 [18:36:11]line НДС 12% НСП 1% [18:36:11]line > о реализуемом товаре [18:36:11]line ИТОГО: 140.00 [18:36:11]line НСП 1% : 1.24 [18:36:11]line НДС 12% : 14.87 [18:36:11]line Наличными: 140.00 [18:36:11]line Безнал.: 0.00 [18:36:11]line Место: АЗС № 120 "Партнер Нефть" [18:36:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:36:11]line СНО: Общий режим [18:36:11]line Чек 90 18.06.2024 18:36 [18:36:11]line Смена: 323 ФФД: 1.0 [18:36:11]line ЗНМ: 0300000172 [18:36:11]line РНМ: 0000000000092786 [18:36:11]line Версия ККМ: 001 [18:36:11]line ФМ: 0000000000875095 [18:36:11]line ФД: 34268 [18:36:11]line ФПД: 233176947569813 [18:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183611&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34268&fm=233176947569813&tin=02508201610067®Number=0000000000092786&sum=14000 [18:36:11]line 0 [18:36:11]OFD Sender: Processing packet 34268 [packets to send 8, broken 7] [18:36:11]ProducePacketName [18:36:11]name=ofd_packets/00034268 [18:36:11]OFD Sender: To server: pG, [18:36:11]CommunicateWithHost lk.salyk.kg:30040 [18:36:11]ConnectInit lk.salyk.kg [18:36:11]written 0, free lines is 4095 [18:36:12]Connected sock=10 [18:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 4F F3 1D 01 A1 FE 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 5A 00 00 00 F4 03 04 00 9B D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DC 85 00 00 35 04 06 00 D4 12 BD 21 34 95 5B DD 71 A7 4C 18 63 FC [18:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 92 64 47 00 21 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DC 85 00 00 F4 03 04 00 6A 7A 71 66 B6 04 01 00 00 1C 85 BF 90 9A 96 81 75 [18:36:12]CommunicateWithHost err = 0 [18:36:12]CheckOFDResponse [18:36:12]1017 (14) - 77093643461234 [18:36:12]1041 (16) - 0000000000875095 [18:36:12]1040 (4) - 34268 [18:36:12]1012 (4) - 18.06.2024 12:15 [18:36:12]1206 (1) - 0 [18:36:12]OFD Sender: Remove packet 34268 [18:36:12]ProducePacketName [18:36:12]name=ofd_packets/00034268 [18:36:12]NVStorageDeleteData [18:36:12]Write to MH i2c: 01 00 00 F7 0B 02 [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: 01 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: 01 07 00 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 F4 0C 09 [18:36:12]RasterBufferAndPrint [18:36:12]line [18:36:12]line [18:36:12]line [18:36:12]line [18:36:12]line [18:36:12]written 0, free lines is 3323 [18:36:12]MH_Cut [18:36:12]Write to MH i2c: D1 01 00 FE 0B 01 DB [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: D1 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: D1 01 00 [18:36:12]MH_I2C_Read... [18:36:12]Read from MH i2c: D1 01 00 FE 0B 00 DA [18:36:12]Write to MH i2c: 01 00 00 FF 0B 0A [18:36:12]Write i2c OK [18:36:12]MH_I2C_Read... [18:36:12]OFD Sender: No OFD packet to send [18:36:13]*** Cut start [18:36:13]*** Partial cut [18:36:13]*** CUTSNS_PIN = 1 [18:36:13]*** CUTSNS_PIN = 0 [18:36:13]*** Brake cut motor [18:36:13]Read from MH i2c: 01 [18:36:13]MH_I2C_Read... [18:36:13]*** Stop cut motor [18:36:13]*** Cut end [18:36:13]Read from MH i2c: 01 07 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 07 00 FF 0B 00 00 00 00 00 FF 0F 1F [18:36:13]process_action close_receipt done [18:36:13]requested_data is exist [18:36:13]produce_requested_data [18:36:13]requested_item fm.sn is exist - process it [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 11 00 00 [18:36:13]Write to MH i2c: E2 08 00 00 0C 80 11 00 00 00 00 00 00 86 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 00 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 DB [18:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:36:13]wFMCommunicate OK [18:36:13]requested_item fd.num is exist - process it [18:36:13]SAM_PROTO_GetFieldsCounters [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 13 00 00 [18:36:13]Write to MH i2c: E2 08 00 01 0C 80 13 00 00 00 00 00 00 89 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 62 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 62 00 01 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DC 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [18:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DC 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetFieldsCounters done [18:36:13]requested_item shift.num is exist - process it [18:36:13]requested_item shift.opened is exist - process it [18:36:13]req_shift_opened [18:36:13]FM_GetShiftState [18:36:13]SAM_PROTO_GetShiftState [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 13 01 00 [18:36:13]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D6 [18:36:13]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetShiftState done [18:36:13]FM_GetShiftState done [18:36:13]req_shift_opened done [18:36:13]requested_item shift.open_date is exist - process it [18:36:13]req_shift_open_date [18:36:13]req_shift_open_date done [18:36:13]produce_requested_data done [18:36:13]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34268,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:36:13]process_action_free close_receipt [18:36:13]json_value_free [18:36:13]json_value_free done [18:36:13]process_json_proto returns [18:36:13]Send response to host [18:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34268,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:36:13]free response buf [18:36:13]execute_script done [18:36:13]execute_script returns [18:36:13]free content buf [18:36:13]Sock 7.Close socket [18:36:13]Sock 7.Thread stoped [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:26]int [18:36:26]Write to MH i2c: 01 00 00 03 0C 0F [18:36:26]*** FLAG_PRN_PAP2 set [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 03 0C 00 02 00 00 00 FF 0F 26 [18:36:26]state=0 [18:36:26]Cover opened [18:36:27]OFD Sender: No OFD packet to send [18:36:30]int [18:36:30]Write to MH i2c: 01 00 00 04 0C 10 [18:36:30]*** FLAG_PRN_PAP2 reset [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [18:36:30]state=3 [18:36:30]Cover closed [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:16]accept exits with 9 [18:37:16]New connection [18:37:16]New thread 3067424100 created [18:37:16]Thread 3067567460 joined [18:37:16]Waiting for new connection... [18:37:16] Sock 9.Parse request [18:37:16]Sock 9.Check first char [18:37:16]Sock 9.First char is OK [18:37:16]request: POST /json_proto HTTP/1.0 [18:37:16]Method: POST [18:37:16]URL: /json_proto [18:37:16]Method is POST - this is cgi request [18:37:16]url: /json_proto [18:37:16]query_string will be loaded in cgi processing [18:37:16]execute_cgi json_proto POST (null) [18:37:16]execute_cgi path=json_proto method=POST [18:37:16]POST find Content-Length [18:37:16]Host: 172.17.38.134:8080 [18:37:16]Content-Length: 614 [18:37:16]Content-Type: application/json [18:37:16] [18:37:16]POST finish read [18:37:16]Found Content-Length = 614 [18:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184051", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:16]execute_script... [18: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 : (3)184051", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:16]POST & json_proto [18:37:16]process_json_proto [18:37:16]json parsed OK: [18:37:16]protocol is kg_v1.0 [18:37:16]action value=close_receipt [18:37:16]process_action close_receipt [18:37:16]cmd_close_receipt [18:37:16]MH_GetDate [18:37:16]Write to MH i2c: F0 00 00 05 0C 00 [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: F0 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: F0 09 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: F0 09 00 05 0C 00 DE D3 71 66 13 9C 7C 64 20 [18:37:16]GetLastDocTimeStamp 1718735771 [18:37:16]current date 1718735838 [18:37:16]FM_GetShiftState [18:37:16]SAM_PROTO_GetShiftState [18:37:16]wFMCommunicate request_size=4 [18:37:16]MH_SAM_APDU [18:37:16]CAPDU: 80 13 01 00 [18:37:16]Write to MH i2c: E2 08 00 06 0C 80 13 01 00 00 00 00 00 8F [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:16]Read from MH i2c: E2 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 0E 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 0E 00 06 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 DA [18:37:16]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:37:16]wFMCommunicate OK [18:37:16]SAM_PROTO_GetShiftState done [18:37:16]FM_GetShiftState done [18:37:16]opened in 1718670230 [18:37:16]opened+sec_in_day 1718756630 [18:37:16]quantity*price = 30000 [18:37:16]sum+1 = 30001 [18:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 91 18.06.2024 18:37 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34269 ФПД: 263054030906051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183718&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34269&fm=263054030906051&tin=02508201610067®Number=0000000000092786&sum=30000 0 [18:37:18]StoreToDocumentArchive [18:37:18]shift 323 fd 34269 [18:37:18]save to /storage/0323/doc_00034269 [18:37:18]save last doc name /storage/0323/doc_00034269 to /storage/kkm_last_doc_name [18:37:18]save OK [18:37:18]Clear old archive folders... [18:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:37:18]tlvbuf is 018EC7A0 [18:37:18]SAM_PROTO_ClearQueue [18:37:18]wFMCommunicate request_size=4 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 09 00 00 [18:37:18]Write to MH i2c: E2 08 00 13 0C 80 09 00 00 00 00 00 00 91 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [18:37:18]RAPDU: 90 00 [18:37:18]wFMCommunicate OK [18:37:18]SAM_PROTO_ClearQueue done [18:37:18]KKMCreateOFDPacket [18:37:18]OFDProtocolAddRootSTLVToBuf [18:37:18]FM_MakeSignedData [18:37:18]FM_MakeSignedData [18:37:18]SAM_PROTO_SignData [18:37:18]wFMCommunicate request_size=4 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 0D 01 02 [18:37:18]Write to MH i2c: E2 08 00 14 0C 80 0D 01 02 00 00 00 00 99 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [18:37:18]RAPDU: 90 00 [18:37:18]wFMCommunicate OK [18:37:18]wFMCommunicate request_size=255 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DE D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [18:37:18]Write to MH i2c: E2 02 01 15 0C 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DE D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 B3 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [18:37:18]RAPDU: 90 00 [18:37:18]wFMCommunicate OK [18:37:18]wFMCommunicate request_size=25 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 0D 02 02 14 39 35 10 04 04 00 DD 85 00 00 35 04 06 00 EF 3F 0A 11 A2 C3 [18:37:18]Write to MH i2c: E2 1C 00 16 0C 80 0D 02 02 14 00 39 35 10 04 04 00 DD 85 00 00 35 04 06 00 EF 3F 0A 11 A2 C3 00 00 99 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [18:37:18]RAPDU: 90 00 [18:37:18]wFMCommunicate OK [18:37:18]wFMCommunicate request_size=4 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 0D 03 02 [18:37:18]Write to MH i2c: E2 08 00 17 0C 80 0D 03 02 00 00 00 00 9E [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 0B 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 0B 00 17 0C 00 25 7A 48 67 A7 75 2A 4C 90 00 7F [18:37:18]RAPDU: 25 7A 48 67 A7 75 2A 4C 90 00 [18:37:18]wFMCommunicate OK [18:37:18]SAM_PROTO_SignData done [18:37:18]FM_MakeSignedData done [18:37:18]CreateOFDProtocolMessage [18:37:18]wFMCommunicate request_size=4 [18:37:18]MH_SAM_APDU [18:37:18]CAPDU: 80 11 00 00 [18:37:18]Write to MH i2c: E2 08 00 18 0C 80 11 00 00 00 00 00 00 9E [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:18]Read from MH i2c: E2 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 17 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: E2 17 00 18 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F3 [18:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:37:18]wFMCommunicate OK [18:37:18]CreateOFDProtocolMessage done [18:37:18]OFDSenderStorePacket 34269 [18:37:18]StoreOFDPacket docnum=34269 [18:37:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 26 79 16 01 4F 2F 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DE D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DD 85 00 00 35 04 06 00 EF 3F 0A 11 A2 C3 25 7A 48 67 A7 75 2A 4C [18:37:18]CheckFolder [18:37:18]dirname=/storage/ofd_packets [18:37:18]CheckFolder done [18:37:18]ProducePacketName [18:37:18]name=ofd_packets/00034269 [18:37:18]NVStorageSaveData ofd_packets/00034269 [18:37:18]File name is /storage/ofd_packets/00034269 [18:37:18]Write 316 bytes [18:37:18]NVStorageSaveData done [18:37:18]OFDSenderStorePacket done [18:37:18]KKMCreateOFDPacket done [18:37:18]NVStorageSaveData kkm_last_timestamp [18:37:18]File name is /storage/kkm_last_timestamp [18:37:18]Write 4 bytes [18:37:18]NVStorageSaveData done [18:37:18]ExternCall_PrintAddStr [18:37:18]wPrintStart [18:37:18]Write to MH i2c: 01 00 00 19 0C 25 [18:37:18]Write i2c OK [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: 01 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: 01 07 00 [18:37:18]MH_I2C_Read... [18:37:18]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 FF 0F 3A [18:37:18]RasterBufferAndPrint [18:37:18]line Счет N : (3)184051 [18:37:18]line ИНН: 02508201610067 [18:37:18]line Контрольно-Кассовый Чек [18:37:18]line ПРОДАЖА [18:37:18]line Товар: 48744317 [18:37:18]line Сигареты Camel Yellow [18:37:18]line 2.000 * 150.00 [18:37:18]line = 300.00 [18:37:18]line НДС 12% НСП 1% [18:37:18]line > о реализуемом товаре [18:37:18]line ИТОГО: 300.00 [18:37:18]line НСП 1% : 2.65 [18:37:18]line НДС 12% : 31.86 [18:37:18]line Наличными: 300.00 [18:37:18]line Безнал.: 0.00 [18:37:18]line Место: АЗС № 120 "Партнер Нефть" [18:37:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:37:18]line СНО: Общий режим [18:37:18]line Чек 91 18.06.2024 18:37 [18:37:18]line Смена: 323 ФФД: 1.0 [18:37:18]line ЗНМ: 0300000172 [18:37:18]line РНМ: 0000000000092786 [18:37:18]line Версия ККМ: 001 [18:37:18]line ФМ: 0000000000875095 [18:37:18]line ФД: 34269 [18:37:18]line ФПД: 263054030906051 [18:37:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183718&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34269&fm=263054030906051&tin=02508201610067®Number=0000000000092786&sum=30000 [18:37:18]line 0 [18:37:18]OFD Sender: Processing packet 34269 [packets to send 8, broken 7] [18:37:18]ProducePacketName [18:37:18]name=ofd_packets/00034269 [18:37:18]OFD Sender: To server: pG, [18:37:18]CommunicateWithHost lk.salyk.kg:30040 [18:37:18]ConnectInit lk.salyk.kg [18:37:18]written 0, free lines is 4095 [18:37:19]Connected sock=10 [18:37:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1E 01 00 00 26 79 16 01 4F 2F 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DE D3 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DD 85 00 00 35 04 06 00 EF 3F 0A 11 A2 C3 25 7A 48 67 A7 75 2A 4C [18:37:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 3F 59 47 00 54 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DD 85 00 00 F4 03 04 00 AD 7A 71 66 B6 04 01 00 00 98 AC E2 80 AB 43 ED FB [18:37:19]CommunicateWithHost err = 0 [18:37:19]CheckOFDResponse [18:37:19]1017 (14) - 77093643461234 [18:37:19]1041 (16) - 0000000000875095 [18:37:19]1040 (4) - 34269 [18:37:19]1012 (4) - 18.06.2024 12:16 [18:37:19]1206 (1) - 0 [18:37:19]OFD Sender: Remove packet 34269 [18:37:19]ProducePacketName [18:37:19]name=ofd_packets/00034269 [18:37:19]NVStorageDeleteData [18:37:19]Write to MH i2c: 01 00 00 41 0C 4D [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: 01 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: 01 07 00 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 09 0D 6A [18:37:19]RasterBufferAndPrint [18:37:19]line [18:37:19]line [18:37:19]line [18:37:19]line [18:37:19]line [18:37:19]written 0, free lines is 3344 [18:37:19]MH_Cut [18:37:19]Write to MH i2c: D1 01 00 48 0C 01 26 [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: D1 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: D1 01 00 [18:37:19]MH_I2C_Read... [18:37:19]Read from MH i2c: D1 01 00 48 0C 00 25 [18:37:19]Write to MH i2c: 01 00 00 49 0C 55 [18:37:19]Write i2c OK [18:37:19]MH_I2C_Read... [18:37:19]OFD Sender: No OFD packet to send [18:37:20]*** Cut start [18:37:20]*** Partial cut [18:37:20]*** CUTSNS_PIN = 1 [18:37:20]*** CUTSNS_PIN = 0 [18:37:20]*** Brake cut motor [18:37:20]Read from MH i2c: 01 [18:37:20]MH_I2C_Read... [18:37:20]*** Stop cut motor [18:37:20]*** Cut end [18:37:20]Read from MH i2c: 01 07 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [18:37:20]process_action close_receipt done [18:37:20]requested_data is exist [18:37:20]produce_requested_data [18:37:20]requested_item fm.sn is exist - process it [18:37:20]wFMCommunicate request_size=4 [18:37:20]MH_SAM_APDU [18:37:20]CAPDU: 80 11 00 00 [18:37:20]Write to MH i2c: E2 08 00 4A 0C 80 11 00 00 00 00 00 00 D0 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 17 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 17 00 4A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 25 [18:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:37:20]wFMCommunicate OK [18:37:20]requested_item fd.num is exist - process it [18:37:20]SAM_PROTO_GetFieldsCounters [18:37:20]wFMCommunicate request_size=4 [18:37:20]MH_SAM_APDU [18:37:20]CAPDU: 80 13 00 00 [18:37:20]Write to MH i2c: E2 08 00 4B 0C 80 13 00 00 00 00 00 00 D3 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 62 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 62 00 4B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DD 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:37:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DD 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:20]wFMCommunicate OK [18:37:20]SAM_PROTO_GetFieldsCounters done [18:37:20]requested_item shift.num is exist - process it [18:37:20]requested_item shift.opened is exist - process it [18:37:20]req_shift_opened [18:37:20]FM_GetShiftState [18:37:20]SAM_PROTO_GetShiftState [18:37:20]wFMCommunicate request_size=4 [18:37:20]MH_SAM_APDU [18:37:20]CAPDU: 80 13 01 00 [18:37:20]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [18:37:20]Write i2c OK [18:37:20]MH_I2C_Read... [18:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:20]Read from MH i2c: E2 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 0E 00 [18:37:20]MH_I2C_Read... [18:37:20]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 20 [18:37:20]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:37:20]wFMCommunicate OK [18:37:20]SAM_PROTO_GetShiftState done [18:37:20]FM_GetShiftState done [18:37:20]req_shift_opened done [18:37:20]requested_item shift.open_date is exist - process it [18:37:20]req_shift_open_date [18:37:20]req_shift_open_date done [18:37:20]produce_requested_data done [18:37:20]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34269,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:37:20]process_action_free close_receipt [18:37:20]json_value_free [18:37:20]json_value_free done [18:37:20]process_json_proto returns [18:37:20]Send response to host [18:37:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34269,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:37:20]free response buf [18:37:20]execute_script done [18:37:20]execute_script returns [18:37:20]free content buf [18:37:20]Sock 9.Close socket [18:37:20]Sock 9.Thread stoped [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]accept exits with 7 [18:38:44]New connection [18:38:44]New thread 3067567460 created [18:38:44]Thread 3067424100 joined [18:38:44]Waiting for new connection... [18:38:44] Sock 7.Parse request [18:38:44]Sock 7.Check first char [18:38:44]Sock 7.First char is OK [18:38:44]request: POST /json_proto HTTP/1.0 [18:38:44]Method: POST [18:38:44]URL: /json_proto [18:38:44]Method is POST - this is cgi request [18:38:44]url: /json_proto [18:38:44]query_string will be loaded in cgi processing [18:38:44]execute_cgi json_proto POST (null) [18:38:44]execute_cgi path=json_proto method=POST [18:38:44]POST find Content-Length [18:38:44]Host: 172.17.38.134:8080 [18:38:44]Content-Length: 682 [18:38:44]Content-Type: application/json [18:38:44] [18:38:44]POST finish read [18:38:44]Found Content-Length = 682 [18:38:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 35.280, "sum" : 2607.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2607.00, "payments": [ { "type": 0, "sum" : 2607.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:44]execute_script... [18:38:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 35.280, "sum" : 2607.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2607.00, "payments": [ { "type": 0, "sum" : 2607.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:44]POST & json_proto [18:38:44]process_json_proto [18:38:44]json parsed OK: [18:38:44]protocol is kg_v1.0 [18:38:44]action value=close_receipt [18:38:44]process_action close_receipt [18:38:44]cmd_close_receipt [18:38:44]MH_GetDate [18:38:44]Write to MH i2c: F0 00 00 4D 0C 48 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: F0 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: F0 09 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: F0 09 00 4D 0C 00 35 D4 71 66 13 9C 7C 64 C0 [18:38:44]GetLastDocTimeStamp 1718735838 [18:38:44]current date 1718735925 [18:38:44]FM_GetShiftState [18:38:44]SAM_PROTO_GetShiftState [18:38:44]wFMCommunicate request_size=4 [18:38:44]MH_SAM_APDU [18:38:44]CAPDU: 80 13 01 00 [18:38:44]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [18:38:44]Write i2c OK [18:38:44]MH_I2C_Read... [18:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:44]Read from MH i2c: E2 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 0E 00 [18:38:44]MH_I2C_Read... [18:38:44]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 22 [18:38:44]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:38:44]wFMCommunicate OK [18:38:44]SAM_PROTO_GetShiftState done [18:38:44]FM_GetShiftState done [18:38:44]opened in 1718670230 [18:38:44]opened+sec_in_day 1718756630 [18:38:44]quantity*price = 260719 [18:38:44]sum+1 = 260720 [18:38:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 2607.00 Внесено: 3000.00 СДАЧА: 393.00 НСП 1% : 23.07 НДС 12% : 276.87 Наличными: 2607.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 92 18.06.2024 18:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34270 ФПД: 173358983788736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34270&fm=173358983788736&tin=02508201610067®Number=0000000000092786&sum=260700 [18:38:45]StoreToDocumentArchive [18:38:45]shift 323 fd 34270 [18:38:45]save to /storage/0323/doc_00034270 [18:38:45]save last doc name /storage/0323/doc_00034270 to /storage/kkm_last_doc_name [18:38:45]save OK [18:38:45]Clear old archive folders... [18:38:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:45]tlvbuf is 018E6000 [18:38:45]SAM_PROTO_ClearQueue [18:38:45]wFMCommunicate request_size=4 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 09 00 00 [18:38:45]Write to MH i2c: E2 08 00 5B 0C 80 09 00 00 00 00 00 00 D9 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:45]Read from MH i2c: E2 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 03 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [18:38:45]RAPDU: 90 00 [18:38:45]wFMCommunicate OK [18:38:45]SAM_PROTO_ClearQueue done [18:38:45]KKMCreateOFDPacket [18:38:45]OFDProtocolAddRootSTLVToBuf [18:38:45]FM_MakeSignedData [18:38:45]FM_MakeSignedData [18:38:45]SAM_PROTO_SignData [18:38:45]wFMCommunicate request_size=4 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 0D 01 02 [18:38:45]Write to MH i2c: E2 08 00 5C 0C 80 0D 01 02 00 00 00 00 E1 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:45]Read from MH i2c: E2 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 03 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [18:38:45]RAPDU: 90 00 [18:38:45]wFMCommunicate OK [18:38:45]wFMCommunicate request_size=255 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D0 89 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F FA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C FA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 6C 00 00 00 00 07 04 06 00 5C FA 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 35 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DE 85 00 00 35 04 06 00 9D [18:38:45]Write to MH i2c: E2 02 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D0 89 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F FA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C FA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 6C 00 00 00 00 07 04 06 00 5C FA 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 35 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DE 85 00 00 35 04 06 00 9D 00 00 88 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [18:38:46]RAPDU: 90 00 [18:38:46]wFMCommunicate OK [18:38:46]wFMCommunicate request_size=10 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 0D 02 02 05 AB 48 A5 B8 C0 [18:38:46]Write to MH i2c: E2 0D 00 5E 0C 80 0D 02 02 05 00 AB 48 A5 B8 C0 00 00 FE [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [18:38:46]RAPDU: 90 00 [18:38:46]wFMCommunicate OK [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 0D 03 02 [18:38:46]Write to MH i2c: E2 08 00 5F 0C 80 0D 03 02 00 00 00 00 E6 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0B 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0B 00 5F 0C 00 44 39 D4 D6 D2 DE 04 66 90 00 28 [18:38:46]RAPDU: 44 39 D4 D6 D2 DE 04 66 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_SignData done [18:38:46]FM_MakeSignedData done [18:38:46]CreateOFDProtocolMessage [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 11 00 00 [18:38:46]Write to MH i2c: E2 08 00 60 0C 80 11 00 00 00 00 00 00 E6 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 17 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 17 00 60 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3B [18:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:38:46]wFMCommunicate OK [18:38:46]CreateOFDProtocolMessage done [18:38:46]OFDSenderStorePacket 34270 [18:38:46]StoreOFDPacket docnum=34270 [18:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 32 80 07 01 01 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D0 89 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F FA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C FA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 6C 00 00 00 00 07 04 06 00 5C FA 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 35 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DE 85 00 00 35 04 06 00 9D AB 48 A5 B8 C0 44 39 D4 D6 D2 DE 04 66 [18:38:46]CheckFolder [18:38:46]dirname=/storage/ofd_packets [18:38:46]CheckFolder done [18:38:46]ProducePacketName [18:38:46]name=ofd_packets/00034270 [18:38:46]NVStorageSaveData ofd_packets/00034270 [18:38:46]File name is /storage/ofd_packets/00034270 [18:38:46]Write 301 bytes [18:38:46]NVStorageSaveData done [18:38:46]OFDSenderStorePacket done [18:38:46]KKMCreateOFDPacket done [18:38:46]NVStorageSaveData kkm_last_timestamp [18:38:46]File name is /storage/kkm_last_timestamp [18:38:46]Write 4 bytes [18:38:46]NVStorageSaveData done [18:38:46]ExternCall_PrintAddStr [18:38:46]wPrintStart [18:38:46]Write to MH i2c: 01 00 00 61 0C 6D [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 07 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 FF 0F 82 [18:38:46]RasterBufferAndPrint [18:38:46]line Счет N : (1)672710 [18:38:46]line ИНН: 02508201610067 [18:38:46]line Контрольно-Кассовый Чек [18:38:46]line ПРОДАЖА [18:38:46]line ТРК (МРК, ГНК) : 41 [18:38:46]line Товар: 2710124500 [18:38:46]line Аи-95-К-5 [18:38:46]line 35.280 * 73.90 [18:38:46]line = 2607.19 [18:38:46]line НДС 12% НСП 1% [18:38:46]line > о реализуемом товаре [18:38:46]line ОКРУГЛЕНИЕ: -0.19 [18:38:46]line ИТОГО: 2607.00 [18:38:46]line Внесено: 3000.00 [18:38:46]line СДАЧА: 393.00 [18:38:46]line НСП 1% : 23.07 [18:38:46]line НДС 12% : 276.87 [18:38:46]line Наличными: 2607.00 [18:38:46]line Безнал.: 0.00 [18:38:46]line Место: АЗС № 120 "Партнер Нефть" [18:38:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:38:46]line СНО: Общий режим [18:38:46]line Чек 92 18.06.2024 18:38 [18:38:46]line Смена: 323 ФФД: 1.0 [18:38:46]line ЗНМ: 0300000172 [18:38:46]line РНМ: 0000000000092786 [18:38:46]line Версия ККМ: 001 [18:38:46]line ФМ: 0000000000875095 [18:38:46]line ФД: 34270 [18:38:46]line ФПД: 173358983788736 [18:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T183845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34270&fm=173358983788736&tin=02508201610067®Number=0000000000092786&sum=260700 [18:38:46]OFD Sender: Processing packet 34270 [packets to send 8, broken 7] [18:38:46]ProducePacketName [18:38:46]name=ofd_packets/00034270 [18:38:46]OFD Sender: To server: pG, [18:38:46]CommunicateWithHost lk.salyk.kg:30040 [18:38:46]ConnectInit lk.salyk.kg [18:38:46]written 0, free lines is 4095 [18:38:46]Connected sock=11 [18:38:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 32 80 07 01 01 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D0 89 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F FA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C FA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 6C 00 00 00 00 07 04 06 00 5C FA 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 35 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DE 85 00 00 35 04 06 00 9D AB 48 A5 B8 C0 44 39 D4 D6 D2 DE 04 66 [18:38:46]Write to MH i2c: 01 00 00 8C 0C 98 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 07 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 F5 0C A0 [18:38:46]RasterBufferAndPrint [18:38:46]line [18:38:46]line [18:38:46]line [18:38:46]line [18:38:46]line [18:38:46]written 0, free lines is 3324 [18:38:46]MH_Cut [18:38:46]Write to MH i2c: D1 01 00 93 0C 01 71 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: D1 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: D1 01 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: D1 01 00 93 0C 00 70 [18:38:46]Write to MH i2c: 01 00 00 94 0C A0 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 5F A9 47 00 35 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DE 85 00 00 F4 03 04 00 05 7B 71 66 B6 04 01 00 00 22 1C E9 7F 68 AB 57 AB [18:38:47]CommunicateWithHost err = 0 [18:38:47]CheckOFDResponse [18:38:47]1017 (14) - 77093643461234 [18:38:47]1041 (16) - 0000000000875095 [18:38:47]1040 (4) - 34270 [18:38:47]1012 (4) - 18.06.2024 12:18 [18:38:47]1206 (1) - 0 [18:38:47]OFD Sender: Remove packet 34270 [18:38:47]ProducePacketName [18:38:47]name=ofd_packets/00034270 [18:38:47]NVStorageDeleteData [18:38:47]OFD Sender: No OFD packet to send [18:38:47]*** Cut start [18:38:47]*** Partial cut [18:38:47]*** CUTSNS_PIN = 1 [18:38:47]*** CUTSNS_PIN = 0 [18:38:47]*** Brake cut motor [18:38:48]Read from MH i2c: 01 [18:38:48]MH_I2C_Read... [18:38:48]*** Stop cut motor [18:38:48]*** Cut end [18:38:48]Read from MH i2c: 01 07 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 FF 0F B5 [18:38:48]process_action close_receipt done [18:38:48]requested_data is exist [18:38:48]produce_requested_data [18:38:48]requested_item fm.sn is exist - process it [18:38:48]wFMCommunicate request_size=4 [18:38:48]MH_SAM_APDU [18:38:48]CAPDU: 80 11 00 00 [18:38:48]Write to MH i2c: E2 08 00 95 0C 80 11 00 00 00 00 00 00 1B [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:48]Read from MH i2c: E2 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 17 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 17 00 95 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 70 [18:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:38:48]wFMCommunicate OK [18:38:48]requested_item fd.num is exist - process it [18:38:48]SAM_PROTO_GetFieldsCounters [18:38:48]wFMCommunicate request_size=4 [18:38:48]MH_SAM_APDU [18:38:48]CAPDU: 80 13 00 00 [18:38:48]Write to MH i2c: E2 08 00 96 0C 80 13 00 00 00 00 00 00 1E [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:48]Read from MH i2c: E2 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 62 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 62 00 96 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DE 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [18:38:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DE 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:48]wFMCommunicate OK [18:38:48]SAM_PROTO_GetFieldsCounters done [18:38:48]requested_item shift.num is exist - process it [18:38:48]requested_item shift.opened is exist - process it [18:38:48]req_shift_opened [18:38:48]FM_GetShiftState [18:38:48]SAM_PROTO_GetShiftState [18:38:48]wFMCommunicate request_size=4 [18:38:48]MH_SAM_APDU [18:38:48]CAPDU: 80 13 01 00 [18:38:48]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [18:38:48]Write i2c OK [18:38:48]MH_I2C_Read... [18:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:48]Read from MH i2c: E2 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 0E 00 [18:38:48]MH_I2C_Read... [18:38:48]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6B [18:38:48]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:38:48]wFMCommunicate OK [18:38:48]SAM_PROTO_GetShiftState done [18:38:48]FM_GetShiftState done [18:38:48]req_shift_opened done [18:38:48]requested_item shift.open_date is exist - process it [18:38:48]req_shift_open_date [18:38:48]req_shift_open_date done [18:38:48]produce_requested_data done [18:38:48]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34270,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:38:48]process_action_free close_receipt [18:38:48]json_value_free [18:38:48]json_value_free done [18:38:48]process_json_proto returns [18:38:48]Send response to host [18:38:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34270,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:38:48]free response buf [18:38:48]execute_script done [18:38:48]execute_script returns [18:38:48]free content buf [18:38:48]Sock 7.Close socket [18:38:48]Sock 7.Thread stoped [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:50]accept exits with 9 [18:40:50]New connection [18:40:50]New thread 3067424100 created [18:40:50]Thread 3067567460 joined [18:40:50]Waiting for new connection... [18:40:50] Sock 9.Parse request [18:40:50]Sock 9.Check first char [18:40:50]Sock 9.First char is OK [18:40:50]request: POST /json_proto HTTP/1.0 [18:40:50]Method: POST [18:40:50]URL: /json_proto [18:40:50]Method is POST - this is cgi request [18:40:50]url: /json_proto [18:40:50]query_string will be loaded in cgi processing [18:40:50]execute_cgi json_proto POST (null) [18:40:50]execute_cgi path=json_proto method=POST [18:40:50]POST find Content-Length [18:40:50]Host: 172.17.38.134:8080 [18:40:50]Content-Length: 807 [18:40:50]Content-Type: application/json [18:40:50] [18:40:50]POST finish read [18:40:50]Found Content-Length = 807 [18:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184052", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:50]execute_script... [18:40:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184052", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:50]POST & json_proto [18:40:50]process_json_proto [18:40:50]json parsed OK: [18:40:50]protocol is kg_v1.0 [18:40:50]action value=close_receipt [18:40:50]process_action close_receipt [18:40:50]cmd_close_receipt [18:40:50]MH_GetDate [18:40:50]Write to MH i2c: F0 00 00 98 0C 93 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: F0 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: F0 09 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: F0 09 00 98 0C 00 B4 D4 71 66 13 9C 7C 64 8A [18:40:50]GetLastDocTimeStamp 1718735925 [18:40:50]current date 1718736052 [18:40:50]FM_GetShiftState [18:40:50]SAM_PROTO_GetShiftState [18:40:50]wFMCommunicate request_size=4 [18:40:50]MH_SAM_APDU [18:40:50]CAPDU: 80 13 01 00 [18:40:50]Write to MH i2c: E2 08 00 99 0C 80 13 01 00 00 00 00 00 22 [18:40:50]Write i2c OK [18:40:50]MH_I2C_Read... [18:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:50]Read from MH i2c: E2 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 0E 00 [18:40:50]MH_I2C_Read... [18:40:50]Read from MH i2c: E2 0E 00 99 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6D [18:40:50]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:40:50]wFMCommunicate OK [18:40:50]SAM_PROTO_GetShiftState done [18:40:50]FM_GetShiftState done [18:40:50]opened in 1718670230 [18:40:50]opened+sec_in_day 1718756630 [18:40:50]quantity*price = 12500 [18:40:50]sum+1 = 12501 [18:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 93 18.06.2024 18:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34271 ФПД: 176686216605714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T184052&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34271&fm=176686216605714&tin=02508201610067®Number=0000000000092786&sum=12500 0 [18:40:52]StoreToDocumentArchive [18:40:52]shift 323 fd 34271 [18:40:52]save to /storage/0323/doc_00034271 [18:40:52]save last doc name /storage/0323/doc_00034271 to /storage/kkm_last_doc_name [18:40:52]save OK [18:40:52]Clear old archive folders... [18:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:40:52]tlvbuf is 01931090 [18:40:52]SAM_PROTO_ClearQueue [18:40:52]wFMCommunicate request_size=4 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 09 00 00 [18:40:52]Write to MH i2c: E2 08 00 A6 0C 80 09 00 00 00 00 00 00 24 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]SAM_PROTO_ClearQueue done [18:40:52]KKMCreateOFDPacket [18:40:52]OFDProtocolAddRootSTLVToBuf [18:40:52]FM_MakeSignedData [18:40:52]FM_MakeSignedData [18:40:52]SAM_PROTO_SignData [18:40:52]wFMCommunicate request_size=4 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 01 02 [18:40:52]Write to MH i2c: E2 08 00 A7 0C 80 0D 01 02 00 00 00 00 2C [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]wFMCommunicate request_size=255 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B4 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [18:40:52]Write to MH i2c: E2 02 01 A8 0C 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B4 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 31 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]wFMCommunicate request_size=41 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DF 85 00 00 35 04 06 00 A0 B1 F7 2D 70 12 [18:40:52]Write to MH i2c: E2 2C 00 A9 0C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DF 85 00 00 35 04 06 00 A0 B1 F7 2D 70 12 00 00 5B [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]wFMCommunicate request_size=4 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 03 02 [18:40:52]Write to MH i2c: E2 08 00 AA 0C 80 0D 03 02 00 00 00 00 31 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 0B 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 0B 00 AA 0C 00 38 6D CB 07 A8 82 D6 56 90 00 FF [18:40:52]RAPDU: 38 6D CB 07 A8 82 D6 56 90 00 [18:40:52]wFMCommunicate OK [18:40:52]SAM_PROTO_SignData done [18:40:52]FM_MakeSignedData done [18:40:52]CreateOFDProtocolMessage [18:40:52]wFMCommunicate request_size=4 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 11 00 00 [18:40:52]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 17 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 86 [18:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:40:52]wFMCommunicate OK [18:40:52]CreateOFDProtocolMessage done [18:40:52]OFDSenderStorePacket 34271 [18:40:52]StoreOFDPacket docnum=34271 [18:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 E7 B8 26 01 BE 79 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B4 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DF 85 00 00 35 04 06 00 A0 B1 F7 2D 70 12 38 6D CB 07 A8 82 D6 56 [18:40:52]CheckFolder [18:40:52]dirname=/storage/ofd_packets [18:40:52]CheckFolder done [18:40:52]ProducePacketName [18:40:52]name=ofd_packets/00034271 [18:40:52]NVStorageSaveData ofd_packets/00034271 [18:40:52]File name is /storage/ofd_packets/00034271 [18:40:52]Write 332 bytes [18:40:52]NVStorageSaveData done [18:40:52]OFDSenderStorePacket done [18:40:52]KKMCreateOFDPacket done [18:40:52]NVStorageSaveData kkm_last_timestamp [18:40:52]File name is /storage/kkm_last_timestamp [18:40:52]Write 4 bytes [18:40:52]NVStorageSaveData done [18:40:52]ExternCall_PrintAddStr [18:40:52]wPrintStart [18:40:52]Write to MH i2c: 01 00 00 AC 0C B8 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: 01 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: 01 07 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 FF 0F CD [18:40:52]RasterBufferAndPrint [18:40:52]line Счет N : (3)184052 [18:40:52]line ИНН: 02508201610067 [18:40:52]line Контрольно-Кассовый Чек [18:40:52]line ПРОДАЖА [18:40:52]line Товар: 2000036220012 [18:40:52]line Кофе Капучино XL(GABB TRADE) [18:40:52]line 1.000 * 125.00 [18:40:52]line = 125.00 [18:40:52]line НДС 12% НСП 1% [18:40:52]line > о реализуемом товаре [18:40:52]line ИТОГО: 125.00 [18:40:52]line НСП 1% : 1.11 [18:40:52]line НДС 12% : 13.27 [18:40:52]line Наличными: 0.00 [18:40:52]line Безнал.: 125.00 [18:40:52]line Место: АЗС № 120 "Партнер Нефть" [18:40:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:40:52]line СНО: Общий режим [18:40:52]line Чек 93 18.06.2024 18:40 [18:40:52]line Смена: 323 ФФД: 1.0 [18:40:52]line ЗНМ: 0300000172 [18:40:52]line РНМ: 0000000000092786 [18:40:52]line Версия ККМ: 001 [18:40:52]line Платежная система: O! деньги [18:40:52]line ФМ: 0000000000875095 [18:40:52]line ФД: 34271 [18:40:52]line ФПД: 176686216605714 [18:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T184052&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34271&fm=176686216605714&tin=02508201610067®Number=0000000000092786&sum=12500 [18:40:52]line 0 [18:40:52]OFD Sender: Processing packet 34271 [packets to send 8, broken 7] [18:40:52]ProducePacketName [18:40:52]name=ofd_packets/00034271 [18:40:52]OFD Sender: To server: pG, [18:40:52]CommunicateWithHost lk.salyk.kg:30040 [18:40:52]ConnectInit lk.salyk.kg [18:40:52]written 0, free lines is 4095 [18:40:53]Connected sock=10 [18: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 35 30 39 35 2E 01 00 00 E7 B8 26 01 BE 79 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B4 D4 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DF 85 00 00 35 04 06 00 A0 B1 F7 2D 70 12 38 6D CB 07 A8 82 D6 56 [18:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A1 D0 47 00 9E C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 DF 85 00 00 F4 03 04 00 83 7B 71 66 B6 04 01 00 00 9F 2E E8 74 F1 8A D5 F9 [18:40:53]CommunicateWithHost err = 0 [18:40:53]CheckOFDResponse [18:40:53]1017 (14) - 77093643461234 [18:40:53]1041 (16) - 0000000000875095 [18:40:53]1040 (4) - 34271 [18:40:53]1012 (4) - 18.06.2024 12:20 [18:40:53]1206 (1) - 0 [18:40:53]OFD Sender: Remove packet 34271 [18:40:53]ProducePacketName [18:40:53]name=ofd_packets/00034271 [18:40:53]NVStorageDeleteData [18:40:53]Write to MH i2c: 01 00 00 D7 0C E3 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 DA 0C D0 [18:40:53]RasterBufferAndPrint [18:40:53]line [18:40:53]line [18:40:53]line [18:40:53]line [18:40:53]line [18:40:53]written 0, free lines is 3297 [18:40:53]MH_Cut [18:40:53]Write to MH i2c: D1 01 00 DE 0C 01 BC [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: D1 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: D1 01 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: D1 01 00 DE 0C 00 BB [18:40:53]Write to MH i2c: 01 00 00 DF 0C EB [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]OFD Sender: No OFD packet to send [18:40:54]*** Cut start [18:40:54]*** Partial cut [18:40:54]*** CUTSNS_PIN = 1 [18:40:54]*** CUTSNS_PIN = 0 [18:40:54]*** Brake cut motor [18:40:54]Read from MH i2c: 01 [18:40:54]MH_I2C_Read... [18:40:54]*** Stop cut motor [18:40:54]*** Cut end [18:40:54]Read from MH i2c: 01 07 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: 01 07 00 DF 0C 00 00 00 00 00 FF 0F 00 [18:40:54]process_action close_receipt done [18:40:54]requested_data is exist [18:40:54]produce_requested_data [18:40:54]requested_item fm.sn is exist - process it [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 11 00 00 [18:40:54]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 17 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 BB [18:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:40:54]wFMCommunicate OK [18:40:54]requested_item fd.num is exist - process it [18:40:54]SAM_PROTO_GetFieldsCounters [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 13 00 00 [18:40:54]Write to MH i2c: E2 08 00 E1 0C 80 13 00 00 00 00 00 00 69 [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 62 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 62 00 E1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [18:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 DF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:54]wFMCommunicate OK [18:40:54]SAM_PROTO_GetFieldsCounters done [18:40:54]requested_item shift.num is exist - process it [18:40:54]requested_item shift.opened is exist - process it [18:40:54]req_shift_opened [18:40:54]FM_GetShiftState [18:40:54]SAM_PROTO_GetShiftState [18:40:54]wFMCommunicate request_size=4 [18:40:54]MH_SAM_APDU [18:40:54]CAPDU: 80 13 01 00 [18:40:54]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [18:40:54]Write i2c OK [18:40:54]MH_I2C_Read... [18:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:54]Read from MH i2c: E2 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 0E 00 [18:40:54]MH_I2C_Read... [18:40:54]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B6 [18:40:54]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:40:54]wFMCommunicate OK [18:40:54]SAM_PROTO_GetShiftState done [18:40:54]FM_GetShiftState done [18:40:54]req_shift_opened done [18:40:54]requested_item shift.open_date is exist - process it [18:40:54]req_shift_open_date [18:40:54]req_shift_open_date done [18:40:54]produce_requested_data done [18:40:54]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34271,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:40:54]process_action_free close_receipt [18:40:54]json_value_free [18:40:55]json_value_free done [18:40:55]process_json_proto returns [18:40:55]Send response to host [18:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34271,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:40:55]free response buf [18:40:55]execute_script done [18:40:55]execute_script returns [18:40:55]free content buf [18:40:55]Sock 9.Close socket [18:40:55]Sock 9.Thread stoped [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:50]accept exits with 7 [18:53:50]New connection [18:53:50]New thread 3067567460 created [18:53:50]Thread 3067424100 joined [18:53:50]Waiting for new connection... [18:53:50] Sock 7.Parse request [18:53:50]Sock 7.Check first char [18:53:50]Sock 7.First char is OK [18:53:50]request: POST /json_proto HTTP/1.0 [18:53:50]Method: POST [18:53:50]URL: /json_proto [18:53:50]Method is POST - this is cgi request [18:53:50]url: /json_proto [18:53:50]query_string will be loaded in cgi processing [18:53:50]execute_cgi json_proto POST (null) [18:53:50]execute_cgi path=json_proto method=POST [18:53:50]POST find Content-Length [18:53:50]Host: 172.17.38.134:8080 [18:53:50]Content-Length: 658 [18:53:50]Content-Type: application/json [18:53:50] [18:53:50]POST finish read [18:53:50]Found Content-Length = 658 [18:53:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184053", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:50]execute_script... [18:53:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184053", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 226.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:50]POST & json_proto [18:53:50]process_json_proto [18:53:50]json parsed OK: [18:53:50]protocol is kg_v1.0 [18:53:50]action value=close_receipt [18:53:50]process_action close_receipt [18:53:50]cmd_close_receipt [18:53:50]MH_GetDate [18:53:50]Write to MH i2c: F0 00 00 E3 0C DE [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: F0 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: F0 09 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: F0 09 00 E3 0C 00 C0 D7 71 66 13 9C 7C 64 E4 [18:53:50]GetLastDocTimeStamp 1718736052 [18:53:50]current date 1718736832 [18:53:50]FM_GetShiftState [18:53:50]SAM_PROTO_GetShiftState [18:53:50]wFMCommunicate request_size=4 [18:53:50]MH_SAM_APDU [18:53:50]CAPDU: 80 13 01 00 [18:53:50]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:51]Read from MH i2c: E2 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 0E 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B8 [18:53:51]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:53:51]wFMCommunicate OK [18:53:51]SAM_PROTO_GetShiftState done [18:53:51]FM_GetShiftState done [18:53:51]opened in 1718670230 [18:53:51]opened+sec_in_day 1718756630 [18:53:51]quantity*price = 22600 [18:53:51]sum+1 = 22601 [18:53:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 226.00 НСП 1% : 2.00 НДС 12% : 24.00 Наличными: 226.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 94 18.06.2024 18:53 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34272 ФПД: 79323074087191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T185352&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34272&fm=79323074087191&tin=02508201610067®Number=0000000000092786&sum=22600 0 [18:53:52]StoreToDocumentArchive [18:53:52]shift 323 fd 34272 [18:53:52]save to /storage/0323/doc_00034272 [18:53:52]save last doc name /storage/0323/doc_00034272 to /storage/kkm_last_doc_name [18:53:52]save OK [18:53:52]Clear old archive folders... [18:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:53:52]tlvbuf is 01935B20 [18:53:52]SAM_PROTO_ClearQueue [18:53:52]wFMCommunicate request_size=4 [18:53:52]MH_SAM_APDU [18:53:52]CAPDU: 80 09 00 00 [18:53:52]Write to MH i2c: E2 08 00 F1 0C 80 09 00 00 00 00 00 00 6F [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [18:53:52]RAPDU: 90 00 [18:53:52]wFMCommunicate OK [18:53:52]SAM_PROTO_ClearQueue done [18:53:52]KKMCreateOFDPacket [18:53:52]OFDProtocolAddRootSTLVToBuf [18:53:52]FM_MakeSignedData [18:53:52]FM_MakeSignedData [18:53:52]SAM_PROTO_SignData [18:53:52]wFMCommunicate request_size=4 [18:53:52]MH_SAM_APDU [18:53:52]CAPDU: 80 0D 01 02 [18:53:52]Write to MH i2c: E2 08 00 F2 0C 80 0D 01 02 00 00 00 00 77 [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [18:53:52]RAPDU: 90 00 [18:53:52]wFMCommunicate OK [18:53:52]wFMCommunicate request_size=255 [18:53:52]MH_SAM_APDU [18:53:52]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C0 D7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 [18:53:52]Write to MH i2c: E2 02 01 F3 0C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C0 D7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 00 00 D4 [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [18:53:52]RAPDU: 90 00 [18:53:52]wFMCommunicate OK [18:53:52]wFMCommunicate request_size=37 [18:53:52]MH_SAM_APDU [18:53:52]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E0 85 00 00 35 04 06 00 48 24 D7 A7 49 17 [18:53:52]Write to MH i2c: E2 28 00 F4 0C 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E0 85 00 00 35 04 06 00 48 24 D7 A7 49 17 00 00 82 [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [18:53:52]RAPDU: 90 00 [18:53:52]wFMCommunicate OK [18:53:52]wFMCommunicate request_size=4 [18:53:52]MH_SAM_APDU [18:53:52]CAPDU: 80 0D 03 02 [18:53:52]Write to MH i2c: E2 08 00 F5 0C 80 0D 03 02 00 00 00 00 7C [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 0B 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 0B 00 F5 0C 00 71 A6 F7 AD DE 10 93 81 90 00 3A [18:53:52]RAPDU: 71 A6 F7 AD DE 10 93 81 90 00 [18:53:52]wFMCommunicate OK [18:53:52]SAM_PROTO_SignData done [18:53:52]FM_MakeSignedData done [18:53:52]CreateOFDProtocolMessage [18:53:52]wFMCommunicate request_size=4 [18:53:52]MH_SAM_APDU [18:53:52]CAPDU: 80 11 00 00 [18:53:52]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:52]Read from MH i2c: E2 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 17 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D1 [18:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:53:52]wFMCommunicate OK [18:53:52]CreateOFDProtocolMessage done [18:53:52]OFDSenderStorePacket 34272 [18:53:52]StoreOFDPacket docnum=34272 [18:53:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 6A 20 22 01 6E A1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C0 D7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E0 85 00 00 35 04 06 00 48 24 D7 A7 49 17 71 A6 F7 AD DE 10 93 81 [18:53:52]CheckFolder [18:53:52]dirname=/storage/ofd_packets [18:53:52]CheckFolder done [18:53:52]ProducePacketName [18:53:52]name=ofd_packets/00034272 [18:53:52]NVStorageSaveData ofd_packets/00034272 [18:53:52]File name is /storage/ofd_packets/00034272 [18:53:52]Write 328 bytes [18:53:52]NVStorageSaveData done [18:53:52]OFDSenderStorePacket done [18:53:52]KKMCreateOFDPacket done [18:53:52]NVStorageSaveData kkm_last_timestamp [18:53:52]File name is /storage/kkm_last_timestamp [18:53:52]Write 4 bytes [18:53:52]NVStorageSaveData done [18:53:52]ExternCall_PrintAddStr [18:53:52]wPrintStart [18:53:52]Write to MH i2c: 01 00 00 F7 0C 03 [18:53:52]Write i2c OK [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: 01 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: 01 07 00 [18:53:52]MH_I2C_Read... [18:53:52]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [18:53:52]RasterBufferAndPrint [18:53:52]line Счет N : (3)184053 [18:53:52]line ИНН: 02508201610067 [18:53:52]line Контрольно-Кассовый Чек [18:53:52]line ПРОДАЖА [18:53:52]line Товар: 5449000054227 [18:53:52]line Напиток Кока-Кола 1л [18:53:52]line 2.000 * 113.00 [18:53:52]line = 226.00 [18:53:52]line НДС 12% НСП 1% [18:53:52]line > о реализуемом товаре [18:53:52]line ИТОГО: 226.00 [18:53:52]line НСП 1% : 2.00 [18:53:52]line НДС 12% : 24.00 [18:53:52]line Наличными: 226.00 [18:53:52]line Безнал.: 0.00 [18:53:52]line Место: АЗС № 120 "Партнер Нефть" [18:53:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:53:52]line СНО: Общий режим [18:53:52]line Чек 94 18.06.2024 18:53 [18:53:52]line Смена: 323 ФФД: 1.0 [18:53:52]line ЗНМ: 0300000172 [18:53:52]line РНМ: 0000000000092786 [18:53:52]line Версия ККМ: 001 [18:53:52]line ФМ: 0000000000875095 [18:53:52]line ФД: 34272 [18:53:52]line ФПД: 79323074087191 [18:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T185352&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34272&fm=79323074087191&tin=02508201610067®Number=0000000000092786&sum=22600 [18:53:52]line 0 [18:53:52]OFD Sender: Processing packet 34272 [packets to send 8, broken 7] [18:53:52]ProducePacketName [18:53:52]name=ofd_packets/00034272 [18:53:52]OFD Sender: To server: pG, [18:53:52]CommunicateWithHost lk.salyk.kg:30040 [18:53:52]ConnectInit lk.salyk.kg [18:53:52]written 0, free lines is 4095 [18:53:53]Connected sock=10 [18:53:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2A 01 00 00 6A 20 22 01 6E A1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 58 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 09 00 00 00 00 07 04 06 00 48 58 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C0 D7 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E0 85 00 00 35 04 06 00 48 24 D7 A7 49 17 71 A6 F7 AD DE 10 93 81 [18:53:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8B 66 47 00 4A F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E0 85 00 00 F4 03 04 00 8F 7E 71 66 B6 04 01 00 00 12 29 2B D5 0D 19 0F 98 [18:53:53]CommunicateWithHost err = 0 [18:53:53]CheckOFDResponse [18:53:53]1017 (14) - 77093643461234 [18:53:53]1041 (16) - 0000000000875095 [18:53:53]1040 (4) - 34272 [18:53:53]1012 (4) - 18.06.2024 12:33 [18:53:53]1206 (1) - 0 [18:53:53]OFD Sender: Remove packet 34272 [18:53:53]ProducePacketName [18:53:53]name=ofd_packets/00034272 [18:53:53]NVStorageDeleteData [18:53:53]Write to MH i2c: 01 00 00 1F 0D 2C [18:53:53]Write i2c OK [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: 01 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: 01 07 00 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FE 0C 3D [18:53:53]RasterBufferAndPrint [18:53:53]line [18:53:53]line [18:53:53]line [18:53:53]line [18:53:53]line [18:53:53]written 0, free lines is 3332 [18:53:53]MH_Cut [18:53:53]Write to MH i2c: D1 01 00 26 0D 01 05 [18:53:53]Write i2c OK [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: D1 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: D1 01 00 [18:53:53]MH_I2C_Read... [18:53:53]Read from MH i2c: D1 01 00 26 0D 00 04 [18:53:53]Write to MH i2c: 01 00 00 27 0D 34 [18:53:53]Write i2c OK [18:53:53]MH_I2C_Read... [18:53:53]OFD Sender: No OFD packet to send [18:53:54]*** Cut start [18:53:54]*** Partial cut [18:53:54]*** CUTSNS_PIN = 1 [18:53:54]*** CUTSNS_PIN = 0 [18:53:54]*** Brake cut motor [18:53:54]Read from MH i2c: 01 [18:53:54]MH_I2C_Read... [18:53:54]*** Stop cut motor [18:53:54]*** Cut end [18:53:54]Read from MH i2c: 01 07 00 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: 01 07 00 27 0D 00 00 00 00 00 FF 0F 49 [18:53:54]process_action close_receipt done [18:53:54]requested_data is exist [18:53:54]produce_requested_data [18:53:54]requested_item fm.sn is exist - process it [18:53:54]wFMCommunicate request_size=4 [18:53:54]MH_SAM_APDU [18:53:54]CAPDU: 80 11 00 00 [18:53:54]Write to MH i2c: E2 08 00 28 0D 80 11 00 00 00 00 00 00 AF [18:53:54]Write i2c OK [18:53:54]MH_I2C_Read... [18:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:54]Read from MH i2c: E2 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: E2 17 00 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: E2 17 00 28 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 04 [18:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [18:53:54]wFMCommunicate OK [18:53:54]requested_item fd.num is exist - process it [18:53:54]SAM_PROTO_GetFieldsCounters [18:53:54]wFMCommunicate request_size=4 [18:53:54]MH_SAM_APDU [18:53:54]CAPDU: 80 13 00 00 [18:53:54]Write to MH i2c: E2 08 00 29 0D 80 13 00 00 00 00 00 00 B2 [18:53:54]Write i2c OK [18:53:54]MH_I2C_Read... [18:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:54]Read from MH i2c: E2 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: E2 62 00 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: E2 62 00 29 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E0 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [18:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E0 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:54]wFMCommunicate OK [18:53:54]SAM_PROTO_GetFieldsCounters done [18:53:54]requested_item shift.num is exist - process it [18:53:54]requested_item shift.opened is exist - process it [18:53:54]req_shift_opened [18:53:54]FM_GetShiftState [18:53:54]SAM_PROTO_GetShiftState [18:53:54]wFMCommunicate request_size=4 [18:53:54]MH_SAM_APDU [18:53:54]CAPDU: 80 13 01 00 [18:53:54]Write to MH i2c: E2 08 00 2A 0D 80 13 01 00 00 00 00 00 B4 [18:53:54]Write i2c OK [18:53:54]MH_I2C_Read... [18:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:54]Read from MH i2c: E2 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: E2 0E 00 [18:53:54]MH_I2C_Read... [18:53:54]Read from MH i2c: E2 0E 00 2A 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 FF [18:53:54]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [18:53:54]wFMCommunicate OK [18:53:54]SAM_PROTO_GetShiftState done [18:53:54]FM_GetShiftState done [18:53:54]req_shift_opened done [18:53:54]requested_item shift.open_date is exist - process it [18:53:54]req_shift_open_date [18:53:54]req_shift_open_date done [18:53:54]produce_requested_data done [18:53:54]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34272,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [18:53:54]process_action_free close_receipt [18:53:54]json_value_free [18:53:54]json_value_free done [18:53:54]process_json_proto returns [18:53:54]Send response to host [18:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34272,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [18:53:54]free response buf [18:53:54]execute_script done [18:53:54]execute_script returns [18:53:54]free content buf [18:53:54]Sock 7.Close socket [18:53:54]Sock 7.Thread stoped [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:01]accept exits with 9 [19:03:01]New connection [19:03:01]New thread 3067424100 created [19:03:01]Thread 3067567460 joined [19:03:01]Waiting for new connection... [19:03:01] Sock 9.Parse request [19:03:01]Sock 9.Check first char [19:03:01]Sock 9.First char is OK [19:03:01]request: POST /json_proto HTTP/1.0 [19:03:01]Method: POST [19:03:01]URL: /json_proto [19:03:01]Method is POST - this is cgi request [19:03:01]url: /json_proto [19:03:01]query_string will be loaded in cgi processing [19:03:01]execute_cgi json_proto POST (null) [19:03:01]execute_cgi path=json_proto method=POST [19:03:01]POST find Content-Length [19:03:01]Host: 172.17.38.134:8080 [19:03:01]Content-Length: 617 [19:03:01]Content-Type: application/json [19:03:01] [19:03:01]POST finish read [19:03:01]Found Content-Length = 617 [19:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184054", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:01]execute_script... [19:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184054", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:01]POST & json_proto [19:03:01]process_json_proto [19:03:01]json parsed OK: [19:03:01]protocol is kg_v1.0 [19:03:01]action value=close_receipt [19:03:01]process_action close_receipt [19:03:01]cmd_close_receipt [19:03:01]MH_GetDate [19:03:01]Write to MH i2c: F0 00 00 2B 0D 27 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: F0 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: F0 09 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: F0 09 00 2B 0D 00 E7 D9 71 66 13 9C 7C 64 56 [19:03:01]GetLastDocTimeStamp 1718736832 [19:03:01]current date 1718737383 [19:03:01]FM_GetShiftState [19:03:01]SAM_PROTO_GetShiftState [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 13 01 00 [19:03:01]Write to MH i2c: E2 08 00 2C 0D 80 13 01 00 00 00 00 00 B6 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 2C 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 01 [19:03:01]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:03:01]wFMCommunicate OK [19:03:01]SAM_PROTO_GetShiftState done [19:03:01]FM_GetShiftState done [19:03:01]opened in 1718670230 [19:03:01]opened+sec_in_day 1718756630 [19:03:01]quantity*price = 29000 [19:03:01]sum+1 = 29001 [19:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 95 18.06.2024 19:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34273 ФПД: 149306695376465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190303&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34273&fm=149306695376465&tin=02508201610067®Number=0000000000092786&sum=29000 0 [19:03:03]StoreToDocumentArchive [19:03:03]shift 323 fd 34273 [19:03:03]save to /storage/0323/doc_00034273 [19:03:03]save last doc name /storage/0323/doc_00034273 to /storage/kkm_last_doc_name [19:03:03]save OK [19:03:03]Clear old archive folders... [19:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=265 [19:03:03]tlvbuf is 0193DBC0 [19:03:03]SAM_PROTO_ClearQueue [19:03:03]wFMCommunicate request_size=4 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 09 00 00 [19:03:03]Write to MH i2c: E2 08 00 39 0D 80 09 00 00 00 00 00 00 B8 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 39 0D 00 90 00 BA [19:03:03]RAPDU: 90 00 [19:03:03]wFMCommunicate OK [19:03:03]SAM_PROTO_ClearQueue done [19:03:03]KKMCreateOFDPacket [19:03:03]OFDProtocolAddRootSTLVToBuf [19:03:03]FM_MakeSignedData [19:03:03]FM_MakeSignedData [19:03:03]SAM_PROTO_SignData [19:03:03]wFMCommunicate request_size=4 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 0D 01 02 [19:03:03]Write to MH i2c: E2 08 00 3A 0D 80 0D 01 02 00 00 00 00 C0 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 3A 0D 00 90 00 BB [19:03:03]RAPDU: 90 00 [19:03:03]wFMCommunicate OK [19:03:03]wFMCommunicate request_size=255 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E7 D9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 [19:03:03]Write to MH i2c: E2 02 01 3B 0D 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E7 D9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 00 00 DB [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [19:03:03]RAPDU: 90 00 [19:03:03]wFMCommunicate OK [19:03:03]wFMCommunicate request_size=24 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 0D 02 02 13 35 10 04 04 00 E1 85 00 00 35 04 06 00 87 CB 2C 8A 5E 51 [19:03:03]Write to MH i2c: E2 1B 00 3C 0D 80 0D 02 02 13 00 35 10 04 04 00 E1 85 00 00 35 04 06 00 87 CB 2C 8A 5E 51 00 00 92 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [19:03:03]RAPDU: 90 00 [19:03:03]wFMCommunicate OK [19:03:03]wFMCommunicate request_size=4 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 0D 03 02 [19:03:03]Write to MH i2c: E2 08 00 3D 0D 80 0D 03 02 00 00 00 00 C5 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 0B 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 0B 00 3D 0D 00 CB 8B 53 DD BF D7 9B 40 90 00 BD [19:03:03]RAPDU: CB 8B 53 DD BF D7 9B 40 90 00 [19:03:03]wFMCommunicate OK [19:03:03]SAM_PROTO_SignData done [19:03:03]FM_MakeSignedData done [19:03:03]CreateOFDProtocolMessage [19:03:03]wFMCommunicate request_size=4 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 11 00 00 [19:03:03]Write to MH i2c: E2 08 00 3E 0D 80 11 00 00 00 00 00 00 C5 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 17 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 17 00 3E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1A [19:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:03:03]wFMCommunicate OK [19:03:03]CreateOFDProtocolMessage done [19:03:03]OFDSenderStorePacket 34273 [19:03:03]StoreOFDPacket docnum=34273 [19:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1D 01 00 00 F0 1D 15 01 5E 37 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E7 D9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E1 85 00 00 35 04 06 00 87 CB 2C 8A 5E 51 CB 8B 53 DD BF D7 9B 40 [19:03:03]CheckFolder [19:03:03]dirname=/storage/ofd_packets [19:03:03]CheckFolder done [19:03:03]ProducePacketName [19:03:03]name=ofd_packets/00034273 [19:03:03]NVStorageSaveData ofd_packets/00034273 [19:03:03]File name is /storage/ofd_packets/00034273 [19:03:03]Write 315 bytes [19:03:03]NVStorageSaveData done [19:03:03]OFDSenderStorePacket done [19:03:03]KKMCreateOFDPacket done [19:03:03]NVStorageSaveData kkm_last_timestamp [19:03:03]File name is /storage/kkm_last_timestamp [19:03:03]Write 4 bytes [19:03:03]NVStorageSaveData done [19:03:03]ExternCall_PrintAddStr [19:03:03]wPrintStart [19:03:03]Write to MH i2c: 01 00 00 3F 0D 4C [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: 01 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: 01 07 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 FF 0F 61 [19:03:03]RasterBufferAndPrint [19:03:03]line Счет N : (3)184054 [19:03:03]line ИНН: 02508201610067 [19:03:03]line Контрольно-Кассовый Чек [19:03:03]line ПРОДАЖА [19:03:03]line Товар: 4700001610012 [19:03:03]line Пиво Арпа 0,5л [19:03:03]line 2.000 * 145.00 [19:03:03]line = 290.00 [19:03:03]line НДС 12% НСП 1% [19:03:03]line > о реализуемом товаре [19:03:03]line ИТОГО: 290.00 [19:03:03]line НСП 1% : 2.57 [19:03:03]line НДС 12% : 30.80 [19:03:03]line Наличными: 290.00 [19:03:03]line Безнал.: 0.00 [19:03:03]line Место: АЗС № 120 "Партнер Нефть" [19:03:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:03:03]line СНО: Общий режим [19:03:03]line Чек 95 18.06.2024 19:03 [19:03:03]line Смена: 323 ФФД: 1.0 [19:03:03]line ЗНМ: 0300000172 [19:03:03]line РНМ: 0000000000092786 [19:03:03]line Версия ККМ: 001 [19:03:03]line ФМ: 0000000000875095 [19:03:03]line ФД: 34273 [19:03:03]line ФПД: 149306695376465 [19:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T190303&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34273&fm=149306695376465&tin=02508201610067®Number=0000000000092786&sum=29000 [19:03:03]line 0 [19:03:03]OFD Sender: Processing packet 34273 [packets to send 8, broken 7] [19:03:03]ProducePacketName [19:03:03]name=ofd_packets/00034273 [19:03:03]OFD Sender: To server: pG, [19:03:03]CommunicateWithHost lk.salyk.kg:30040 [19:03:03]ConnectInit lk.salyk.kg [19:03:03]written 0, free lines is 4095 [19:03:04]Connected sock=11 [19:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 1D 01 00 00 F0 1D 15 01 5E 37 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E7 D9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E1 85 00 00 35 04 06 00 87 CB 2C 8A 5E 51 CB 8B 53 DD BF D7 9B 40 [19:03:04]Write to MH i2c: 01 00 00 67 0D 74 [19:03:04]Write i2c OK [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: 01 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: 01 07 00 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: 01 07 00 67 0D 00 00 00 00 00 01 0D 89 [19:03:04]RasterBufferAndPrint [19:03:04]line [19:03:04]line [19:03:04]line [19:03:04]line [19:03:04]line [19:03:04]written 0, free lines is 3332 [19:03:04]MH_Cut [19:03:04]Write to MH i2c: D1 01 00 6E 0D 01 4D [19:03:04]Write i2c OK [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: D1 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: D1 01 00 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: D1 01 00 6E 0D 00 4C [19:03:04]Write to MH i2c: 01 00 00 6F 0D 7C [19:03:04]Write i2c OK [19:03:04]MH_I2C_Read... [19:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 3C D7 47 00 09 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E1 85 00 00 F4 03 04 00 B6 80 71 66 B6 04 01 00 00 A7 0D 70 4B E1 DE 37 C6 [19:03:04]CommunicateWithHost err = 0 [19:03:04]CheckOFDResponse [19:03:04]1017 (14) - 77093643461234 [19:03:04]1041 (16) - 0000000000875095 [19:03:04]1040 (4) - 34273 [19:03:04]1012 (4) - 18.06.2024 12:42 [19:03:04]1206 (1) - 0 [19:03:04]OFD Sender: Remove packet 34273 [19:03:04]ProducePacketName [19:03:04]name=ofd_packets/00034273 [19:03:04]NVStorageDeleteData [19:03:04]OFD Sender: No OFD packet to send [19:03:05]*** Cut start [19:03:05]*** Partial cut [19:03:05]*** CUTSNS_PIN = 1 [19:03:05]*** CUTSNS_PIN = 0 [19:03:05]*** Brake cut motor [19:03:05]Read from MH i2c: 01 [19:03:05]MH_I2C_Read... [19:03:05]*** Stop cut motor [19:03:05]*** Cut end [19:03:05]Read from MH i2c: 01 07 00 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: 01 07 00 6F 0D 00 00 00 00 00 FF 0F 91 [19:03:05]process_action close_receipt done [19:03:05]requested_data is exist [19:03:05]produce_requested_data [19:03:05]requested_item fm.sn is exist - process it [19:03:05]wFMCommunicate request_size=4 [19:03:05]MH_SAM_APDU [19:03:05]CAPDU: 80 11 00 00 [19:03:05]Write to MH i2c: E2 08 00 70 0D 80 11 00 00 00 00 00 00 F7 [19:03:05]Write i2c OK [19:03:05]MH_I2C_Read... [19:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:05]Read from MH i2c: E2 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: E2 17 00 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: E2 17 00 70 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4C [19:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:03:05]wFMCommunicate OK [19:03:05]requested_item fd.num is exist - process it [19:03:05]SAM_PROTO_GetFieldsCounters [19:03:05]wFMCommunicate request_size=4 [19:03:05]MH_SAM_APDU [19:03:05]CAPDU: 80 13 00 00 [19:03:05]Write to MH i2c: E2 08 00 71 0D 80 13 00 00 00 00 00 00 FA [19:03:05]Write i2c OK [19:03:05]MH_I2C_Read... [19:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:05]Read from MH i2c: E2 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: E2 62 00 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: E2 62 00 71 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [19:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:05]wFMCommunicate OK [19:03:05]SAM_PROTO_GetFieldsCounters done [19:03:05]requested_item shift.num is exist - process it [19:03:05]requested_item shift.opened is exist - process it [19:03:05]req_shift_opened [19:03:05]FM_GetShiftState [19:03:05]SAM_PROTO_GetShiftState [19:03:05]wFMCommunicate request_size=4 [19:03:05]MH_SAM_APDU [19:03:05]CAPDU: 80 13 01 00 [19:03:05]Write to MH i2c: E2 08 00 72 0D 80 13 01 00 00 00 00 00 FC [19:03:05]Write i2c OK [19:03:05]MH_I2C_Read... [19:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:05]Read from MH i2c: E2 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: E2 0E 00 [19:03:05]MH_I2C_Read... [19:03:05]Read from MH i2c: E2 0E 00 72 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 47 [19:03:05]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:03:05]wFMCommunicate OK [19:03:05]SAM_PROTO_GetShiftState done [19:03:05]FM_GetShiftState done [19:03:05]req_shift_opened done [19:03:05]requested_item shift.open_date is exist - process it [19:03:05]req_shift_open_date [19:03:05]req_shift_open_date done [19:03:05]produce_requested_data done [19:03:05]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34273,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [19:03:05]process_action_free close_receipt [19:03:05]json_value_free [19:03:05]json_value_free done [19:03:05]process_json_proto returns [19:03:05]Send response to host [19:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34273,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [19:03:05]free response buf [19:03:05]execute_script done [19:03:05]execute_script returns [19:03:05]free content buf [19:03:05]Sock 9.Close socket [19:03:05]Sock 9.Thread stoped [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:52]accept exits with 7 [19:17:52]New connection [19:17:52]New thread 3067567460 created [19:17:52]Thread 3067424100 joined [19:17:52]Waiting for new connection... [19:17:52] Sock 7.Parse request [19:17:52]Sock 7.Check first char [19:17:52]Sock 7.First char is OK [19:17:52]request: POST /json_proto HTTP/1.0 [19:17:52]Method: POST [19:17:52]URL: /json_proto [19:17:52]Method is POST - this is cgi request [19:17:52]url: /json_proto [19:17:52]query_string will be loaded in cgi processing [19:17:52]execute_cgi json_proto POST (null) [19:17:52]execute_cgi path=json_proto method=POST [19:17:52]POST find Content-Length [19:17:52]Host: 172.17.38.134:8080 [19:17:52]Content-Length: 1105 [19:17:52]Content-Type: application/json [19:17:52] [19:17:52]POST finish read [19:17:52]Found Content-Length = 1105 [19:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184055", "tax_sys" : 0, "items" : [ { "code": "4602441011292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:52]execute_script... [19:17:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184055", "tax_sys" : 0, "items" : [ { "code": "4602441011292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:52]POST & json_proto [19:17:52]process_json_proto [19:17:52]json parsed OK: [19:17:52]protocol is kg_v1.0 [19:17:52]action value=close_receipt [19:17:52]process_action close_receipt [19:17:52]cmd_close_receipt [19:17:52]MH_GetDate [19:17:52]Write to MH i2c: F0 00 00 73 0D 6F [19:17:52]Write i2c OK [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: F0 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: F0 09 00 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: F0 09 00 73 0D 00 61 DD 71 66 13 9C 7C 64 1C [19:17:52]GetLastDocTimeStamp 1718737383 [19:17:52]current date 1718738273 [19:17:52]FM_GetShiftState [19:17:52]SAM_PROTO_GetShiftState [19:17:52]wFMCommunicate request_size=4 [19:17:52]MH_SAM_APDU [19:17:52]CAPDU: 80 13 01 00 [19:17:52]Write to MH i2c: E2 08 00 74 0D 80 13 01 00 00 00 00 00 FE [19:17:52]Write i2c OK [19:17:52]MH_I2C_Read... [19:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:52]Read from MH i2c: E2 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 0E 00 [19:17:52]MH_I2C_Read... [19:17:52]Read from MH i2c: E2 0E 00 74 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 49 [19:17:52]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:17:52]wFMCommunicate OK [19:17:52]SAM_PROTO_GetShiftState done [19:17:52]FM_GetShiftState done [19:17:52]opened in 1718670230 [19:17:52]opened+sec_in_day 1718756630 [19:17:52]quantity*price = 12500 [19:17:52]sum+1 = 12501 [19:17:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.64 Наличными: 0.00 Безнал.: 185.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 96 18.06.2024 19:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875095 ФД: 34274 ФПД: 108404221061844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191753&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34274&fm=108404221061844&tin=02508201610067®Number=0000000000092786&sum=18500 0 [19:17:53]StoreToDocumentArchive [19:17:53]shift 323 fd 34274 [19:17:53]save to /storage/0323/doc_00034274 [19:17:53]save last doc name /storage/0323/doc_00034274 to /storage/kkm_last_doc_name [19:17:53]save OK [19:17:53]Clear old archive folders... [19:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:17:53]tlvbuf is 0191AFB0 [19:17:53]SAM_PROTO_ClearQueue [19:17:53]wFMCommunicate request_size=4 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 09 00 00 [19:17:53]Write to MH i2c: E2 08 00 81 0D 80 09 00 00 00 00 00 00 00 [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 81 0D 00 90 00 02 [19:17:53]RAPDU: 90 00 [19:17:53]wFMCommunicate OK [19:17:53]SAM_PROTO_ClearQueue done [19:17:53]KKMCreateOFDPacket [19:17:53]OFDProtocolAddRootSTLVToBuf [19:17:53]FM_MakeSignedData [19:17:53]FM_MakeSignedData [19:17:53]SAM_PROTO_SignData [19:17:53]wFMCommunicate request_size=4 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 0D 01 02 [19:17:53]Write to MH i2c: E2 08 00 82 0D 80 0D 01 02 00 00 00 00 08 [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 82 0D 00 90 00 03 [19:17:53]RAPDU: 90 00 [19:17:53]wFMCommunicate OK [19:17:53]wFMCommunicate request_size=255 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF [19:17:53]Write to MH i2c: E2 02 01 83 0D 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 00 00 66 [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 83 0D 00 90 00 04 [19:17:53]RAPDU: 90 00 [19:17:53]wFMCommunicate OK [19:17:53]wFMCommunicate request_size=155 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 61 DD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E2 85 00 00 35 04 06 00 62 97 D3 16 AA D4 [19:17:53]Write to MH i2c: E2 9E 00 84 0D 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 61 DD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E2 85 00 00 35 04 06 00 62 97 D3 16 AA D4 00 00 DD [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 03 00 84 0D 00 90 00 05 [19:17:53]RAPDU: 90 00 [19:17:53]wFMCommunicate OK [19:17:53]wFMCommunicate request_size=4 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 0D 03 02 [19:17:53]Write to MH i2c: E2 08 00 85 0D 80 0D 03 02 00 00 00 00 0D [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 0B 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 0B 00 85 0D 00 D7 B6 26 AF 55 E7 18 4F 90 00 13 [19:17:53]RAPDU: D7 B6 26 AF 55 E7 18 4F 90 00 [19:17:53]wFMCommunicate OK [19:17:53]SAM_PROTO_SignData done [19:17:53]FM_MakeSignedData done [19:17:53]CreateOFDProtocolMessage [19:17:53]wFMCommunicate request_size=4 [19:17:53]MH_SAM_APDU [19:17:53]CAPDU: 80 11 00 00 [19:17:53]Write to MH i2c: E2 08 00 86 0D 80 11 00 00 00 00 00 00 0D [19:17:53]Write i2c OK [19:17:53]MH_I2C_Read... [19:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:53]Read from MH i2c: E2 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 17 00 [19:17:53]MH_I2C_Read... [19:17:53]Read from MH i2c: E2 17 00 86 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 62 [19:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:17:53]wFMCommunicate OK [19:17:53]CreateOFDProtocolMessage done [19:17:53]OFDSenderStorePacket 34274 [19:17:53]StoreOFDPacket docnum=34274 [19:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A0 01 00 00 53 14 98 01 02 05 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 61 DD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E2 85 00 00 35 04 06 00 62 97 D3 16 AA D4 D7 B6 26 AF 55 E7 18 4F [19:17:53]CheckFolder [19:17:53]dirname=/storage/ofd_packets [19:17:53]CheckFolder done [19:17:53]ProducePacketName [19:17:53]name=ofd_packets/00034274 [19:17:53]NVStorageSaveData ofd_packets/00034274 [19:17:54]File name is /storage/ofd_packets/00034274 [19:17:54]Write 446 bytes [19:17:54]NVStorageSaveData done [19:17:54]OFDSenderStorePacket done [19:17:54]KKMCreateOFDPacket done [19:17:54]NVStorageSaveData kkm_last_timestamp [19:17:54]File name is /storage/kkm_last_timestamp [19:17:54]Write 4 bytes [19:17:54]NVStorageSaveData done [19:17:54]ExternCall_PrintAddStr [19:17:54]wPrintStart [19:17:54]Write to MH i2c: 01 00 00 87 0D 94 [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: 01 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: 01 07 00 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 FF 0F A9 [19:17:54]RasterBufferAndPrint [19:17:54]line Счет N : (3)184055 [19:17:54]line ИНН: 02508201610067 [19:17:54]line Контрольно-Кассовый Чек [19:17:54]line ПРОДАЖА [19:17:54]line Товар: 4602441011292 [19:17:54]line Напиток Лимонад 0,5л ст (Gabb trade) [19:17:54]line 1.000 * 125.00 [19:17:54]line = 125.00 [19:17:54]line НДС 12% НСП 1% [19:17:54]line > о реализуемом товаре [19:17:54]line Товар: 4700000160204 [19:17:54]line Вода Легенда 1,5л [19:17:54]line 1.000 * 60.00 [19:17:54]line = 60.00 [19:17:54]line НДС 12% НСП 1% [19:17:54]line > о реализуемом товаре [19:17:54]line ИТОГО: 185.00 [19:17:54]line НСП 1% : 1.64 [19:17:54]line НДС 12% : 19.64 [19:17:54]line Наличными: 0.00 [19:17:54]line Безнал.: 185.00 [19:17:54]line Место: АЗС № 120 "Партнер Нефть" [19:17:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:17:54]line СНО: Общий режим [19:17:54]line Чек 96 18.06.2024 19:17 [19:17:54]line Смена: 323 ФФД: 1.0 [19:17:54]line ЗНМ: 0300000172 [19:17:54]line РНМ: 0000000000092786 [19:17:54]line Версия ККМ: 001 [19:17:54]line Платежная система: Бакай Банк [19:17:54]line ФМ: 0000000000875095 [19:17:54]line ФД: 34274 [19:17:54]line ФПД: 108404221061844 [19:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T191753&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34274&fm=108404221061844&tin=02508201610067®Number=0000000000092786&sum=18500 [19:17:54]OFD Sender: Processing packet 34274 [packets to send 8, broken 7] [19:17:54]ProducePacketName [19:17:54]name=ofd_packets/00034274 [19:17:54]OFD Sender: To server: pG, [19:17:54]CommunicateWithHost lk.salyk.kg:30040 [19:17:54]ConnectInit lk.salyk.kg [19:17:54]line 0 [19:17:54]written 0, free lines is 4095 [19:17:54]Connected sock=10 [19:17:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A0 01 00 00 53 14 98 01 02 05 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 61 DD 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E2 85 00 00 35 04 06 00 62 97 D3 16 AA D4 D7 B6 26 AF 55 E7 18 4F [19:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 F2 49 47 00 DA F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E2 85 00 00 F4 03 04 00 30 84 71 66 B6 04 01 00 00 A7 A4 8E 58 4A DC DA AA [19:17:54]CommunicateWithHost err = 0 [19:17:54]CheckOFDResponse [19:17:54]1017 (14) - 77093643461234 [19:17:54]1041 (16) - 0000000000875095 [19:17:54]1040 (4) - 34274 [19:17:54]1012 (4) - 18.06.2024 12:57 [19:17:54]1206 (1) - 0 [19:17:54]OFD Sender: Remove packet 34274 [19:17:54]ProducePacketName [19:17:54]name=ofd_packets/00034274 [19:17:54]NVStorageDeleteData [19:17:54]Write to MH i2c: 01 00 00 B8 0D C5 [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: 01 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: 01 07 00 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 7A 0C 52 [19:17:54]RasterBufferAndPrint [19:17:54]line [19:17:54]line [19:17:54]line [19:17:54]line [19:17:54]line [19:17:54]written 0, free lines is 3202 [19:17:54]MH_Cut [19:17:54]Write to MH i2c: D1 01 00 BF 0D 01 9E [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: D1 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: D1 01 00 [19:17:54]MH_I2C_Read... [19:17:54]Read from MH i2c: D1 01 00 BF 0D 00 9D [19:17:54]Write to MH i2c: 01 00 00 C0 0D CD [19:17:54]Write i2c OK [19:17:54]MH_I2C_Read... [19:17:55]OFD Sender: No OFD packet to send [19:17:55]*** Cut start [19:17:55]*** Partial cut [19:17:55]*** CUTSNS_PIN = 1 [19:17:55]*** CUTSNS_PIN = 0 [19:17:55]*** Brake cut motor [19:17:56]Read from MH i2c: 01 [19:17:56]MH_I2C_Read... [19:17:56]*** Stop cut motor [19:17:56]*** Cut end [19:17:56]Read from MH i2c: 01 07 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 FF 0F E2 [19:17:56]process_action close_receipt done [19:17:56]requested_data is exist [19:17:56]produce_requested_data [19:17:56]requested_item fm.sn is exist - process it [19:17:56]wFMCommunicate request_size=4 [19:17:56]MH_SAM_APDU [19:17:56]CAPDU: 80 11 00 00 [19:17:56]Write to MH i2c: E2 08 00 C1 0D 80 11 00 00 00 00 00 00 48 [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:56]Read from MH i2c: E2 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 17 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 17 00 C1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9D [19:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:17:56]wFMCommunicate OK [19:17:56]requested_item fd.num is exist - process it [19:17:56]SAM_PROTO_GetFieldsCounters [19:17:56]wFMCommunicate request_size=4 [19:17:56]MH_SAM_APDU [19:17:56]CAPDU: 80 13 00 00 [19:17:56]Write to MH i2c: E2 08 00 C2 0D 80 13 00 00 00 00 00 00 4B [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:56]Read from MH i2c: E2 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 62 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 62 00 C2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [19:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:56]wFMCommunicate OK [19:17:56]SAM_PROTO_GetFieldsCounters done [19:17:56]requested_item shift.num is exist - process it [19:17:56]requested_item shift.opened is exist - process it [19:17:56]req_shift_opened [19:17:56]FM_GetShiftState [19:17:56]SAM_PROTO_GetShiftState [19:17:56]wFMCommunicate request_size=4 [19:17:56]MH_SAM_APDU [19:17:56]CAPDU: 80 13 01 00 [19:17:56]Write to MH i2c: E2 08 00 C3 0D 80 13 01 00 00 00 00 00 4D [19:17:56]Write i2c OK [19:17:56]MH_I2C_Read... [19:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:56]Read from MH i2c: E2 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 0E 00 [19:17:56]MH_I2C_Read... [19:17:56]Read from MH i2c: E2 0E 00 C3 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 98 [19:17:56]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:17:56]wFMCommunicate OK [19:17:56]SAM_PROTO_GetShiftState done [19:17:56]FM_GetShiftState done [19:17:56]req_shift_opened done [19:17:56]requested_item shift.open_date is exist - process it [19:17:56]req_shift_open_date [19:17:56]req_shift_open_date done [19:17:56]produce_requested_data done [19:17:56]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34274,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [19:17:56]process_action_free close_receipt [19:17:56]json_value_free [19:17:56]json_value_free done [19:17:56]process_json_proto returns [19:17:56]Send response to host [19:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34274,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [19:17:56]free response buf [19:17:56]execute_script done [19:17:56]execute_script returns [19:17:56]free content buf [19:17:56]Sock 7.Close socket [19:17:56]Sock 7.Thread stoped [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:02]accept exits with 9 [19:23:02]New connection [19:23:02]New thread 3067424100 created [19:23:02]Thread 3067567460 joined [19:23:02]Waiting for new connection... [19:23:02] Sock 9.Parse request [19:23:02]Sock 9.Check first char [19:23:02]Sock 9.First char is OK [19:23:02]request: POST /json_proto HTTP/1.0 [19:23:02]Method: POST [19:23:02]URL: /json_proto [19:23:02]Method is POST - this is cgi request [19:23:02]url: /json_proto [19:23:02]query_string will be loaded in cgi processing [19:23:02]execute_cgi json_proto POST (null) [19:23:02]execute_cgi path=json_proto method=POST [19:23:02]POST find Content-Length [19:23:02]Host: 172.17.38.134:8080 [19:23:02]Content-Length: 1032 [19:23:02]Content-Type: application/json [19:23:02] [19:23:02]POST finish read [19:23:02]Found Content-Length = 1032 [19:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184058", "tax_sys" : 0, "items" : [ { "code": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80050124", "name": "\u0414\u0440\u0430\u0436\u0435 tic tac \u043C\u044F\u0442\u0430 16\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 336.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:02]execute_script... [19:23:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184058", "tax_sys" : 0, "items" : [ { "code": "6957531032045", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco rapid charging X1 type-C 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "80050124", "name": "\u0414\u0440\u0430\u0436\u0435 tic tac \u043C\u044F\u0442\u0430 16\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 336.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:02]POST & json_proto [19:23:02]process_json_proto [19:23:02]json parsed OK: [19:23:02]protocol is kg_v1.0 [19:23:02]action value=close_receipt [19:23:02]process_action close_receipt [19:23:02]cmd_close_receipt [19:23:02]MH_GetDate [19:23:02]Write to MH i2c: F0 00 00 C4 0D C0 [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: F0 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: F0 09 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: F0 09 00 C4 0D 00 97 DE 71 66 13 9C 7C 64 A4 [19:23:02]GetLastDocTimeStamp 1718738273 [19:23:02]current date 1718738583 [19:23:02]FM_GetShiftState [19:23:02]SAM_PROTO_GetShiftState [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 13 01 00 [19:23:02]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 9A [19:23:02]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:23:02]wFMCommunicate OK [19:23:02]SAM_PROTO_GetShiftState done [19:23:02]FM_GetShiftState done [19:23:02]opened in 1718670230 [19:23:02]opened+sec_in_day 1718756630 [19:23:02]quantity*price = 27100 [19:23:02]sum+1 = 27101 [19:23:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 80050124 Драже tic tac мята 16г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 336.00 НСП 1% : 2.97 НДС 12% : 35.68 Наличными: 0.00 Безнал.: 336.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 97 18.06.2024 19:23 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34275 ФПД: 138221021075274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T192303&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34275&fm=138221021075274&tin=02508201610067®Number=0000000000092786&sum=33600 0 [19:23:03]StoreToDocumentArchive [19:23:03]shift 323 fd 34275 [19:23:03]save to /storage/0323/doc_00034275 [19:23:03]save last doc name /storage/0323/doc_00034275 to /storage/kkm_last_doc_name [19:23:03]save OK [19:23:03]Clear old archive folders... [19:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=387 [19:23:03]tlvbuf is 0193ED30 [19:23:03]SAM_PROTO_ClearQueue [19:23:03]wFMCommunicate request_size=4 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 09 00 00 [19:23:03]Write to MH i2c: E2 08 00 D2 0D 80 09 00 00 00 00 00 00 51 [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [19:23:03]RAPDU: 90 00 [19:23:03]wFMCommunicate OK [19:23:03]SAM_PROTO_ClearQueue done [19:23:03]KKMCreateOFDPacket [19:23:03]OFDProtocolAddRootSTLVToBuf [19:23:03]FM_MakeSignedData [19:23:03]FM_MakeSignedData [19:23:03]SAM_PROTO_SignData [19:23:03]wFMCommunicate request_size=4 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 0D 01 02 [19:23:03]Write to MH i2c: E2 08 00 D3 0D 80 0D 01 02 00 00 00 00 59 [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [19:23:03]RAPDU: 90 00 [19:23:03]wFMCommunicate OK [19:23:03]wFMCommunicate request_size=255 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 08 00 38 30 30 35 30 31 32 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 74 69 63 20 74 61 63 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [19:23:03]Write to MH i2c: E2 02 01 D4 0D 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 08 00 38 30 30 35 30 31 32 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 74 69 63 20 74 61 63 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 37 [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [19:23:03]RAPDU: 90 00 [19:23:03]wFMCommunicate OK [19:23:03]wFMCommunicate request_size=146 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 0D 02 02 8D 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 97 DE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E3 85 00 00 35 04 06 00 7D B6 16 DC 97 4A [19:23:03]Write to MH i2c: E2 95 00 D5 0D 80 0D 02 02 8D 00 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 97 DE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E3 85 00 00 35 04 06 00 7D B6 16 DC 97 4A 00 00 FE [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [19:23:03]RAPDU: 90 00 [19:23:03]wFMCommunicate OK [19:23:03]wFMCommunicate request_size=4 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 0D 03 02 [19:23:03]Write to MH i2c: E2 08 00 D6 0D 80 0D 03 02 00 00 00 00 5E [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 0B 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 0B 00 D6 0D 00 30 08 0C 3A 5D 9E 12 71 90 00 5B [19:23:03]RAPDU: 30 08 0C 3A 5D 9E 12 71 90 00 [19:23:03]wFMCommunicate OK [19:23:03]SAM_PROTO_SignData done [19:23:03]FM_MakeSignedData done [19:23:03]CreateOFDProtocolMessage [19:23:03]wFMCommunicate request_size=4 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 11 00 00 [19:23:03]Write to MH i2c: E2 08 00 D7 0D 80 11 00 00 00 00 00 00 5E [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 17 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 17 00 D7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B3 [19:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:23:03]wFMCommunicate OK [19:23:03]CreateOFDProtocolMessage done [19:23:03]OFDSenderStorePacket 34275 [19:23:03]StoreOFDPacket docnum=34275 [19:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 97 01 00 00 39 FE 8F 01 5E 39 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 08 00 38 30 30 35 30 31 32 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 74 69 63 20 74 61 63 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 97 DE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E3 85 00 00 35 04 06 00 7D B6 16 DC 97 4A 30 08 0C 3A 5D 9E 12 71 [19:23:03]CheckFolder [19:23:03]dirname=/storage/ofd_packets [19:23:03]CheckFolder done [19:23:03]ProducePacketName [19:23:03]name=ofd_packets/00034275 [19:23:03]NVStorageSaveData ofd_packets/00034275 [19:23:03]File name is /storage/ofd_packets/00034275 [19:23:03]Write 437 bytes [19:23:03]NVStorageSaveData done [19:23:03]OFDSenderStorePacket done [19:23:03]KKMCreateOFDPacket done [19:23:03]NVStorageSaveData kkm_last_timestamp [19:23:03]File name is /storage/kkm_last_timestamp [19:23:03]Write 4 bytes [19:23:03]NVStorageSaveData done [19:23:04]ExternCall_PrintAddStr [19:23:04]wPrintStart [19:23:04]Write to MH i2c: 01 00 00 D8 0D E5 [19:23:04]OFD Sender: Processing packet 34275 [packets to send 8, broken 7] [19:23:04]ProducePacketName [19:23:04]name=ofd_packets/00034275 [19:23:04]OFD Sender: To server: pG, [19:23:04]Write i2c OK [19:23:04]CommunicateWithHost lk.salyk.kg:30040 [19:23:04]MH_I2C_Read... [19:23:04]ConnectInit lk.salyk.kg [19:23:04]Read from MH i2c: 01 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [19:23:04]RasterBufferAndPrint [19:23:04]line Счет N : (3)184058 [19:23:04]line ИНН: 02508201610067 [19:23:04]line Контрольно-Кассовый Чек [19:23:04]line ПРОДАЖА [19:23:04]line Товар: 6957531032045 [19:23:04]line Кабель hoco rapid charging X1 type-C 1м [19:23:04]line 1.000 * 271.00 [19:23:04]line = 271.00 [19:23:04]line НДС 12% НСП 1% [19:23:04]line > о реализуемом товаре [19:23:04]line Товар: 80050124 [19:23:04]line Драже tic tac мята 16г [19:23:04]line 1.000 * 65.00 [19:23:04]line = 65.00 [19:23:04]line НДС 12% НСП 1% [19:23:04]line > о реализуемом товаре [19:23:04]line ИТОГО: 336.00 [19:23:04]line НСП 1% : 2.97 [19:23:04]line НДС 12% : 35.68 [19:23:04]line Наличными: 0.00 [19:23:04]line Безнал.: 336.00 [19:23:04]line Место: АЗС № 120 "Партнер Нефть" [19:23:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:23:04]line СНО: Общий режим [19:23:04]line Чек 97 18.06.2024 19:23 [19:23:04]line Смена: 323 ФФД: 1.0 [19:23:04]line ЗНМ: 0300000172 [19:23:04]line РНМ: 0000000000092786 [19:23:04]line Версия ККМ: 001 [19:23:04]line Платежная система: O! деньги [19:23:04]line ФМ: 0000000000875095 [19:23:04]line ФД: 34275 [19:23:04]line ФПД: 138221021075274 [19:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T192303&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34275&fm=138221021075274&tin=02508201610067®Number=0000000000092786&sum=33600 [19:23:04]line 0 [19:23:04]written 0, free lines is 4095 [19:23:04]Connected sock=11 [19:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 97 01 00 00 39 FE 8F 01 5E 39 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 34 35 06 04 2E 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 72 61 70 69 64 20 63 68 61 72 67 69 6E 67 20 58 31 20 74 79 70 65 2D 43 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 08 00 38 30 30 35 30 31 32 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 74 69 63 20 74 61 63 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 83 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 97 DE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E3 85 00 00 35 04 06 00 7D B6 16 DC 97 4A 30 08 0C 3A 5D 9E 12 71 [19:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A2 61 47 00 25 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E3 85 00 00 F4 03 04 00 66 85 71 66 B6 04 01 00 00 8A 37 83 F4 A5 9A A4 F6 [19:23:04]CommunicateWithHost err = 0 [19:23:04]CheckOFDResponse [19:23:04]1017 (14) - 77093643461234 [19:23:04]1041 (16) - 0000000000875095 [19:23:04]1040 (4) - 34275 [19:23:04]1012 (4) - 18.06.2024 13:02 [19:23:04]1206 (1) - 0 [19:23:04]OFD Sender: Remove packet 34275 [19:23:04]ProducePacketName [19:23:04]name=ofd_packets/00034275 [19:23:04]NVStorageDeleteData [19:23:04]Write to MH i2c: 01 00 00 09 0E 17 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 73 0C 9D [19:23:04]RasterBufferAndPrint [19:23:04]line [19:23:04]line [19:23:04]line [19:23:04]line [19:23:04]line [19:23:04]written 0, free lines is 3194 [19:23:04]MH_Cut [19:23:04]Write to MH i2c: D1 01 00 10 0E 01 F0 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: D1 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: D1 01 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: D1 01 00 10 0E 00 EF [19:23:04]Write to MH i2c: 01 00 00 11 0E 1F [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:05]OFD Sender: No OFD packet to send [19:23:05]*** Cut start [19:23:05]*** Partial cut [19:23:05]*** CUTSNS_PIN = 1 [19:23:05]*** CUTSNS_PIN = 0 [19:23:05]*** Brake cut motor [19:23:06]Read from MH i2c: 01 [19:23:06]MH_I2C_Read... [19:23:06]*** Stop cut motor [19:23:06]*** Cut end [19:23:06]Read from MH i2c: 01 07 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: 01 07 00 11 0E 00 00 00 00 00 FF 0F 34 [19:23:06]process_action close_receipt done [19:23:06]requested_data is exist [19:23:06]produce_requested_data [19:23:06]requested_item fm.sn is exist - process it [19:23:06]wFMCommunicate request_size=4 [19:23:06]MH_SAM_APDU [19:23:06]CAPDU: 80 11 00 00 [19:23:06]Write to MH i2c: E2 08 00 12 0E 80 11 00 00 00 00 00 00 9A [19:23:06]Write i2c OK [19:23:06]MH_I2C_Read... [19:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:06]Read from MH i2c: E2 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 17 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 17 00 12 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EF [19:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:23:06]wFMCommunicate OK [19:23:06]requested_item fd.num is exist - process it [19:23:06]SAM_PROTO_GetFieldsCounters [19:23:06]wFMCommunicate request_size=4 [19:23:06]MH_SAM_APDU [19:23:06]CAPDU: 80 13 00 00 [19:23:06]Write to MH i2c: E2 08 00 13 0E 80 13 00 00 00 00 00 00 9D [19:23:06]Write i2c OK [19:23:06]MH_I2C_Read... [19:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:06]Read from MH i2c: E2 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 62 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 62 00 13 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E3 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [19:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E3 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:06]wFMCommunicate OK [19:23:06]SAM_PROTO_GetFieldsCounters done [19:23:06]requested_item shift.num is exist - process it [19:23:06]requested_item shift.opened is exist - process it [19:23:06]req_shift_opened [19:23:06]FM_GetShiftState [19:23:06]SAM_PROTO_GetShiftState [19:23:06]wFMCommunicate request_size=4 [19:23:06]MH_SAM_APDU [19:23:06]CAPDU: 80 13 01 00 [19:23:06]Write to MH i2c: E2 08 00 14 0E 80 13 01 00 00 00 00 00 9F [19:23:06]Write i2c OK [19:23:06]MH_I2C_Read... [19:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:06]Read from MH i2c: E2 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 0E 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 0E 00 14 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 EA [19:23:06]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:23:06]wFMCommunicate OK [19:23:06]SAM_PROTO_GetShiftState done [19:23:06]FM_GetShiftState done [19:23:06]req_shift_opened done [19:23:06]requested_item shift.open_date is exist - process it [19:23:06]req_shift_open_date [19:23:06]req_shift_open_date done [19:23:06]produce_requested_data done [19:23:06]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34275,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [19:23:06]process_action_free close_receipt [19:23:06]json_value_free [19:23:06]json_value_free done [19:23:06]process_json_proto returns [19:23:06]Send response to host [19:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34275,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [19:23:06]free response buf [19:23:06]execute_script done [19:23:06]execute_script returns [19:23:06]free content buf [19:23:06]Sock 9.Close socket [19:23:06]Sock 9.Thread stoped [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:02]accept exits with 7 [19:35:02]New connection [19:35:02]New thread 3067567460 created [19:35:02]Thread 3067424100 joined [19:35:02]Waiting for new connection... [19:35:02] Sock 7.Parse request [19:35:02]Sock 7.Check first char [19:35:02]Sock 7.First char is OK [19:35:02]request: POST /json_proto HTTP/1.0 [19:35:02]Method: POST [19:35:02]URL: /json_proto [19:35:02]Method is POST - this is cgi request [19:35:02]url: /json_proto [19:35:02]query_string will be loaded in cgi processing [19:35:02]execute_cgi json_proto POST (null) [19:35:02]execute_cgi path=json_proto method=POST [19:35:02]POST find Content-Length [19:35:02]Host: 172.17.38.134:8080 [19:35:02]Content-Length: 725 [19:35:02]Content-Type: application/json [19:35:02] [19:35:02]POST finish read [19:35:02]Found Content-Length = 725 [19:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184059", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:02]execute_script... [19:35:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184059", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:02]POST & json_proto [19:35:02]process_json_proto [19:35:02]json parsed OK: [19:35:02]protocol is kg_v1.0 [19:35:02]action value=close_receipt [19:35:02]process_action close_receipt [19:35:02]cmd_close_receipt [19:35:02]MH_GetDate [19:35:02]Write to MH i2c: F0 00 00 15 0E 12 [19:35:02]Write i2c OK [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: F0 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: F0 09 00 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: F0 09 00 15 0E 00 68 E1 71 66 13 9C 7C 64 CA [19:35:02]GetLastDocTimeStamp 1718738583 [19:35:02]current date 1718739304 [19:35:02]FM_GetShiftState [19:35:02]SAM_PROTO_GetShiftState [19:35:02]wFMCommunicate request_size=4 [19:35:02]MH_SAM_APDU [19:35:02]CAPDU: 80 13 01 00 [19:35:02]Write to MH i2c: E2 08 00 16 0E 80 13 01 00 00 00 00 00 A1 [19:35:02]Write i2c OK [19:35:02]MH_I2C_Read... [19:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:02]Read from MH i2c: E2 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: E2 0E 00 [19:35:02]MH_I2C_Read... [19:35:02]Read from MH i2c: E2 0E 00 16 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 EC [19:35:02]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:35:02]wFMCommunicate OK [19:35:02]SAM_PROTO_GetShiftState done [19:35:02]FM_GetShiftState done [19:35:02]opened in 1718670230 [19:35:02]opened+sec_in_day 1718756630 [19:35:02]quantity*price = 7000 [19:35:02]sum+1 = 7001 [19:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 98 18.06.2024 19:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34276 ФПД: 234241338206813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193504&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34276&fm=234241338206813&tin=02508201610067®Number=0000000000092786&sum=7000 0 [19:35:04]StoreToDocumentArchive [19:35:04]shift 323 fd 34276 [19:35:04]save to /storage/0323/doc_00034276 [19:35:04]save last doc name /storage/0323/doc_00034276 to /storage/kkm_last_doc_name [19:35:04]save OK [19:35:04]Clear old archive folders... [19:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=308 [19:35:04]tlvbuf is 019415A0 [19:35:04]SAM_PROTO_ClearQueue [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 09 00 00 [19:35:04]Write to MH i2c: E2 08 00 23 0E 80 09 00 00 00 00 00 00 A3 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [19:35:04]RAPDU: 90 00 [19:35:04]wFMCommunicate OK [19:35:04]SAM_PROTO_ClearQueue done [19:35:04]KKMCreateOFDPacket [19:35:04]OFDProtocolAddRootSTLVToBuf [19:35:04]FM_MakeSignedData [19:35:04]FM_MakeSignedData [19:35:04]SAM_PROTO_SignData [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 0D 01 02 [19:35:04]Write to MH i2c: E2 08 00 24 0E 80 0D 01 02 00 00 00 00 AB [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [19:35:04]RAPDU: 90 00 [19:35:04]wFMCommunicate OK [19:35:04]wFMCommunicate request_size=255 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 E1 71 66 0E 04 04 00 43 01 00 00 B9 [19:35:04]Write to MH i2c: E2 02 01 25 0E 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 E1 71 66 0E 04 04 00 43 01 00 00 B9 00 00 49 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [19:35:04]RAPDU: 90 00 [19:35:04]wFMCommunicate OK [19:35:04]wFMCommunicate request_size=67 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E4 85 00 00 35 04 06 00 D5 0A 8F C1 6A 5D [19:35:04]Write to MH i2c: E2 46 00 26 0E 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E4 85 00 00 35 04 06 00 D5 0A 8F C1 6A 5D 00 00 6E [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [19:35:04]RAPDU: 90 00 [19:35:04]wFMCommunicate OK [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 0D 03 02 [19:35:04]Write to MH i2c: E2 08 00 27 0E 80 0D 03 02 00 00 00 00 B0 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 0B 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 0B 00 27 0E 00 CF 53 C7 D2 13 17 D6 6B 90 00 D7 [19:35:04]RAPDU: CF 53 C7 D2 13 17 D6 6B 90 00 [19:35:04]wFMCommunicate OK [19:35:04]SAM_PROTO_SignData done [19:35:04]FM_MakeSignedData done [19:35:04]CreateOFDProtocolMessage [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 11 00 00 [19:35:04]Write to MH i2c: E2 08 00 28 0E 80 11 00 00 00 00 00 00 B0 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 17 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 17 00 28 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 05 [19:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:35:04]wFMCommunicate OK [19:35:04]CreateOFDProtocolMessage done [19:35:04]OFDSenderStorePacket 34276 [19:35:04]StoreOFDPacket docnum=34276 [19:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 48 01 00 00 43 37 40 01 74 E2 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 E1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E4 85 00 00 35 04 06 00 D5 0A 8F C1 6A 5D CF 53 C7 D2 13 17 D6 6B [19:35:04]CheckFolder [19:35:04]dirname=/storage/ofd_packets [19:35:04]CheckFolder done [19:35:04]ProducePacketName [19:35:04]name=ofd_packets/00034276 [19:35:04]NVStorageSaveData ofd_packets/00034276 [19:35:04]File name is /storage/ofd_packets/00034276 [19:35:04]Write 358 bytes [19:35:04]NVStorageSaveData done [19:35:04]OFDSenderStorePacket done [19:35:04]KKMCreateOFDPacket done [19:35:04]NVStorageSaveData kkm_last_timestamp [19:35:04]File name is /storage/kkm_last_timestamp [19:35:04]Write 4 bytes [19:35:04]NVStorageSaveData done [19:35:04]ExternCall_PrintAddStr [19:35:04]wPrintStart [19:35:04]Write to MH i2c: 01 00 00 29 0E 37 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 07 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: 01 07 00 29 0E 00 00 00 00 00 FF 0F 4C [19:35:04]RasterBufferAndPrint [19:35:04]line Счет N : (3)184059 [19:35:04]line ИНН: 02508201610067 [19:35:04]line Контрольно-Кассовый Чек [19:35:04]line ПРОДАЖА [19:35:04]line Товар: 4870202521179 [19:35:04]line Чай холодный MAXI черный персик ПЭТ 0,45 [19:35:04]line 1.000 * 70.00 [19:35:04]line = 70.00 [19:35:04]line НДС 12% НСП 1% [19:35:04]line > о реализуемом товаре [19:35:04]line ИТОГО: 70.00 [19:35:04]line НСП 1% : 0.62 [19:35:04]line НДС 12% : 7.43 [19:35:04]line Наличными: 70.00 [19:35:04]line Безнал.: 0.00 [19:35:04]line Место: АЗС № 120 "Партнер Нефть" [19:35:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:35:04]line СНО: Общий режим [19:35:04]line Чек 98 18.06.2024 19:35 [19:35:04]line Смена: 323 ФФД: 1.0 [19:35:04]line ЗНМ: 0300000172 [19:35:04]line РНМ: 0000000000092786 [19:35:04]line Версия ККМ: 001 [19:35:04]line ФМ: 0000000000875095 [19:35:04]line ФД: 34276 [19:35:04]line ФПД: 234241338206813 [19:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193504&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34276&fm=234241338206813&tin=02508201610067®Number=0000000000092786&sum=7000 [19:35:04]line 0 [19:35:04]written 0, free lines is 4095 [19:35:04]OFD Sender: Processing packet 34276 [packets to send 8, broken 7] [19:35:04]ProducePacketName [19:35:04]name=ofd_packets/00034276 [19:35:04]OFD Sender: To server: pG, [19:35:04]CommunicateWithHost lk.salyk.kg:30040 [19:35:04]ConnectInit lk.salyk.kg [19:35:04]Connected sock=10 [19:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 48 01 00 00 43 37 40 01 74 E2 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 E1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E4 85 00 00 35 04 06 00 D5 0A 8F C1 6A 5D CF 53 C7 D2 13 17 D6 6B [19:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BF 04 47 00 A2 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E4 85 00 00 F4 03 04 00 37 88 71 66 B6 04 01 00 00 94 46 BC 8E CD 1C 25 43 [19:35:04]CommunicateWithHost err = 0 [19:35:04]CheckOFDResponse [19:35:04]1017 (14) - 77093643461234 [19:35:04]1041 (16) - 0000000000875095 [19:35:04]1040 (4) - 34276 [19:35:04]1012 (4) - 18.06.2024 13:14 [19:35:04]1206 (1) - 0 [19:35:04]OFD Sender: Remove packet 34276 [19:35:04]ProducePacketName [19:35:04]name=ofd_packets/00034276 [19:35:04]NVStorageDeleteData [19:35:05]Write to MH i2c: 01 00 00 52 0E 60 [19:35:05]Write i2c OK [19:35:05]MH_I2C_Read... [19:35:05]Read from MH i2c: 01 [19:35:05]MH_I2C_Read... [19:35:05]Read from MH i2c: 01 07 00 [19:35:05]MH_I2C_Read... [19:35:05]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 E5 0C 58 [19:35:05]RasterBufferAndPrint [19:35:05]line [19:35:05]line [19:35:05]line [19:35:05]line [19:35:05]line [19:35:05]written 0, free lines is 3310 [19:35:05]MH_Cut [19:35:05]Write to MH i2c: D1 01 00 59 0E 01 39 [19:35:05]Write i2c OK [19:35:05]MH_I2C_Read... [19:35:05]Read from MH i2c: D1 [19:35:05]MH_I2C_Read... [19:35:05]Read from MH i2c: D1 01 00 [19:35:05]MH_I2C_Read... [19:35:05]Read from MH i2c: D1 01 00 59 0E 00 38 [19:35:05]Write to MH i2c: 01 00 00 5A 0E 68 [19:35:05]Write i2c OK [19:35:05]MH_I2C_Read... [19:35:05]OFD Sender: No OFD packet to send [19:35:05]*** Cut start [19:35:05]*** Partial cut [19:35:05]*** CUTSNS_PIN = 1 [19:35:05]*** CUTSNS_PIN = 0 [19:35:06]*** Brake cut motor [19:35:06]Read from MH i2c: 01 [19:35:06]MH_I2C_Read... [19:35:06]*** Stop cut motor [19:35:06]*** Cut end [19:35:06]Read from MH i2c: 01 07 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 FF 0F 7D [19:35:06]process_action close_receipt done [19:35:06]requested_data is exist [19:35:06]produce_requested_data [19:35:06]requested_item fm.sn is exist - process it [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 11 00 00 [19:35:06]Write to MH i2c: E2 08 00 5B 0E 80 11 00 00 00 00 00 00 E3 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 17 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 17 00 5B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 38 [19:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:35:06]wFMCommunicate OK [19:35:06]requested_item fd.num is exist - process it [19:35:06]SAM_PROTO_GetFieldsCounters [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 13 00 00 [19:35:06]Write to MH i2c: E2 08 00 5C 0E 80 13 00 00 00 00 00 00 E6 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 62 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 62 00 5C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E4 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E4 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:06]wFMCommunicate OK [19:35:06]SAM_PROTO_GetFieldsCounters done [19:35:06]requested_item shift.num is exist - process it [19:35:06]requested_item shift.opened is exist - process it [19:35:06]req_shift_opened [19:35:06]FM_GetShiftState [19:35:06]SAM_PROTO_GetShiftState [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 13 01 00 [19:35:06]Write to MH i2c: E2 08 00 5D 0E 80 13 01 00 00 00 00 00 E8 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:06]Read from MH i2c: E2 0E 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 0E 00 5D 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 33 [19:35:06]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:35:06]wFMCommunicate OK [19:35:06]SAM_PROTO_GetShiftState done [19:35:06]FM_GetShiftState done [19:35:06]req_shift_opened done [19:35:06]requested_item shift.open_date is exist - process it [19:35:06]req_shift_open_date [19:35:06]req_shift_open_date done [19:35:06]produce_requested_data done [19:35:06]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34276,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [19:35:06]process_action_free close_receipt [19:35:06]json_value_free [19:35:06]json_value_free done [19:35:06]process_json_proto returns [19:35:06]Send response to host [19:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34276,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [19:35:06]free response buf [19:35:06]execute_script done [19:35:06]execute_script returns [19:35:06]free content buf [19:35:06]Sock 7.Close socket [19:35:06]Sock 7.Thread stoped [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:08]accept exits with 9 [19:36:08]New connection [19:36:08]New thread 3067424100 created [19:36:08]Thread 3067567460 joined [19:36:08]Waiting for new connection... [19:36:08] Sock 9.Parse request [19:36:08]Sock 9.Check first char [19:36:08]Sock 9.First char is OK [19:36:08]request: POST /json_proto HTTP/1.0 [19:36:08]Method: POST [19:36:08]URL: /json_proto [19:36:08]Method is POST - this is cgi request [19:36:08]url: /json_proto [19:36:08]query_string will be loaded in cgi processing [19:36:08]execute_cgi json_proto POST (null) [19:36:08]execute_cgi path=json_proto method=POST [19:36:08]POST find Content-Length [19:36:08]Host: 172.17.38.134:8080 [19:36:08]Content-Length: 709 [19:36:08]Content-Type: application/json [19:36:08] [19:36:08]POST finish read [19:36:08]Found Content-Length = 709 [19:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184060", "tax_sys" : 0, "items" : [ { "code": "8690504035503", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:08]execute_script... [19:36: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 : (3)184060", "tax_sys" : 0, "items" : [ { "code": "8690504035503", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:08]POST & json_proto [19:36:08]process_json_proto [19:36:08]json parsed OK: [19:36:08]protocol is kg_v1.0 [19:36:08]action value=close_receipt [19:36:08]process_action close_receipt [19:36:08]cmd_close_receipt [19:36:08]MH_GetDate [19:36:08]Write to MH i2c: F0 00 00 5E 0E 5B [19:36:08]Write i2c OK [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: F0 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: F0 09 00 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: F0 09 00 5E 0E 00 AA E1 71 66 13 9C 7C 64 55 [19:36:08]GetLastDocTimeStamp 1718739304 [19:36:08]current date 1718739370 [19:36:08]FM_GetShiftState [19:36:08]SAM_PROTO_GetShiftState [19:36:08]wFMCommunicate request_size=4 [19:36:08]MH_SAM_APDU [19:36:08]CAPDU: 80 13 01 00 [19:36:08]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [19:36:08]Write i2c OK [19:36:08]MH_I2C_Read... [19:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:08]Read from MH i2c: E2 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: E2 0E 00 [19:36:08]MH_I2C_Read... [19:36:08]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 35 [19:36:08]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:36:08]wFMCommunicate OK [19:36:08]SAM_PROTO_GetShiftState done [19:36:08]FM_GetShiftState done [19:36:08]opened in 1718670230 [19:36:08]opened+sec_in_day 1718756630 [19:36:08]quantity*price = 7500 [19:36:08]sum+1 = 7501 [19:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 99 18.06.2024 19:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34277 ФПД: 62861656164318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193610&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34277&fm=62861656164318&tin=02508201610067®Number=0000000000092786&sum=7500 0 [19:36:09]StoreToDocumentArchive [19:36:09]shift 323 fd 34277 [19:36:09]save to /storage/0323/doc_00034277 [19:36:09]save last doc name /storage/0323/doc_00034277 to /storage/kkm_last_doc_name [19:36:09]save OK [19:36:09]Clear old archive folders... [19:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=304 [19:36:09]tlvbuf is 01940DA0 [19:36:09]SAM_PROTO_ClearQueue [19:36:09]wFMCommunicate request_size=4 [19:36:09]MH_SAM_APDU [19:36:09]CAPDU: 80 09 00 00 [19:36:09]Write to MH i2c: E2 08 00 6C 0E 80 09 00 00 00 00 00 00 EC [19:36:09]Write i2c OK [19:36:09]MH_I2C_Read... [19:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:09]Read from MH i2c: E2 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 03 00 [19:36:09]MH_I2C_Read... [19:36:09]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [19:36:09]RAPDU: 90 00 [19:36:09]wFMCommunicate OK [19:36:09]SAM_PROTO_ClearQueue done [19:36:09]KKMCreateOFDPacket [19:36:09]OFDProtocolAddRootSTLVToBuf [19:36:09]FM_MakeSignedData [19:36:09]FM_MakeSignedData [19:36:09]SAM_PROTO_SignData [19:36:09]wFMCommunicate request_size=4 [19:36:09]MH_SAM_APDU [19:36:09]CAPDU: 80 0D 01 02 [19:36:09]Write to MH i2c: E2 08 00 6D 0E 80 0D 01 02 00 00 00 00 F4 [19:36:09]Write i2c OK [19:36:09]MH_I2C_Read... [19:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:10]Read from MH i2c: E2 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 03 00 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [19:36:10]RAPDU: 90 00 [19:36:10]wFMCommunicate OK [19:36:10]wFMCommunicate request_size=255 [19:36:10]MH_SAM_APDU [19:36:10]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AA E1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 [19:36:10]Write to MH i2c: E2 02 01 6E 0E 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AA E1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 00 00 C3 [19:36:10]Write i2c OK [19:36:10]MH_I2C_Read... [19:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:10]Read from MH i2c: E2 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 03 00 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [19:36:10]RAPDU: 90 00 [19:36:10]wFMCommunicate OK [19:36:10]wFMCommunicate request_size=63 [19:36:10]MH_SAM_APDU [19:36:10]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E5 85 00 00 35 04 06 00 39 2C 1E AF 87 DE [19:36:10]Write to MH i2c: E2 42 00 6F 0E 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E5 85 00 00 35 04 06 00 39 2C 1E AF 87 DE 00 00 4B [19:36:10]Write i2c OK [19:36:10]MH_I2C_Read... [19:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:10]Read from MH i2c: E2 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 03 00 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [19:36:10]RAPDU: 90 00 [19:36:10]wFMCommunicate OK [19:36:10]wFMCommunicate request_size=4 [19:36:10]MH_SAM_APDU [19:36:10]CAPDU: 80 0D 03 02 [19:36:10]Write to MH i2c: E2 08 00 70 0E 80 0D 03 02 00 00 00 00 F9 [19:36:10]Write i2c OK [19:36:10]MH_I2C_Read... [19:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:10]Read from MH i2c: E2 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 0B 00 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 0B 00 70 0E 00 FE 57 43 48 53 C3 9F 66 90 00 F5 [19:36:10]RAPDU: FE 57 43 48 53 C3 9F 66 90 00 [19:36:10]wFMCommunicate OK [19:36:10]SAM_PROTO_SignData done [19:36:10]FM_MakeSignedData done [19:36:10]CreateOFDProtocolMessage [19:36:10]wFMCommunicate request_size=4 [19:36:10]MH_SAM_APDU [19:36:10]CAPDU: 80 11 00 00 [19:36:10]Write to MH i2c: E2 08 00 71 0E 80 11 00 00 00 00 00 00 F9 [19:36:10]Write i2c OK [19:36:10]MH_I2C_Read... [19:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:10]Read from MH i2c: E2 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 17 00 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: E2 17 00 71 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4E [19:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:36:10]wFMCommunicate OK [19:36:10]CreateOFDProtocolMessage done [19:36:10]OFDSenderStorePacket 34277 [19:36:10]StoreOFDPacket docnum=34277 [19:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 CC 5C 3C 01 93 E3 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AA E1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E5 85 00 00 35 04 06 00 39 2C 1E AF 87 DE FE 57 43 48 53 C3 9F 66 [19:36:10]CheckFolder [19:36:10]dirname=/storage/ofd_packets [19:36:10]CheckFolder done [19:36:10]ProducePacketName [19:36:10]name=ofd_packets/00034277 [19:36:10]NVStorageSaveData ofd_packets/00034277 [19:36:10]File name is /storage/ofd_packets/00034277 [19:36:10]Write 354 bytes [19:36:10]NVStorageSaveData done [19:36:10]OFDSenderStorePacket done [19:36:10]KKMCreateOFDPacket done [19:36:10]NVStorageSaveData kkm_last_timestamp [19:36:10]File name is /storage/kkm_last_timestamp [19:36:10]Write 4 bytes [19:36:10]NVStorageSaveData done [19:36:10]OFD Sender: Processing packet 34277 [packets to send 8, broken 7] [19:36:10]ProducePacketName [19:36:10]name=ofd_packets/00034277 [19:36:10]OFD Sender: To server: pG, [19:36:10]CommunicateWithHost lk.salyk.kg:30040 [19:36:10]ConnectInit lk.salyk.kg [19:36:10]ExternCall_PrintAddStr [19:36:10]wPrintStart [19:36:10]Write to MH i2c: 01 00 00 72 0E 80 [19:36:10]Write i2c OK [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: 01 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: 01 07 00 [19:36:10]MH_I2C_Read... [19:36:10]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [19:36:10]RasterBufferAndPrint [19:36:10]line Счет N : (3)184060 [19:36:10]line ИНН: 02508201610067 [19:36:10]line Контрольно-Кассовый Чек [19:36:10]line ПРОДАЖА [19:36:10]line Товар: 8690504035503 [19:36:10]line Шок батончик ALBENI SUPER Альбени Супер [19:36:10]line 1.000 * 75.00 [19:36:10]line = 75.00 [19:36:10]line НДС 12% НСП 1% [19:36:10]line > о реализуемом товаре [19:36:10]line ИТОГО: 75.00 [19:36:10]line НСП 1% : 0.66 [19:36:10]line НДС 12% : 7.96 [19:36:10]line Наличными: 75.00 [19:36:10]line Безнал.: 0.00 [19:36:10]line Место: АЗС № 120 "Партнер Нефть" [19:36:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:36:10]line СНО: Общий режим [19:36:10]line Чек 99 18.06.2024 19:36 [19:36:10]line Смена: 323 ФФД: 1.0 [19:36:10]line ЗНМ: 0300000172 [19:36:10]line РНМ: 0000000000092786 [19:36:10]line Версия ККМ: 001 [19:36:10]line ФМ: 0000000000875095 [19:36:10]line ФД: 34277 [19:36:10]line ФПД: 62861656164318 [19:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T193610&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34277&fm=62861656164318&tin=02508201610067®Number=0000000000092786&sum=7500 [19:36:10]line 0 [19:36:10]Connected sock=11 [19:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 CC 5C 3C 01 93 E3 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 AA E1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E5 85 00 00 35 04 06 00 39 2C 1E AF 87 DE FE 57 43 48 53 C3 9F 66 [19:36:10]written 0, free lines is 4095 [19:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 73 F8 47 00 EA 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E5 85 00 00 F4 03 04 00 79 88 71 66 B6 04 01 00 00 FE A6 B4 52 29 71 B0 99 [19:36:11]CommunicateWithHost err = 0 [19:36:11]CheckOFDResponse [19:36:11]1017 (14) - 77093643461234 [19:36:11]1041 (16) - 0000000000875095 [19:36:11]1040 (4) - 34277 [19:36:11]1012 (4) - 18.06.2024 13:15 [19:36:11]1206 (1) - 0 [19:36:11]OFD Sender: Remove packet 34277 [19:36:11]ProducePacketName [19:36:11]name=ofd_packets/00034277 [19:36:11]NVStorageDeleteData [19:36:11]Write to MH i2c: 01 00 00 9B 0E A9 [19:36:11]Write i2c OK [19:36:11]MH_I2C_Read... [19:36:11]Read from MH i2c: 01 [19:36:11]MH_I2C_Read... [19:36:11]Read from MH i2c: 01 07 00 [19:36:11]MH_I2C_Read... [19:36:11]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 E6 0C A2 [19:36:11]RasterBufferAndPrint [19:36:11]line [19:36:11]line [19:36:11]line [19:36:11]line [19:36:11]line [19:36:11]written 0, free lines is 3308 [19:36:11]MH_Cut [19:36:11]Write to MH i2c: D1 01 00 A2 0E 01 82 [19:36:11]Write i2c OK [19:36:11]MH_I2C_Read... [19:36:11]Read from MH i2c: D1 [19:36:11]MH_I2C_Read... [19:36:11]Read from MH i2c: D1 01 00 [19:36:11]MH_I2C_Read... [19:36:11]Read from MH i2c: D1 01 00 A2 0E 00 81 [19:36:11]Write to MH i2c: 01 00 00 A3 0E B1 [19:36:11]Write i2c OK [19:36:11]MH_I2C_Read... [19:36:11]OFD Sender: No OFD packet to send [19:36:12]*** Cut start [19:36:12]*** Partial cut [19:36:12]*** CUTSNS_PIN = 1 [19:36:12]*** CUTSNS_PIN = 0 [19:36:12]*** Brake cut motor [19:36:12]Read from MH i2c: 01 [19:36:12]MH_I2C_Read... [19:36:12]*** Stop cut motor [19:36:12]*** Cut end [19:36:12]Read from MH i2c: 01 07 00 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 FF 0F C6 [19:36:12]process_action close_receipt done [19:36:12]requested_data is exist [19:36:12]produce_requested_data [19:36:12]requested_item fm.sn is exist - process it [19:36:12]wFMCommunicate request_size=4 [19:36:12]MH_SAM_APDU [19:36:12]CAPDU: 80 11 00 00 [19:36:12]Write to MH i2c: E2 08 00 A4 0E 80 11 00 00 00 00 00 00 2C [19:36:12]Write i2c OK [19:36:12]MH_I2C_Read... [19:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:12]Read from MH i2c: E2 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: E2 17 00 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: E2 17 00 A4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 81 [19:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [19:36:12]wFMCommunicate OK [19:36:12]requested_item fd.num is exist - process it [19:36:12]SAM_PROTO_GetFieldsCounters [19:36:12]wFMCommunicate request_size=4 [19:36:12]MH_SAM_APDU [19:36:12]CAPDU: 80 13 00 00 [19:36:12]Write to MH i2c: E2 08 00 A5 0E 80 13 00 00 00 00 00 00 2F [19:36:12]Write i2c OK [19:36:12]MH_I2C_Read... [19:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:12]Read from MH i2c: E2 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: E2 62 00 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: E2 62 00 A5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [19:36:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:12]wFMCommunicate OK [19:36:12]SAM_PROTO_GetFieldsCounters done [19:36:12]requested_item shift.num is exist - process it [19:36:12]requested_item shift.opened is exist - process it [19:36:12]req_shift_opened [19:36:12]FM_GetShiftState [19:36:12]SAM_PROTO_GetShiftState [19:36:12]wFMCommunicate request_size=4 [19:36:12]MH_SAM_APDU [19:36:12]CAPDU: 80 13 01 00 [19:36:12]Write to MH i2c: E2 08 00 A6 0E 80 13 01 00 00 00 00 00 31 [19:36:12]Write i2c OK [19:36:12]MH_I2C_Read... [19:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:12]Read from MH i2c: E2 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: E2 0E 00 [19:36:12]MH_I2C_Read... [19:36:12]Read from MH i2c: E2 0E 00 A6 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 7C [19:36:12]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [19:36:12]wFMCommunicate OK [19:36:12]SAM_PROTO_GetShiftState done [19:36:12]FM_GetShiftState done [19:36:12]req_shift_opened done [19:36:12]requested_item shift.open_date is exist - process it [19:36:12]req_shift_open_date [19:36:12]req_shift_open_date done [19:36:12]produce_requested_data done [19:36:12]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34277,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [19:36:12]process_action_free close_receipt [19:36:12]json_value_free [19:36:12]json_value_free done [19:36:12]process_json_proto returns [19:36:12]Send response to host [19:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34277,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [19:36:12]free response buf [19:36:12]execute_script done [19:36:12]execute_script returns [19:36:12]free content buf [19:36:12]Sock 9.Close socket [19:36:12]Sock 9.Thread stoped [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [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:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17: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:22]accept exits with 7 [20:18:22]New connection [20:18:22]New thread 3067567460 created [20:18:22]Thread 3067424100 joined [20:18:22]Waiting for new connection... [20:18:22] Sock 7.Parse request [20:18:22]Sock 7.Check first char [20:18:22]Sock 7.First char is OK [20:18:22]request: POST /json_proto HTTP/1.0 [20:18:22]Method: POST [20:18:22]URL: /json_proto [20:18:22]Method is POST - this is cgi request [20:18:22]url: /json_proto [20:18:22]query_string will be loaded in cgi processing [20:18:22]execute_cgi json_proto POST (null) [20:18:22]execute_cgi path=json_proto method=POST [20:18:22]POST find Content-Length [20:18:22]Host: 172.17.38.134:8080 [20:18:22]Content-Length: 943 [20:18:22]Content-Type: application/json [20:18:22] [20:18:22]POST finish read [20:18:22]Found Content-Length = 943 [20:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184061", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:22]execute_script... [20:18: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 : (3)184061", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:22]POST & json_proto [20:18:22]process_json_proto [20:18:22]json parsed OK: [20:18:22]protocol is kg_v1.0 [20:18:22]action value=close_receipt [20:18:22]process_action close_receipt [20:18:22]cmd_close_receipt [20:18:22]MH_GetDate [20:18:22]Write to MH i2c: F0 00 00 A7 0E A4 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: F0 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: F0 09 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: F0 09 00 A7 0E 00 8F EB 71 66 13 9C 7C 64 8D [20:18:22]GetLastDocTimeStamp 1718739370 [20:18:22]current date 1718741903 [20:18:22]FM_GetShiftState [20:18:22]SAM_PROTO_GetShiftState [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 13 01 00 [20:18:22]Write to MH i2c: E2 08 00 A8 0E 80 13 01 00 00 00 00 00 33 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0E 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0E 00 A8 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 7E [20:18:22]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:18:22]wFMCommunicate OK [20:18:22]SAM_PROTO_GetShiftState done [20:18:22]FM_GetShiftState done [20:18:22]opened in 1718670230 [20:18:22]opened+sec_in_day 1718756630 [20:18:22]quantity*price = 20500 [20:18:22]sum+1 = 20501 [20:18:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 100 18.06.2024 20:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34278 ФПД: 205863324964098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T201823&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34278&fm=205863324964098&tin=02508201610067®Number=0000000000092786&sum=30000 0 [20:18:23]StoreToDocumentArchive [20:18:23]shift 323 fd 34278 [20:18:23]save to /storage/0323/doc_00034278 [20:18:23]save last doc name /storage/0323/doc_00034278 to /storage/kkm_last_doc_name [20:18:23]save OK [20:18:23]Clear old archive folders... [20:18:23]ProcessDocumentItem done err = 0, tmpTLVsize=399 [20:18:23]tlvbuf is 018F8D90 [20:18:23]SAM_PROTO_ClearQueue [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 09 00 00 [20:18:23]Write to MH i2c: E2 08 00 B5 0E 80 09 00 00 00 00 00 00 35 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [20:18:23]RAPDU: 90 00 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_ClearQueue done [20:18:23]KKMCreateOFDPacket [20:18:23]OFDProtocolAddRootSTLVToBuf [20:18:23]FM_MakeSignedData [20:18:23]FM_MakeSignedData [20:18:23]SAM_PROTO_SignData [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 0D 01 02 [20:18:23]Write to MH i2c: E2 08 00 B6 0E 80 0D 01 02 00 00 00 00 3D [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [20:18:23]RAPDU: 90 00 [20:18:23]wFMCommunicate OK [20:18:23]wFMCommunicate request_size=255 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 [20:18:23]Write to MH i2c: E2 02 01 B7 0E 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 00 00 41 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:23]OFD Sender: No OFD packet to send [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [20:18:23]RAPDU: 90 00 [20:18:23]wFMCommunicate OK [20:18:23]wFMCommunicate request_size=158 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E6 85 00 00 35 04 06 00 BB 3B 4A 5B 55 02 [20:18:23]Write to MH i2c: E2 A1 00 B8 0E 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E6 85 00 00 35 04 06 00 BB 3B 4A 5B 55 02 00 00 4D [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [20:18:23]RAPDU: 90 00 [20:18:23]wFMCommunicate OK [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 0D 03 02 [20:18:23]Write to MH i2c: E2 08 00 B9 0E 80 0D 03 02 00 00 00 00 42 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 0B 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 0B 00 B9 0E 00 F2 3F 04 E8 F3 29 15 77 90 00 08 [20:18:23]RAPDU: F2 3F 04 E8 F3 29 15 77 90 00 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_SignData done [20:18:23]FM_MakeSignedData done [20:18:23]CreateOFDProtocolMessage [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 11 00 00 [20:18:23]Write to MH i2c: E2 08 00 BA 0E 80 11 00 00 00 00 00 00 42 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 17 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 17 00 BA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 97 [20:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:18:23]wFMCommunicate OK [20:18:23]CreateOFDProtocolMessage done [20:18:23]OFDSenderStorePacket 34278 [20:18:23]StoreOFDPacket docnum=34278 [20:18:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A3 01 00 00 EB D8 9B 01 F4 D0 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E6 85 00 00 35 04 06 00 BB 3B 4A 5B 55 02 F2 3F 04 E8 F3 29 15 77 [20:18:23]CheckFolder [20:18:23]dirname=/storage/ofd_packets [20:18:23]CheckFolder done [20:18:23]ProducePacketName [20:18:23]name=ofd_packets/00034278 [20:18:23]NVStorageSaveData ofd_packets/00034278 [20:18:23]File name is /storage/ofd_packets/00034278 [20:18:23]Write 449 bytes [20:18:23]NVStorageSaveData done [20:18:23]OFDSenderStorePacket done [20:18:23]KKMCreateOFDPacket done [20:18:23]NVStorageSaveData kkm_last_timestamp [20:18:23]File name is /storage/kkm_last_timestamp [20:18:23]Write 4 bytes [20:18:23]NVStorageSaveData done [20:18:23]ExternCall_PrintAddStr [20:18:23]wPrintStart [20:18:23]Write to MH i2c: 01 00 00 BB 0E C9 [20:18:24]OFD Sender: Processing packet 34278 [packets to send 8, broken 7] [20:18:24]ProducePacketName [20:18:24]name=ofd_packets/00034278 [20:18:24]OFD Sender: To server: pG, [20:18:24]CommunicateWithHost lk.salyk.kg:30040 [20:18:24]Write i2c OK [20:18:24]ConnectInit lk.salyk.kg [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 BB 0E 00 00 00 00 00 FF 0F DE [20:18:24]RasterBufferAndPrint [20:18:24]line Счет N : (3)184061 [20:18:24]line ИНН: 02508201610067 [20:18:24]line Контрольно-Кассовый Чек [20:18:24]line ПРОДАЖА [20:18:24]line Товар: 4602441000609 [20:18:24]line Напит Дюшес 1л стекло [20:18:24]line 1.000 * 205.00 [20:18:24]line = 205.00 [20:18:24]line НДС 12% НСП 1% [20:18:24]line > о реализуемом товаре [20:18:24]line Товар: 5449000176431 [20:18:24]line Сок Piko Pulpy апельсин ПЭТ 0,5л [20:18:24]line 1.000 * 95.00 [20:18:24]line = 95.00 [20:18:24]line НДС 12% НСП 1% [20:18:24]line > о реализуемом товаре [20:18:24]line ИТОГО: 300.00 [20:18:24]line НСП 1% : 2.65 [20:18:24]line НДС 12% : 31.86 [20:18:24]line Наличными: 300.00 [20:18:24]line Безнал.: 0.00 [20:18:24]line Место: АЗС № 120 "Партнер Нефть" [20:18:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:18:24]line СНО: Общий режим [20:18:24]line Чек 100 18.06.2024 20:18 [20:18:24]line Смена: 323 ФФД: 1.0 [20:18:24]line ЗНМ: 0300000172 [20:18:24]line РНМ: 0000000000092786 [20:18:24]line Версия ККМ: 001 [20:18:24]line ФМ: 0000000000875095 [20:18:24]line ФД: 34278 [20:18:24]line ФПД: 205863324964098 [20:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T201823&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34278&fm=205863324964098&tin=02508201610067®Number=0000000000092786&sum=30000 [20:18:24]line 0 [20:18:24]written 0, free lines is 4095 [20:18:24]Connected sock=10 [20:18:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A3 01 00 00 EB D8 9B 01 F4 D0 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8F EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E6 85 00 00 35 04 06 00 BB 3B 4A 5B 55 02 F2 3F 04 E8 F3 29 15 77 [20:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 0B 9D 47 00 7A 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E6 85 00 00 F4 03 04 00 5E 92 71 66 B6 04 01 00 00 A4 AF 45 C5 B8 58 5F FF [20:18:24]CommunicateWithHost err = 0 [20:18:24]CheckOFDResponse [20:18:24]1017 (14) - 77093643461234 [20:18:24]1041 (16) - 0000000000875095 [20:18:24]1040 (4) - 34278 [20:18:24]1012 (4) - 18.06.2024 13:57 [20:18:24]1206 (1) - 0 [20:18:24]OFD Sender: Remove packet 34278 [20:18:24]ProducePacketName [20:18:24]name=ofd_packets/00034278 [20:18:24]NVStorageDeleteData [20:18:24]Write to MH i2c: 01 00 00 EA 0E F8 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 98 0C A3 [20:18:24]RasterBufferAndPrint [20:18:24]line [20:18:24]line [20:18:24]line [20:18:24]line [20:18:24]line [20:18:24]written 0, free lines is 3230 [20:18:24]MH_Cut [20:18:24]Write to MH i2c: D1 01 00 F1 0E 01 D1 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: D1 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: D1 01 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: D1 01 00 F1 0E 00 D0 [20:18:24]Write to MH i2c: 01 00 00 F2 0E 00 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:25]OFD Sender: No OFD packet to send [20:18:25]*** Cut start [20:18:25]*** Partial cut [20:18:25]*** CUTSNS_PIN = 1 [20:18:25]*** CUTSNS_PIN = 0 [20:18:25]*** Brake cut motor [20:18:26]Read from MH i2c: 01 [20:18:26]MH_I2C_Read... [20:18:26]*** Stop cut motor [20:18:26]*** Cut end [20:18:26]Read from MH i2c: 01 07 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 FF 0F 15 [20:18:26]process_action close_receipt done [20:18:26]requested_data is exist [20:18:26]produce_requested_data [20:18:26]requested_item fm.sn is exist - process it [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 11 00 00 [20:18:26]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 17 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D0 [20:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:18:26]wFMCommunicate OK [20:18:26]requested_item fd.num is exist - process it [20:18:26]SAM_PROTO_GetFieldsCounters [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 13 00 00 [20:18:26]Write to MH i2c: E2 08 00 F4 0E 80 13 00 00 00 00 00 00 7E [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 62 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 62 00 F4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:18:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:26]wFMCommunicate OK [20:18:26]SAM_PROTO_GetFieldsCounters done [20:18:26]requested_item shift.num is exist - process it [20:18:26]requested_item shift.opened is exist - process it [20:18:26]req_shift_opened [20:18:26]FM_GetShiftState [20:18:26]SAM_PROTO_GetShiftState [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 13 01 00 [20:18:26]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 0E 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CB [20:18:26]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:18:26]wFMCommunicate OK [20:18:26]SAM_PROTO_GetShiftState done [20:18:26]FM_GetShiftState done [20:18:26]req_shift_opened done [20:18:26]requested_item shift.open_date is exist - process it [20:18:26]req_shift_open_date [20:18:26]req_shift_open_date done [20:18:26]produce_requested_data done [20:18:26]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34278,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [20:18:26]process_action_free close_receipt [20:18:26]json_value_free [20:18:26]json_value_free done [20:18:26]process_json_proto returns [20:18:26]Send response to host [20:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34278,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [20:18:26]free response buf [20:18:26]execute_script done [20:18:26]execute_script returns [20:18:26]free content buf [20:18:26]Sock 7.Close socket [20:18:26]Sock 7.Thread stoped [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:35]accept exits with 9 [20:18:35]New connection [20:18:35]New thread 3067424100 created [20:18:35]Thread 3067567460 joined [20:18:35]Waiting for new connection... [20:18:35] Sock 9.Parse request [20:18:35]Sock 9.Check first char [20:18:35]Sock 9.First char is OK [20:18:35]request: POST /json_proto HTTP/1.0 [20:18:35]Method: POST [20:18:35]URL: /json_proto [20:18:35]Method is POST - this is cgi request [20:18:35]url: /json_proto [20:18:35]query_string will be loaded in cgi processing [20:18:35]execute_cgi json_proto POST (null) [20:18:35]execute_cgi path=json_proto method=POST [20:18:35]POST find Content-Length [20:18:35]Host: 172.17.38.134:8080 [20:18:35]Content-Length: 709 [20:18:35]Content-Type: application/json [20:18:35] [20:18:35]POST finish read [20:18:35]Found Content-Length = 709 [20:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184062", "tax_sys" : 0, "items" : [ { "code": "8690504035503", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:35]execute_script... [20:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184062", "tax_sys" : 0, "items" : [ { "code": "8690504035503", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:35]POST & json_proto [20:18:35]process_json_proto [20:18:35]json parsed OK: [20:18:35]protocol is kg_v1.0 [20:18:35]action value=close_receipt [20:18:35]process_action close_receipt [20:18:35]cmd_close_receipt [20:18:35]MH_GetDate [20:18:35]Write to MH i2c: F0 00 00 F6 0E F3 [20:18:35]Write i2c OK [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: F0 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: F0 09 00 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: F0 09 00 F6 0E 00 9D EB 71 66 13 9C 7C 64 EA [20:18:35]GetLastDocTimeStamp 1718741903 [20:18:35]current date 1718741917 [20:18:35]FM_GetShiftState [20:18:35]SAM_PROTO_GetShiftState [20:18:35]wFMCommunicate request_size=4 [20:18:35]MH_SAM_APDU [20:18:35]CAPDU: 80 13 01 00 [20:18:35]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [20:18:35]Write i2c OK [20:18:35]MH_I2C_Read... [20:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:35]Read from MH i2c: E2 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 0E 00 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CD [20:18:35]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:18:35]wFMCommunicate OK [20:18:35]SAM_PROTO_GetShiftState done [20:18:35]FM_GetShiftState done [20:18:35]opened in 1718670230 [20:18:35]opened+sec_in_day 1718756630 [20:18:35]quantity*price = 7500 [20:18:35]sum+1 = 7501 [20:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 101 18.06.2024 20:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34279 ФПД: 4451786830425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T201837&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34279&fm=4451786830425&tin=02508201610067®Number=0000000000092786&sum=7500 0 [20:18:36]StoreToDocumentArchive [20:18:36]shift 323 fd 34279 [20:18:36]save to /storage/0323/doc_00034279 [20:18:36]save last doc name /storage/0323/doc_00034279 to /storage/kkm_last_doc_name [20:18:36]save OK [20:18:36]Clear old archive folders... [20:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=304 [20:18:36]tlvbuf is 018E6B20 [20:18:36]SAM_PROTO_ClearQueue [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 09 00 00 [20:18:36]Write to MH i2c: E2 08 00 04 0F 80 09 00 00 00 00 00 00 85 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [20:18:36]RAPDU: 90 00 [20:18:36]wFMCommunicate OK [20:18:36]SAM_PROTO_ClearQueue done [20:18:36]KKMCreateOFDPacket [20:18:36]OFDProtocolAddRootSTLVToBuf [20:18:36]FM_MakeSignedData [20:18:36]FM_MakeSignedData [20:18:36]SAM_PROTO_SignData [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 0D 01 02 [20:18:36]Write to MH i2c: E2 08 00 05 0F 80 0D 01 02 00 00 00 00 8D [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [20:18:36]RAPDU: 90 00 [20:18:36]wFMCommunicate OK [20:18:36]wFMCommunicate request_size=255 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 [20:18:36]Write to MH i2c: E2 02 01 06 0F 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 00 00 5B [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:37]Read from MH i2c: E2 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 03 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [20:18:37]RAPDU: 90 00 [20:18:37]wFMCommunicate OK [20:18:37]wFMCommunicate request_size=63 [20:18:37]MH_SAM_APDU [20:18:37]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E7 85 00 00 35 04 06 00 04 0C 83 2C 32 59 [20:18:37]Write to MH i2c: E2 42 00 07 0F 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E7 85 00 00 35 04 06 00 04 0C 83 2C 32 59 00 00 99 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:37]Read from MH i2c: E2 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 03 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [20:18:37]RAPDU: 90 00 [20:18:37]wFMCommunicate OK [20:18:37]wFMCommunicate request_size=4 [20:18:37]MH_SAM_APDU [20:18:37]CAPDU: 80 0D 03 02 [20:18:37]Write to MH i2c: E2 08 00 08 0F 80 0D 03 02 00 00 00 00 92 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:37]Read from MH i2c: E2 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 0B 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 0B 00 08 0F 00 17 8D 59 54 74 C2 AA FB 90 00 BF [20:18:37]RAPDU: 17 8D 59 54 74 C2 AA FB 90 00 [20:18:37]wFMCommunicate OK [20:18:37]SAM_PROTO_SignData done [20:18:37]FM_MakeSignedData done [20:18:37]CreateOFDProtocolMessage [20:18:37]wFMCommunicate request_size=4 [20:18:37]MH_SAM_APDU [20:18:37]CAPDU: 80 11 00 00 [20:18:37]Write to MH i2c: E2 08 00 09 0F 80 11 00 00 00 00 00 00 92 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:37]Read from MH i2c: E2 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 17 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 17 00 09 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 E7 [20:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:18:37]wFMCommunicate OK [20:18:37]CreateOFDProtocolMessage done [20:18:37]OFDSenderStorePacket 34279 [20:18:37]StoreOFDPacket docnum=34279 [20:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 4A 43 3C 01 FD BC 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E7 85 00 00 35 04 06 00 04 0C 83 2C 32 59 17 8D 59 54 74 C2 AA FB [20:18:37]CheckFolder [20:18:37]dirname=/storage/ofd_packets [20:18:37]CheckFolder done [20:18:37]ProducePacketName [20:18:37]name=ofd_packets/00034279 [20:18:37]NVStorageSaveData ofd_packets/00034279 [20:18:37]File name is /storage/ofd_packets/00034279 [20:18:37]Write 354 bytes [20:18:37]NVStorageSaveData done [20:18:37]OFDSenderStorePacket done [20:18:37]KKMCreateOFDPacket done [20:18:37]NVStorageSaveData kkm_last_timestamp [20:18:37]File name is /storage/kkm_last_timestamp [20:18:37]Write 4 bytes [20:18:37]NVStorageSaveData done [20:18:37]ExternCall_PrintAddStr [20:18:37]wPrintStart [20:18:37]Write to MH i2c: 01 00 00 0A 0F 19 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: 01 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: 01 07 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 FF 0F 2E [20:18:37]RasterBufferAndPrint [20:18:37]line Счет N : (3)184062 [20:18:37]line ИНН: 02508201610067 [20:18:37]line Контрольно-Кассовый Чек [20:18:37]line ПРОДАЖА [20:18:37]line Товар: 8690504035503 [20:18:37]line Шок батончик ALBENI SUPER Альбени Супер [20:18:37]line 1.000 * 75.00 [20:18:37]line = 75.00 [20:18:37]line НДС 12% НСП 1% [20:18:37]line > о реализуемом товаре [20:18:37]line ИТОГО: 75.00 [20:18:37]line НСП 1% : 0.66 [20:18:37]line НДС 12% : 7.96 [20:18:37]line Наличными: 75.00 [20:18:37]line Безнал.: 0.00 [20:18:37]line Место: АЗС № 120 "Партнер Нефть" [20:18:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:18:37]line СНО: Общий режим [20:18:37]line Чек 101 18.06.2024 20:18 [20:18:37]line Смена: 323 ФФД: 1.0 [20:18:37]line ЗНМ: 0300000172 [20:18:37]line РНМ: 0000000000092786 [20:18:37]line Версия ККМ: 001 [20:18:37]line ФМ: 0000000000875095 [20:18:37]line ФД: 34279 [20:18:37]line ФПД: 4451786830425 [20:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T201837&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34279&fm=4451786830425&tin=02508201610067®Number=0000000000092786&sum=7500 [20:18:37]line 0 [20:18:37]OFD Sender: Processing packet 34279 [packets to send 8, broken 7] [20:18:37]ProducePacketName [20:18:37]name=ofd_packets/00034279 [20:18:37]OFD Sender: To server: pG, [20:18:37]CommunicateWithHost lk.salyk.kg:30040 [20:18:37]ConnectInit lk.salyk.kg [20:18:37]written 0, free lines is 4095 [20:18:37]Connected sock=10 [20:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 4A 43 3C 01 FD BC 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 35 35 30 33 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D EB 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E7 85 00 00 35 04 06 00 04 0C 83 2C 32 59 17 8D 59 54 74 C2 AA FB [20:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 40 92 47 00 5E 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E7 85 00 00 F4 03 04 00 6C 92 71 66 B6 04 01 00 00 43 57 75 66 85 36 37 E1 [20:18:38]CommunicateWithHost err = 0 [20:18:38]CheckOFDResponse [20:18:38]1017 (14) - 77093643461234 [20:18:38]1041 (16) - 0000000000875095 [20:18:38]1040 (4) - 34279 [20:18:38]1012 (4) - 18.06.2024 13:58 [20:18:38]1206 (1) - 0 [20:18:38]OFD Sender: Remove packet 34279 [20:18:38]ProducePacketName [20:18:38]name=ofd_packets/00034279 [20:18:38]NVStorageDeleteData [20:18:38]Write to MH i2c: 01 00 00 33 0F 42 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 07 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 01 0D 57 [20:18:38]RasterBufferAndPrint [20:18:38]line [20:18:38]line [20:18:38]line [20:18:38]line [20:18:38]line [20:18:38]written 0, free lines is 3339 [20:18:38]MH_Cut [20:18:38]Write to MH i2c: D1 01 00 3A 0F 01 1B [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: D1 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: D1 01 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: D1 01 00 3A 0F 00 1A [20:18:38]Write to MH i2c: 01 00 00 3B 0F 4A [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]OFD Sender: No OFD packet to send [20:18:38]*** Cut start [20:18:38]*** Partial cut [20:18:38]*** CUTSNS_PIN = 1 [20:18:39]*** CUTSNS_PIN = 0 [20:18:39]*** Brake cut motor [20:18:39]Read from MH i2c: 01 [20:18:39]MH_I2C_Read... [20:18:39]*** Stop cut motor [20:18:39]*** Cut end [20:18:39]Read from MH i2c: 01 07 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [20:18:39]process_action close_receipt done [20:18:39]requested_data is exist [20:18:39]produce_requested_data [20:18:39]requested_item fm.sn is exist - process it [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 11 00 00 [20:18:39]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 17 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1A [20:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:18:39]wFMCommunicate OK [20:18:39]requested_item fd.num is exist - process it [20:18:39]SAM_PROTO_GetFieldsCounters [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 13 00 00 [20:18:39]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 62 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 62 00 3D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [20: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:39]wFMCommunicate OK [20:18:39]SAM_PROTO_GetFieldsCounters done [20:18:39]requested_item shift.num is exist - process it [20:18:39]requested_item shift.opened is exist - process it [20:18:39]req_shift_opened [20:18:39]FM_GetShiftState [20:18:39]SAM_PROTO_GetShiftState [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 13 01 00 [20:18:39]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 0E 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 15 [20:18:39]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:18:39]wFMCommunicate OK [20:18:39]SAM_PROTO_GetShiftState done [20:18:39]FM_GetShiftState done [20:18:39]req_shift_opened done [20:18:39]requested_item shift.open_date is exist - process it [20:18:39]req_shift_open_date [20:18:39]req_shift_open_date done [20:18:39]produce_requested_data done [20:18:39]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34279,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [20:18:39]process_action_free close_receipt [20:18:39]json_value_free [20:18:39]json_value_free done [20:18:39]process_json_proto returns [20:18:39]Send response to host [20:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34279,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [20:18:39]free response buf [20:18:39]execute_script done [20:18:39]execute_script returns [20:18:39]free content buf [20:18:39]Sock 9.Close socket [20:18:39]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29: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:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:20]accept exits with 7 [20:43:20]New connection [20:43:20]New thread 3067567460 created [20:43:20]Thread 3067424100 joined [20:43:20]Waiting for new connection... [20:43:20] Sock 7.Parse request [20:43:20]Sock 7.Check first char [20:43:20]Sock 7.First char is OK [20:43:20]request: POST /json_proto HTTP/1.0 [20:43:20]Method: POST [20:43:20]URL: /json_proto [20:43:20]Method is POST - this is cgi request [20:43:20]url: /json_proto [20:43:20]query_string will be loaded in cgi processing [20:43:20]execute_cgi json_proto POST (null) [20:43:20]execute_cgi path=json_proto method=POST [20:43:20]POST find Content-Length [20:43:20]Host: 172.17.38.134:8080 [20:43:20]Content-Length: 717 [20:43:20]Content-Type: application/json [20:43:20] [20:43:20]POST finish read [20:43:20]Found Content-Length = 717 [20:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184063", "tax_sys" : 0, "items" : [ { "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:20]execute_script... [20:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184063", "tax_sys" : 0, "items" : [ { "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:20]POST & json_proto [20:43:20]process_json_proto [20:43:20]json parsed OK: [20:43:20]protocol is kg_v1.0 [20:43:20]action value=close_receipt [20:43:20]process_action close_receipt [20:43:20]cmd_close_receipt [20:43:20]MH_GetDate [20:43:20]Write to MH i2c: F0 00 00 3F 0F 3D [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: F0 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: F0 09 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: F0 09 00 3F 0F 00 6A F1 71 66 13 9C 7C 64 07 [20:43:20]GetLastDocTimeStamp 1718741917 [20:43:20]current date 1718743402 [20:43:20]FM_GetShiftState [20:43:20]SAM_PROTO_GetShiftState [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 13 01 00 [20:43:20]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 0E 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 17 [20:43:20]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:43:20]wFMCommunicate OK [20:43:20]SAM_PROTO_GetShiftState done [20:43:20]FM_GetShiftState done [20:43:20]opened in 1718670230 [20:43:20]opened+sec_in_day 1718756630 [20:43:20]quantity*price = 4100 [20:43:20]sum+1 = 4101 [20:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 41.00 НСП 1% : 0.36 НДС 12% : 4.35 Наличными: 41.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 102 18.06.2024 20:43 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34280 ФПД: 10265319253812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204322&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34280&fm=10265319253812&tin=02508201610067®Number=0000000000092786&sum=4100 0 [20:43:21]StoreToDocumentArchive [20:43:21]shift 323 fd 34280 [20:43:21]save to /storage/0323/doc_00034280 [20:43:21]save last doc name /storage/0323/doc_00034280 to /storage/kkm_last_doc_name [20:43:21]save OK [20:43:21]Clear old archive folders... [20:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=304 [20:43:21]tlvbuf is 0193E490 [20:43:21]SAM_PROTO_ClearQueue [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 09 00 00 [20:43:21]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]SAM_PROTO_ClearQueue done [20:43:21]KKMCreateOFDPacket [20:43:21]OFDProtocolAddRootSTLVToBuf [20:43:21]FM_MakeSignedData [20:43:21]FM_MakeSignedData [20:43:21]SAM_PROTO_SignData [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 01 02 [20:43:21]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [20:43:21]RAPDU: 90 00 [20:43:21]wFMCommunicate OK [20:43:21]wFMCommunicate request_size=255 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6A F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 [20:43:21]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6A F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 00 00 50 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 03 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [20:43:22]RAPDU: 90 00 [20:43:22]wFMCommunicate OK [20:43:22]wFMCommunicate request_size=63 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E8 85 00 00 35 04 06 00 09 56 14 B5 27 34 [20:43:22]Write to MH i2c: E2 42 00 50 0F 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E8 85 00 00 35 04 06 00 09 56 14 B5 27 34 00 00 1C [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 03 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [20:43:22]RAPDU: 90 00 [20:43:22]wFMCommunicate OK [20:43:22]wFMCommunicate request_size=4 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 0D 03 02 [20:43:22]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 0B 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 0B 00 51 0F 00 E6 2C 9D CA 89 38 CA 51 90 00 31 [20:43:22]RAPDU: E6 2C 9D CA 89 38 CA 51 90 00 [20:43:22]wFMCommunicate OK [20:43:22]SAM_PROTO_SignData done [20:43:22]FM_MakeSignedData done [20:43:22]CreateOFDProtocolMessage [20:43:22]wFMCommunicate request_size=4 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 11 00 00 [20:43:22]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 17 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 30 [20:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:43:22]wFMCommunicate OK [20:43:22]CreateOFDProtocolMessage done [20:43:22]OFDSenderStorePacket 34280 [20:43:22]StoreOFDPacket docnum=34280 [20:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 E2 B8 3C 01 7D 4A 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6A F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E8 85 00 00 35 04 06 00 09 56 14 B5 27 34 E6 2C 9D CA 89 38 CA 51 [20:43:22]CheckFolder [20:43:22]dirname=/storage/ofd_packets [20:43:22]CheckFolder done [20:43:22]ProducePacketName [20:43:22]name=ofd_packets/00034280 [20:43:22]NVStorageSaveData ofd_packets/00034280 [20:43:22]File name is /storage/ofd_packets/00034280 [20:43:22]Write 354 bytes [20:43:22]NVStorageSaveData done [20:43:22]OFDSenderStorePacket done [20:43:22]KKMCreateOFDPacket done [20:43:22]NVStorageSaveData kkm_last_timestamp [20:43:22]File name is /storage/kkm_last_timestamp [20:43:22]Write 4 bytes [20:43:22]NVStorageSaveData done [20:43:22]OFD Sender: Processing packet 34280 [packets to send 8, broken 7] [20:43:22]ProducePacketName [20:43:22]name=ofd_packets/00034280 [20:43:22]OFD Sender: To server: pG, [20:43:22]CommunicateWithHost lk.salyk.kg:30040 [20:43:22]ConnectInit lk.salyk.kg [20:43:22]ExternCall_PrintAddStr [20:43:22]wPrintStart [20:43:22]Write to MH i2c: 01 00 00 53 0F 62 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [20:43:22]RasterBufferAndPrint [20:43:22]line Счет N : (3)184063 [20:43:22]line ИНН: 02508201610067 [20:43:22]line Контрольно-Кассовый Чек [20:43:22]line ПРОДАЖА [20:43:22]line Товар: 6921211114420 [20:43:22]line Карамель ЧЧ 3D В-РОР Тропический 8*45 [20:43:22]line 1.000 * 41.00 [20:43:22]line = 41.00 [20:43:22]line НДС 12% НСП 1% [20:43:22]line > о реализуемом товаре [20:43:22]line ИТОГО: 41.00 [20:43:22]line НСП 1% : 0.36 [20:43:22]line НДС 12% : 4.35 [20:43:22]line Наличными: 41.00 [20:43:22]line Безнал.: 0.00 [20:43:22]line Место: АЗС № 120 "Партнер Нефть" [20:43:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:43:22]line СНО: Общий режим [20:43:22]line Чек 102 18.06.2024 20:43 [20:43:22]line Смена: 323 ФФД: 1.0 [20:43:22]line ЗНМ: 0300000172 [20:43:22]line РНМ: 0000000000092786 [20:43:22]line Версия ККМ: 001 [20:43:22]line ФМ: 0000000000875095 [20:43:22]line ФД: 34280 [20:43:22]line ФПД: 10265319253812 [20:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204322&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34280&fm=10265319253812&tin=02508201610067®Number=0000000000092786&sum=4100 [20:43:22]line 0 [20:43:22]written 0, free lines is 4095 [20:43:23]Write to MH i2c: 01 00 00 7C 0F 8B [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 07 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 E8 0C 86 [20:43:23]RasterBufferAndPrint [20:43:23]line [20:43:23]line [20:43:23]line [20:43:23]line [20:43:23]line [20:43:23]written 0, free lines is 3310 [20:43:23]MH_Cut [20:43:23]Write to MH i2c: D1 01 00 83 0F 01 64 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: D1 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: D1 01 00 [20:43:23]MH_I2C_Read... [20:43:23]Read from MH i2c: D1 01 00 83 0F 00 63 [20:43:23]Write to MH i2c: 01 00 00 84 0F 93 [20:43:23]Write i2c OK [20:43:23]MH_I2C_Read... [20:43:23]*** Cut start [20:43:23]*** Partial cut [20:43:23]*** CUTSNS_PIN = 1 [20:43:24]*** CUTSNS_PIN = 0 [20:43:24]*** Brake cut motor [20:43:24]Read from MH i2c: 01 [20:43:24]MH_I2C_Read... [20:43:24]*** Stop cut motor [20:43:24]*** Cut end [20:43:24]Read from MH i2c: 01 07 00 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [20:43:24]process_action close_receipt done [20:43:24]requested_data is exist [20:43:24]produce_requested_data [20:43:24]requested_item fm.sn is exist - process it [20:43:24]wFMCommunicate request_size=4 [20:43:24]MH_SAM_APDU [20:43:24]CAPDU: 80 11 00 00 [20:43:24]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [20:43:24]Write i2c OK [20:43:24]MH_I2C_Read... [20:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:24]Read from MH i2c: E2 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: E2 17 00 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: E2 17 00 85 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 63 [20:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:43:24]wFMCommunicate OK [20:43:24]requested_item fd.num is exist - process it [20:43:24]SAM_PROTO_GetFieldsCounters [20:43:24]wFMCommunicate request_size=4 [20:43:24]MH_SAM_APDU [20:43:24]CAPDU: 80 13 00 00 [20:43:24]Write to MH i2c: E2 08 00 86 0F 80 13 00 00 00 00 00 00 11 [20:43:24]Write i2c OK [20:43:24]MH_I2C_Read... [20:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:24]Read from MH i2c: E2 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: E2 62 00 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: E2 62 00 86 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E8 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [20:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E8 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:24]wFMCommunicate OK [20:43:24]SAM_PROTO_GetFieldsCounters done [20:43:24]requested_item shift.num is exist - process it [20:43:24]requested_item shift.opened is exist - process it [20:43:24]req_shift_opened [20:43:24]FM_GetShiftState [20:43:24]SAM_PROTO_GetShiftState [20:43:24]wFMCommunicate request_size=4 [20:43:24]MH_SAM_APDU [20:43:24]CAPDU: 80 13 01 00 [20:43:24]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [20:43:24]Write i2c OK [20:43:24]MH_I2C_Read... [20:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:24]Read from MH i2c: E2 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: E2 0E 00 [20:43:24]MH_I2C_Read... [20:43:24]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 5E [20:43:24]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:43:24]wFMCommunicate OK [20:43:24]SAM_PROTO_GetShiftState done [20:43:24]FM_GetShiftState done [20:43:24]req_shift_opened done [20:43:24]requested_item shift.open_date is exist - process it [20:43:24]req_shift_open_date [20:43:24]req_shift_open_date done [20:43:24]produce_requested_data done [20:43:24]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34280,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [20:43:24]process_action_free close_receipt [20:43:24]json_value_free [20:43:24]json_value_free done [20:43:24]process_json_proto returns [20:43:24]Send response to host [20:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34280,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [20:43:24]free response buf [20:43:24]execute_script done [20:43:24]execute_script returns [20:43:24]free content buf [20:43:24]Sock 7.Close socket [20:43:24]Sock 7.Thread stoped [20:43:59]accept exits with 9 [20:43:59]New connection [20:43:59]New thread 3067424100 created [20:43:59]Thread 3067567460 joined [20:43:59]Waiting for new connection... [20:43:59] Sock 9.Parse request [20:43:59]Sock 9.Check first char [20:43:59]Sock 9.First char is OK [20:43:59]request: POST /json_proto HTTP/1.0 [20:43:59]Method: POST [20:43:59]URL: /json_proto [20:43:59]Method is POST - this is cgi request [20:43:59]url: /json_proto [20:43:59]query_string will be loaded in cgi processing [20:43:59]execute_cgi json_proto POST (null) [20:43:59]execute_cgi path=json_proto method=POST [20:43:59]POST find Content-Length [20:43:59]Host: 172.17.38.134:8080 [20:43:59]Content-Length: 623 [20:43:59]Content-Type: application/json [20:43:59] [20:43:59]POST finish read [20:43:59]Found Content-Length = 623 [20:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184064", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "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" ] } } [20:43:59]execute_script... [20:43:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184064", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "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" ] } } [20:43:59]POST & json_proto [20:43:59]process_json_proto [20:43:59]json parsed OK: [20:43:59]protocol is kg_v1.0 [20:43:59]action value=close_receipt [20:43:59]process_action close_receipt [20:43:59]cmd_close_receipt [20:43:59]MH_GetDate [20:43:59]Write to MH i2c: F0 00 00 88 0F 86 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: F0 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: F0 09 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: F0 09 00 88 0F 00 91 F1 71 66 13 9C 7C 64 77 [20:43:59]GetLastDocTimeStamp 1718743402 [20:43:59]current date 1718743441 [20:43:59]FM_GetShiftState [20:43:59]SAM_PROTO_GetShiftState [20:43:59]wFMCommunicate request_size=4 [20:43:59]MH_SAM_APDU [20:43:59]CAPDU: 80 13 01 00 [20:43:59]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [20:43:59]Write i2c OK [20:43:59]MH_I2C_Read... [20:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:59]Read from MH i2c: E2 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 0E 00 [20:43:59]MH_I2C_Read... [20:43:59]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 60 [20:43:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:43:59]wFMCommunicate OK [20:43:59]SAM_PROTO_GetShiftState done [20:43:59]FM_GetShiftState done [20:43:59]opened in 1718670230 [20:43:59]opened+sec_in_day 1718756630 [20:43:59]quantity*price = 14000 [20:43:59]sum+1 = 14001 [20:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 103 18.06.2024 20:44 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34281 ФПД: 50982532033017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204401&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34281&fm=50982532033017&tin=02508201610067®Number=0000000000092786&sum=14000 0 [20:44:00]StoreToDocumentArchive [20:44:00]shift 323 fd 34281 [20:44:00]save to /storage/0323/doc_00034281 [20:44:00]save last doc name /storage/0323/doc_00034281 to /storage/kkm_last_doc_name [20:44:00]save OK [20:44:00]Clear old archive folders... [20:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:44:00]tlvbuf is 0193E360 [20:44:00]SAM_PROTO_ClearQueue [20:44:00]wFMCommunicate request_size=4 [20:44:00]MH_SAM_APDU [20:44:00]CAPDU: 80 09 00 00 [20:44:00]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:00]Read from MH i2c: E2 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 03 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [20:44:00]RAPDU: 90 00 [20:44:00]wFMCommunicate OK [20:44:00]SAM_PROTO_ClearQueue done [20:44:00]KKMCreateOFDPacket [20:44:00]OFDProtocolAddRootSTLVToBuf [20:44:00]FM_MakeSignedData [20:44:00]FM_MakeSignedData [20:44:00]SAM_PROTO_SignData [20:44:00]wFMCommunicate request_size=4 [20:44:00]MH_SAM_APDU [20:44:00]CAPDU: 80 0D 01 02 [20:44:00]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:00]Read from MH i2c: E2 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 03 00 [20:44:00]MH_I2C_Read... [20:44:00]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [20:44:00]RAPDU: 90 00 [20:44:00]wFMCommunicate OK [20:44:00]wFMCommunicate request_size=255 [20:44:00]MH_SAM_APDU [20:44:00]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 53 69 6C 76 65 72 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 67 00 00 00 F4 03 04 00 91 F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 [20:44:00]Write to MH i2c: E2 02 01 98 0F 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 53 69 6C 76 65 72 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 67 00 00 00 F4 03 04 00 91 F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 00 00 BA [20:44:00]Write i2c OK [20:44:00]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 03 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [20:44:01]RAPDU: 90 00 [20:44:01]wFMCommunicate OK [20:44:01]wFMCommunicate request_size=34 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E9 85 00 00 35 04 06 00 2E 5E 4B B6 29 F9 [20:44:01]Write to MH i2c: E2 25 00 99 0F 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E9 85 00 00 35 04 06 00 2E 5E 4B B6 29 F9 00 00 02 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 03 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [20:44:01]RAPDU: 90 00 [20:44:01]wFMCommunicate OK [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 0D 03 02 [20:44:01]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0B 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0B 00 9A 0F 00 AA 28 38 24 E2 42 1C 0F 90 00 A2 [20:44:01]RAPDU: AA 28 38 24 E2 42 1C 0F 90 00 [20:44:01]wFMCommunicate OK [20:44:01]SAM_PROTO_SignData done [20:44:01]FM_MakeSignedData done [20:44:01]CreateOFDProtocolMessage [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 11 00 00 [20:44:01]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 17 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 79 [20:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:44:01]wFMCommunicate OK [20:44:01]CreateOFDProtocolMessage done [20:44:01]OFDSenderStorePacket 34281 [20:44:01]StoreOFDPacket docnum=34281 [20:44:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 8F AD 1F 01 E4 B1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 53 69 6C 76 65 72 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 67 00 00 00 F4 03 04 00 91 F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E9 85 00 00 35 04 06 00 2E 5E 4B B6 29 F9 AA 28 38 24 E2 42 1C 0F [20:44:01]CheckFolder [20:44:01]dirname=/storage/ofd_packets [20:44:01]CheckFolder done [20:44:01]ProducePacketName [20:44:01]name=ofd_packets/00034281 [20:44:01]NVStorageSaveData ofd_packets/00034281 [20:44:01]File name is /storage/ofd_packets/00034281 [20:44:01]Write 325 bytes [20:44:01]NVStorageSaveData done [20:44:01]OFDSenderStorePacket done [20:44:01]KKMCreateOFDPacket done [20:44:01]NVStorageSaveData kkm_last_timestamp [20:44:01]File name is /storage/kkm_last_timestamp [20:44:01]Write 4 bytes [20:44:01]NVStorageSaveData done [20:44:01]ExternCall_PrintAddStr [20:44:01]wPrintStart [20:44:01]Write to MH i2c: 01 00 00 9C 0F AB [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: 01 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: 01 07 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [20:44:01]RasterBufferAndPrint [20:44:01]line Счет N : (3)184064 [20:44:01]line ИНН: 02508201610067 [20:44:01]line Контрольно-Кассовый Чек [20:44:01]line ПРОДАЖА [20:44:01]line Товар: 48743587 [20:44:01]line Сигареты Winston XStyle Silver [20:44:01]line 1.000 * 140.00 [20:44:01]line = 140.00 [20:44:01]line НДС 12% НСП 1% [20:44:01]line > о реализуемом товаре [20:44:01]line ИТОГО: 140.00 [20:44:01]line НСП 1% : 1.24 [20:44:01]line НДС 12% : 14.87 [20:44:01]line Наличными: 140.00 [20:44:01]line Безнал.: 0.00 [20:44:01]line Место: АЗС № 120 "Партнер Нефть" [20:44:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:44:01]line СНО: Общий режим [20:44:01]line Чек 103 18.06.2024 20:44 [20:44:01]line Смена: 323 ФФД: 1.0 [20:44:01]line ЗНМ: 0300000172 [20:44:01]line РНМ: 0000000000092786 [20:44:01]line Версия ККМ: 001 [20:44:01]line ФМ: 0000000000875095 [20:44:01]line ФД: 34281 [20:44:01]line ФПД: 50982532033017 [20:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T204401&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34281&fm=50982532033017&tin=02508201610067®Number=0000000000092786&sum=14000 [20:44:01]line 0 [20:44:01]written 0, free lines is 4095 [20:44:02]Write to MH i2c: 01 00 00 C5 0F D4 [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 07 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 07 00 C5 0F 00 00 00 00 00 D5 0C BC [20:44:02]RasterBufferAndPrint [20:44:02]line [20:44:02]line [20:44:02]line [20:44:02]line [20:44:02]line [20:44:02]written 0, free lines is 3291 [20:44:02]MH_Cut [20:44:02]Write to MH i2c: D1 01 00 CC 0F 01 AD [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: D1 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: D1 01 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: D1 01 00 CC 0F 00 AC [20:44:02]Write to MH i2c: 01 00 00 CD 0F DC [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]*** Cut start [20:44:02]*** Partial cut [20:44:02]*** CUTSNS_PIN = 1 [20:44:02]*** CUTSNS_PIN = 0 [20:44:03]*** Brake cut motor [20:44:03]Read from MH i2c: 01 [20:44:03]MH_I2C_Read... [20:44:03]*** Stop cut motor [20:44:03]*** Cut end [20:44:03]Read from MH i2c: 01 07 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: 01 07 00 CD 0F 00 00 00 00 00 FF 0F F1 [20:44:03]process_action close_receipt done [20:44:03]requested_data is exist [20:44:03]produce_requested_data [20:44:03]requested_item fm.sn is exist - process it [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 11 00 00 [20:44:03]Write to MH i2c: E2 08 00 CE 0F 80 11 00 00 00 00 00 00 57 [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 17 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 17 00 CE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AC [20:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [20:44:03]wFMCommunicate OK [20:44:03]requested_item fd.num is exist - process it [20:44:03]SAM_PROTO_GetFieldsCounters [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 13 00 00 [20:44:03]Write to MH i2c: E2 08 00 CF 0F 80 13 00 00 00 00 00 00 5A [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 62 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 62 00 CF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E9 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [20:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 E9 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:03]wFMCommunicate OK [20:44:03]SAM_PROTO_GetFieldsCounters done [20:44:03]requested_item shift.num is exist - process it [20:44:03]requested_item shift.opened is exist - process it [20:44:03]req_shift_opened [20:44:03]FM_GetShiftState [20:44:03]SAM_PROTO_GetShiftState [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 13 01 00 [20:44:03]Write to MH i2c: E2 08 00 D0 0F 80 13 01 00 00 00 00 00 5C [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 0E 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 0E 00 D0 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 A7 [20:44:03]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [20:44:03]wFMCommunicate OK [20:44:03]SAM_PROTO_GetShiftState done [20:44:03]FM_GetShiftState done [20:44:03]req_shift_opened done [20:44:03]requested_item shift.open_date is exist - process it [20:44:03]req_shift_open_date [20:44:03]req_shift_open_date done [20:44:03]produce_requested_data done [20:44:03]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34281,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [20:44:03]process_action_free close_receipt [20:44:03]json_value_free [20:44:03]json_value_free done [20:44:03]process_json_proto returns [20:44:03]Send response to host [20:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34281,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [20:44:03]free response buf [20:44:03]execute_script done [20:44:03]execute_script returns [20:44:03]free content buf [20:44:03]Sock 9.Close socket [20:44:03]Sock 9.Thread stoped [20:45:34]ConnectInit Can't connect to host [20:45:34]CommunicateWithHost connect error [20:45:34]CommunicateWithHost err = -1 [20:45:34]OFD Sender: Server communicate error [20:45:34]OFD Sender: Processing packet 34280 [packets to send 9, broken 7] [20:45:34]ProducePacketName [20:45:34]name=ofd_packets/00034280 [20:45:34]OFD Sender: To server: pG, [20:45:34]CommunicateWithHost lk.salyk.kg:30040 [20:45:34]ConnectInit lk.salyk.kg [20:45:34]Connected sock=9 [20:45:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 44 01 00 00 E2 B8 3C 01 7D 4A 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6A F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E8 85 00 00 35 04 06 00 09 56 14 B5 27 34 E6 2C 9D CA 89 38 CA 51 [20:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 B2 9A 47 00 E8 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E8 85 00 00 F4 03 04 00 BD 98 71 66 B6 04 01 00 00 7C 51 7C 85 A4 23 75 14 [20:45:35]CommunicateWithHost err = 0 [20:45:35]CheckOFDResponse [20:45:35]1017 (14) - 77093643461234 [20:45:35]1041 (16) - 0000000000875095 [20:45:35]1040 (4) - 34280 [20:45:35]1012 (4) - 18.06.2024 14:25 [20:45:35]1206 (1) - 0 [20:45:35]OFD Sender: Remove packet 34280 [20:45:35]ProducePacketName [20:45:35]name=ofd_packets/00034280 [20:45:35]NVStorageDeleteData [20:45:35]OFD Sender: Processing packet 34281 [packets to send 8, broken 7] [20:45:35]ProducePacketName [20:45:35]name=ofd_packets/00034281 [20:45:35]OFD Sender: To server: pG, [20:45:35]CommunicateWithHost lk.salyk.kg:30040 [20:45:35]ConnectInit lk.salyk.kg [20:45:35]Connected sock=9 [20:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 27 01 00 00 8F AD 1F 01 E4 B1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 53 69 6C 76 65 72 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 67 00 00 00 F4 03 04 00 91 F1 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E9 85 00 00 35 04 06 00 2E 5E 4B B6 29 F9 AA 28 38 24 E2 42 1C 0F [20:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 24 39 47 00 A4 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 E9 85 00 00 F4 03 04 00 BE 98 71 66 B6 04 01 00 00 73 2F C8 E0 24 BA A1 14 [20:45:35]CommunicateWithHost err = 0 [20:45:35]CheckOFDResponse [20:45:35]1017 (14) - 77093643461234 [20:45:35]1041 (16) - 0000000000875095 [20:45:35]1040 (4) - 34281 [20:45:35]1012 (4) - 18.06.2024 14:25 [20:45:35]1206 (1) - 0 [20:45:35]OFD Sender: Remove packet 34281 [20:45:35]ProducePacketName [20:45:35]name=ofd_packets/00034281 [20:45:35]NVStorageDeleteData [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:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56: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:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17: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:41]accept exits with 7 [21:18:41]New connection [21:18:41]New thread 3067567460 created [21:18:41]Thread 3067424100 joined [21:18:41]Waiting for new connection... [21:18:41] Sock 7.Parse request [21:18:41]Sock 7.Check first char [21:18:41]Sock 7.First char is OK [21:18:41]request: POST /json_proto HTTP/1.0 [21:18:41]Method: POST [21:18:41]URL: /json_proto [21:18:41]Method is POST - this is cgi request [21:18:41]url: /json_proto [21:18:41]query_string will be loaded in cgi processing [21:18:41]execute_cgi json_proto POST (null) [21:18:41]execute_cgi path=json_proto method=POST [21:18:41]POST find Content-Length [21:18:41]Host: 172.17.38.134:8080 [21:18:41]Content-Length: 783 [21:18:41]Content-Type: application/json [21:18:41] [21:18:41]POST finish read [21:18:41]Found Content-Length = 783 [21:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184065", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:41]execute_script... [21:18: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)184065", "tax_sys" : 0, "items" : [ { "code": "4640030091621", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange W", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:41]POST & json_proto [21:18:41]process_json_proto [21:18:41]json parsed OK: [21:18:41]protocol is kg_v1.0 [21:18:41]action value=close_receipt [21:18:41]process_action close_receipt [21:18:41]cmd_close_receipt [21:18:41]MH_GetDate [21:18:41]Write to MH i2c: F0 00 00 D1 0F CF [21:18:41]Write i2c OK [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: F0 [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: F0 09 00 [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: F0 09 00 D1 0F 00 B3 F9 71 66 13 9C 7C 64 EA [21:18:41]GetLastDocTimeStamp 1718743441 [21:18:41]current date 1718745523 [21:18:41]FM_GetShiftState [21:18:41]SAM_PROTO_GetShiftState [21:18:41]wFMCommunicate request_size=4 [21:18:41]MH_SAM_APDU [21:18:41]CAPDU: 80 13 01 00 [21:18:41]Write to MH i2c: E2 08 00 D2 0F 80 13 01 00 00 00 00 00 5E [21:18:41]Write i2c OK [21:18:41]MH_I2C_Read... [21:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:41]Read from MH i2c: E2 [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: E2 0E 00 [21:18:41]MH_I2C_Read... [21:18:41]Read from MH i2c: E2 0E 00 D2 0F 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 A9 [21:18:41]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:18:41]wFMCommunicate OK [21:18:41]SAM_PROTO_GetShiftState done [21:18:41]FM_GetShiftState done [21:18:41]opened in 1718670230 [21:18:41]opened+sec_in_day 1718756630 [21:18:41]quantity*price = 27600 [21:18:41]sum+1 = 27601 [21:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 0.00 Безнал.: 276.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 104 18.06.2024 21:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34282 ФПД: 180622584641883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211843&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34282&fm=180622584641883&tin=02508201610067®Number=0000000000092786&sum=27600 0 [21:18:42]StoreToDocumentArchive [21:18:42]shift 323 fd 34282 [21:18:42]save to /storage/0323/doc_00034282 [21:18:42]save last doc name /storage/0323/doc_00034282 to /storage/kkm_last_doc_name [21:18:42]save OK [21:18:42]Clear old archive folders... [21:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:18:42]tlvbuf is 018F8280 [21:18:42]SAM_PROTO_ClearQueue [21:18:42]wFMCommunicate request_size=4 [21:18:42]MH_SAM_APDU [21:18:42]CAPDU: 80 09 00 00 [21:18:42]Write to MH i2c: E2 08 00 DF 0F 80 09 00 00 00 00 00 00 60 [21:18:42]Write i2c OK [21:18:42]MH_I2C_Read... [21:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:42]Read from MH i2c: E2 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 03 00 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [21:18:42]RAPDU: 90 00 [21:18:42]wFMCommunicate OK [21:18:42]SAM_PROTO_ClearQueue done [21:18:42]KKMCreateOFDPacket [21:18:42]OFDProtocolAddRootSTLVToBuf [21:18:42]FM_MakeSignedData [21:18:42]FM_MakeSignedData [21:18:42]SAM_PROTO_SignData [21:18:42]wFMCommunicate request_size=4 [21:18:42]MH_SAM_APDU [21:18:42]CAPDU: 80 0D 01 02 [21:18:42]Write to MH i2c: E2 08 00 E0 0F 80 0D 01 02 00 00 00 00 68 [21:18:42]Write i2c OK [21:18:42]MH_I2C_Read... [21:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:42]Read from MH i2c: E2 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 03 00 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [21:18:42]RAPDU: 90 00 [21:18:42]wFMCommunicate OK [21:18:42]wFMCommunicate request_size=255 [21:18:42]MH_SAM_APDU [21:18:42]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B3 F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 [21:18:42]Write to MH i2c: E2 02 01 E1 0F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B3 F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 00 00 5F [21:18:42]Write i2c OK [21:18:42]MH_I2C_Read... [21:18:43]OFD Sender: No OFD packet to send [21:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:43]Read from MH i2c: E2 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [21:18:43]RAPDU: 90 00 [21:18:43]wFMCommunicate OK [21:18:43]wFMCommunicate request_size=33 [21:18:43]MH_SAM_APDU [21:18:43]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EA 85 00 00 35 04 06 00 A4 46 78 FE F9 5B [21:18:43]Write to MH i2c: E2 24 00 E2 0F 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EA 85 00 00 35 04 06 00 A4 46 78 FE F9 5B 00 00 1F [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:43]Read from MH i2c: E2 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [21:18:43]RAPDU: 90 00 [21:18:43]wFMCommunicate OK [21:18:43]wFMCommunicate request_size=4 [21:18:43]MH_SAM_APDU [21:18:43]CAPDU: 80 0D 03 02 [21:18:43]Write to MH i2c: E2 08 00 E3 0F 80 0D 03 02 00 00 00 00 6D [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:43]Read from MH i2c: E2 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 0B 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 0B 00 E3 0F 00 FD FB 35 DE 2D DD 0A 52 90 00 DF [21:18:43]RAPDU: FD FB 35 DE 2D DD 0A 52 90 00 [21:18:43]wFMCommunicate OK [21:18:43]SAM_PROTO_SignData done [21:18:43]FM_MakeSignedData done [21:18:43]CreateOFDProtocolMessage [21:18:43]wFMCommunicate request_size=4 [21:18:43]MH_SAM_APDU [21:18:43]CAPDU: 80 11 00 00 [21:18:43]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:43]Read from MH i2c: E2 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 17 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: E2 17 00 E4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 C2 [21:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:18:43]wFMCommunicate OK [21:18:43]CreateOFDProtocolMessage done [21:18:43]OFDSenderStorePacket 34282 [21:18:43]StoreOFDPacket docnum=34282 [21:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 E6 17 1E 01 2D F3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B3 F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EA 85 00 00 35 04 06 00 A4 46 78 FE F9 5B FD FB 35 DE 2D DD 0A 52 [21:18:43]CheckFolder [21:18:43]dirname=/storage/ofd_packets [21:18:43]CheckFolder done [21:18:43]ProducePacketName [21:18:43]name=ofd_packets/00034282 [21:18:43]NVStorageSaveData ofd_packets/00034282 [21:18:43]File name is /storage/ofd_packets/00034282 [21:18:43]Write 324 bytes [21:18:43]NVStorageSaveData done [21:18:43]OFDSenderStorePacket done [21:18:43]KKMCreateOFDPacket done [21:18:43]NVStorageSaveData kkm_last_timestamp [21:18:43]File name is /storage/kkm_last_timestamp [21:18:43]Write 4 bytes [21:18:43]NVStorageSaveData done [21:18:43]ExternCall_PrintAddStr [21:18:43]wPrintStart [21:18:43]Write to MH i2c: 01 00 00 E5 0F F4 [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: 01 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: 01 07 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 FF 0F 09 [21:18:43]RasterBufferAndPrint [21:18:43]line Счет N : (3)184065 [21:18:43]line ИНН: 02508201610067 [21:18:43]line Контрольно-Кассовый Чек [21:18:43]line ПРОДАЖА [21:18:43]line Товар: 4640030091621 [21:18:43]line Сигареты ESSE Exchange W [21:18:43]line 2.000 * 138.00 [21:18:43]line = 276.00 [21:18:43]line НДС 12% НСП 1% [21:18:43]line > о реализуемом товаре [21:18:43]line ИТОГО: 276.00 [21:18:43]line НСП 1% : 2.44 [21:18:43]line НДС 12% : 29.31 [21:18:43]line Наличными: 0.00 [21:18:43]line Безнал.: 276.00 [21:18:43]line Место: АЗС № 120 "Партнер Нефть" [21:18:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:18:43]line СНО: Общий режим [21:18:43]line Чек 104 18.06.2024 21:18 [21:18:43]line Смена: 323 ФФД: 1.0 [21:18:43]line ЗНМ: 0300000172 [21:18:43]line РНМ: 0000000000092786 [21:18:43]line Версия ККМ: 001 [21:18:43]line Платежная система: O! деньги [21:18:43]line ФМ: 0000000000875095 [21:18:43]line ФД: 34282 [21:18:43]line ФПД: 180622584641883 [21:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211843&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34282&fm=180622584641883&tin=02508201610067®Number=0000000000092786&sum=27600 [21:18:43]line 0 [21:18:43]OFD Sender: Processing packet 34282 [packets to send 8, broken 7] [21:18:43]ProducePacketName [21:18:43]name=ofd_packets/00034282 [21:18:43]OFD Sender: To server: pG, [21:18:43]CommunicateWithHost lk.salyk.kg:30040 [21:18:43]ConnectInit lk.salyk.kg [21:18:43]written 0, free lines is 4095 [21:18:43]Connected sock=10 [21:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 26 01 00 00 E6 17 1E 01 2D F3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 32 31 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 57 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B3 F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EA 85 00 00 35 04 06 00 A4 46 78 FE F9 5B FD FB 35 DE 2D DD 0A 52 [21:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 94 AB 47 00 36 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EA 85 00 00 F4 03 04 00 82 A0 71 66 B6 04 01 00 00 FE 27 92 DB 3A 28 88 2C [21:18:44]CommunicateWithHost err = 0 [21:18:44]CheckOFDResponse [21:18:44]1017 (14) - 77093643461234 [21:18:44]1041 (16) - 0000000000875095 [21:18:44]1040 (4) - 34282 [21:18:44]1012 (4) - 18.06.2024 14:58 [21:18:44]1206 (1) - 0 [21:18:44]OFD Sender: Remove packet 34282 [21:18:44]ProducePacketName [21:18:44]name=ofd_packets/00034282 [21:18:44]NVStorageDeleteData [21:18:44]Write to MH i2c: 01 00 00 0F 10 1F [21:18:44]Write i2c OK [21:18:44]MH_I2C_Read... [21:18:44]Read from MH i2c: 01 [21:18:44]MH_I2C_Read... [21:18:44]Read from MH i2c: 01 07 00 [21:18:44]MH_I2C_Read... [21:18:44]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 D7 0C 09 [21:18:44]RasterBufferAndPrint [21:18:44]line [21:18:44]line [21:18:44]line [21:18:44]line [21:18:44]line [21:18:44]written 0, free lines is 3294 [21:18:44]MH_Cut [21:18:44]Write to MH i2c: D1 01 00 16 10 01 F8 [21:18:44]Write i2c OK [21:18:44]MH_I2C_Read... [21:18:44]Read from MH i2c: D1 [21:18:44]MH_I2C_Read... [21:18:44]Read from MH i2c: D1 01 00 [21:18:44]MH_I2C_Read... [21:18:44]Read from MH i2c: D1 01 00 16 10 00 F7 [21:18:44]Write to MH i2c: 01 00 00 17 10 27 [21:18:44]Write i2c OK [21:18:44]MH_I2C_Read... [21:18:44]OFD Sender: No OFD packet to send [21:18:44]*** Cut start [21:18:44]*** Partial cut [21:18:44]*** CUTSNS_PIN = 1 [21:18:45]*** CUTSNS_PIN = 0 [21:18:45]*** Brake cut motor [21:18:45]Read from MH i2c: 01 [21:18:45]MH_I2C_Read... [21:18:45]*** Stop cut motor [21:18:45]*** Cut end [21:18:45]Read from MH i2c: 01 07 00 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 FF 0F 3C [21:18:45]process_action close_receipt done [21:18:45]requested_data is exist [21:18:45]produce_requested_data [21:18:45]requested_item fm.sn is exist - process it [21:18:45]wFMCommunicate request_size=4 [21:18:45]MH_SAM_APDU [21:18:45]CAPDU: 80 11 00 00 [21:18:45]Write to MH i2c: E2 08 00 18 10 80 11 00 00 00 00 00 00 A2 [21:18:45]Write i2c OK [21:18:45]MH_I2C_Read... [21:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:45]Read from MH i2c: E2 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 17 00 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 17 00 18 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F7 [21:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:18:45]wFMCommunicate OK [21:18:45]requested_item fd.num is exist - process it [21:18:45]SAM_PROTO_GetFieldsCounters [21:18:45]wFMCommunicate request_size=4 [21:18:45]MH_SAM_APDU [21:18:45]CAPDU: 80 13 00 00 [21:18:45]Write to MH i2c: E2 08 00 19 10 80 13 00 00 00 00 00 00 A5 [21:18:45]Write i2c OK [21:18:45]MH_I2C_Read... [21:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:45]Read from MH i2c: E2 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 62 00 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 62 00 19 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EA 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [21:18:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EA 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:45]wFMCommunicate OK [21:18:45]SAM_PROTO_GetFieldsCounters done [21:18:45]requested_item shift.num is exist - process it [21:18:45]requested_item shift.opened is exist - process it [21:18:45]req_shift_opened [21:18:45]FM_GetShiftState [21:18:45]SAM_PROTO_GetShiftState [21:18:45]wFMCommunicate request_size=4 [21:18:45]MH_SAM_APDU [21:18:45]CAPDU: 80 13 01 00 [21:18:45]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [21:18:45]Write i2c OK [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 [21:18:45]MH_I2C_Read... [21:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:45]Read from MH i2c: E2 0E 00 [21:18:45]MH_I2C_Read... [21:18:45]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F2 [21:18:45]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:18:45]wFMCommunicate OK [21:18:45]SAM_PROTO_GetShiftState done [21:18:45]FM_GetShiftState done [21:18:45]req_shift_opened done [21:18:45]requested_item shift.open_date is exist - process it [21:18:45]req_shift_open_date [21:18:45]req_shift_open_date done [21:18:45]produce_requested_data done [21:18:45]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34282,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [21:18:45]process_action_free close_receipt [21:18:45]json_value_free [21:18:45]json_value_free done [21:18:45]process_json_proto returns [21:18:45]Send response to host [21:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34282,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [21:18:45]free response buf [21:18:45]execute_script done [21:18:45]execute_script returns [21:18:45]free content buf [21:18:45]Sock 7.Close socket [21:18:45]Sock 7.Thread stoped [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]accept exits with 9 [21:19:39]New connection [21:19:39]New thread 3067424100 created [21:19:39]Thread 3067567460 joined [21:19:39]Waiting for new connection... [21:19:39] Sock 9.Parse request [21:19:39]Sock 9.Check first char [21:19:39]Sock 9.First char is OK [21:19:39]request: POST /json_proto HTTP/1.0 [21:19:39]Method: POST [21:19:39]URL: /json_proto [21:19:39]Method is POST - this is cgi request [21:19:39]url: /json_proto [21:19:39]query_string will be loaded in cgi processing [21:19:39]execute_cgi json_proto POST (null) [21:19:39]execute_cgi path=json_proto method=POST [21:19:39]POST find Content-Length [21:19:39]Host: 172.17.38.134:8080 [21:19:39]Content-Length: 670 [21:19:39]Content-Type: application/json [21:19:39] [21:19:39]POST finish read [21:19:39]Found Content-Length = 670 [21:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184066", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:39]execute_script... [21:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184066", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:39]POST & json_proto [21:19:39]process_json_proto [21:19:39]json parsed OK: [21:19:39]protocol is kg_v1.0 [21:19:39]action value=close_receipt [21:19:39]process_action close_receipt [21:19:39]cmd_close_receipt [21:19:39]MH_GetDate [21:19:39]Write to MH i2c: F0 00 00 1B 10 1A [21:19:39]Write i2c OK [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: F0 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: F0 09 00 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: F0 09 00 1B 10 00 ED F9 71 66 13 9C 7C 64 6F [21:19:39]GetLastDocTimeStamp 1718745523 [21:19:39]current date 1718745581 [21:19:39]FM_GetShiftState [21:19:39]SAM_PROTO_GetShiftState [21:19:39]wFMCommunicate request_size=4 [21:19:39]MH_SAM_APDU [21:19:39]CAPDU: 80 13 01 00 [21:19:39]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [21:19:39]Write i2c OK [21:19:39]MH_I2C_Read... [21:19:39]OFD Sender: No OFD packet to send [21:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:39]Read from MH i2c: E2 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: E2 0E 00 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F4 [21:19:39]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:19:39]wFMCommunicate OK [21:19:39]SAM_PROTO_GetShiftState done [21:19:39]FM_GetShiftState done [21:19:39]opened in 1718670230 [21:19:39]opened+sec_in_day 1718756630 [21:19:39]quantity*price = 17000 [21:19:39]sum+1 = 17001 [21:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 105 18.06.2024 21:19 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34283 ФПД: 60581311244903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211941&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34283&fm=60581311244903&tin=02508201610067®Number=0000000000092786&sum=17000 0 [21:19:40]StoreToDocumentArchive [21:19:40]shift 323 fd 34283 [21:19:40]save to /storage/0323/doc_00034283 [21:19:40]save last doc name /storage/0323/doc_00034283 to /storage/kkm_last_doc_name [21:19:40]save OK [21:19:40]Clear old archive folders... [21:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:19:40]tlvbuf is 01905D90 [21:19:40]SAM_PROTO_ClearQueue [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 09 00 00 [21:19:40]Write to MH i2c: E2 08 00 29 10 80 09 00 00 00 00 00 00 AB [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [21:19:40]RAPDU: 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_ClearQueue done [21:19:40]KKMCreateOFDPacket [21:19:40]OFDProtocolAddRootSTLVToBuf [21:19:40]FM_MakeSignedData [21:19:40]FM_MakeSignedData [21:19:40]SAM_PROTO_SignData [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 0D 01 02 [21:19:40]Write to MH i2c: E2 08 00 2A 10 80 0D 01 02 00 00 00 00 B3 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [21:19:40]RAPDU: 90 00 [21:19:40]wFMCommunicate OK [21:19:40]wFMCommunicate request_size=255 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 ED F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [21:19:40]Write to MH i2c: E2 02 01 2B 10 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 ED F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 32 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=41 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EB 85 00 00 35 04 06 00 37 19 2F 89 6A 67 [21:19:41]Write to MH i2c: E2 2C 00 2C 10 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EB 85 00 00 35 04 06 00 37 19 2F 89 6A 67 00 00 D0 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [21:19:41]RAPDU: 90 00 [21:19:41]wFMCommunicate OK [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 0D 03 02 [21:19:41]Write to MH i2c: E2 08 00 2D 10 80 0D 03 02 00 00 00 00 B8 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0B 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0B 00 2D 10 00 8B 91 15 6B 16 11 81 79 90 00 76 [21:19:41]RAPDU: 8B 91 15 6B 16 11 81 79 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_SignData done [21:19:41]FM_MakeSignedData done [21:19:41]CreateOFDProtocolMessage [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 11 00 00 [21:19:41]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 17 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 0D [21:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:19:41]wFMCommunicate OK [21:19:41]CreateOFDProtocolMessage done [21:19:41]OFDSenderStorePacket 34283 [21:19:41]StoreOFDPacket docnum=34283 [21:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 AB 31 26 01 02 A6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 ED F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EB 85 00 00 35 04 06 00 37 19 2F 89 6A 67 8B 91 15 6B 16 11 81 79 [21:19:41]CheckFolder [21:19:41]dirname=/storage/ofd_packets [21:19:41]CheckFolder done [21:19:41]ProducePacketName [21:19:41]name=ofd_packets/00034283 [21:19:41]NVStorageSaveData ofd_packets/00034283 [21:19:41]File name is /storage/ofd_packets/00034283 [21:19:41]Write 332 bytes [21:19:41]NVStorageSaveData done [21:19:41]OFDSenderStorePacket done [21:19:41]KKMCreateOFDPacket done [21:19:41]NVStorageSaveData kkm_last_timestamp [21:19:41]File name is /storage/kkm_last_timestamp [21:19:41]Write 4 bytes [21:19:41]NVStorageSaveData done [21:19:41]ExternCall_PrintAddStr [21:19:41]wPrintStart [21:19:41]Write to MH i2c: 01 00 00 2F 10 3F [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: 01 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: 01 07 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 FF 0F 54 [21:19:41]RasterBufferAndPrint [21:19:41]line Счет N : (3)184066 [21:19:41]line ИНН: 02508201610067 [21:19:41]line Контрольно-Кассовый Чек [21:19:41]line ПРОДАЖА [21:19:41]line Товар: 4700000480357 [21:19:41]line Пиво шахтерское 1л ПЭТ [21:19:41]line 1.000 * 170.00 [21:19:41]line = 170.00 [21:19:41]line НДС 12% НСП 1% [21:19:41]line > о реализуемом товаре [21:19:41]line ИТОГО: 170.00 [21:19:41]line НСП 1% : 1.50 [21:19:41]line НДС 12% : 18.05 [21:19:41]line Наличными: 170.00 [21:19:41]line Безнал.: 0.00 [21:19:41]line Место: АЗС № 120 "Партнер Нефть" [21:19:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:19:41]line СНО: Общий режим [21:19:41]line Чек 105 18.06.2024 21:19 [21:19:41]line Смена: 323 ФФД: 1.0 [21:19:41]line ЗНМ: 0300000172 [21:19:41]line РНМ: 0000000000092786 [21:19:41]line Версия ККМ: 001 [21:19:41]line ФМ: 0000000000875095 [21:19:41]line ФД: 34283 [21:19:41]line ФПД: 60581311244903 [21:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T211941&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34283&fm=60581311244903&tin=02508201610067®Number=0000000000092786&sum=17000 [21:19:41]line 0 [21:19:41]OFD Sender: Processing packet 34283 [packets to send 8, broken 7] [21:19:41]ProducePacketName [21:19:41]name=ofd_packets/00034283 [21:19:41]OFD Sender: To server: pG, [21:19:41]CommunicateWithHost lk.salyk.kg:30040 [21:19:41]ConnectInit lk.salyk.kg [21:19:41]written 0, free lines is 4095 [21:19:41]Connected sock=10 [21:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 AB 31 26 01 02 A6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 ED F9 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EB 85 00 00 35 04 06 00 37 19 2F 89 6A 67 8B 91 15 6B 16 11 81 79 [21:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 78 C6 47 00 C6 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EB 85 00 00 F4 03 04 00 BC A0 71 66 B6 04 01 00 00 4A 20 1E 6E 46 93 A6 E5 [21:19:42]CommunicateWithHost err = 0 [21:19:42]CheckOFDResponse [21:19:42]1017 (14) - 77093643461234 [21:19:42]1041 (16) - 0000000000875095 [21:19:42]1040 (4) - 34283 [21:19:42]1012 (4) - 18.06.2024 14:59 [21:19:42]1206 (1) - 0 [21:19:42]OFD Sender: Remove packet 34283 [21:19:42]ProducePacketName [21:19:42]name=ofd_packets/00034283 [21:19:42]NVStorageDeleteData [21:19:42]Write to MH i2c: 01 00 00 57 10 67 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 FE 0C 78 [21:19:42]RasterBufferAndPrint [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]line [21:19:42]written 0, free lines is 3332 [21:19:42]MH_Cut [21:19:42]Write to MH i2c: D1 01 00 5E 10 01 40 [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 01 00 [21:19:42]MH_I2C_Read... [21:19:42]Read from MH i2c: D1 01 00 5E 10 00 3F [21:19:42]Write to MH i2c: 01 00 00 5F 10 6F [21:19:42]Write i2c OK [21:19:42]MH_I2C_Read... [21:19:42]OFD Sender: No OFD packet to send [21:19:42]*** Cut start [21:19:42]*** Partial cut [21:19:42]*** CUTSNS_PIN = 1 [21:19:42]*** CUTSNS_PIN = 0 [21:19:43]*** Brake cut motor [21:19:43]Read from MH i2c: 01 [21:19:43]MH_I2C_Read... [21:19:43]*** Stop cut motor [21:19:43]*** Cut end [21:19:43]Read from MH i2c: 01 07 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 FF 0F 84 [21:19:43]process_action close_receipt done [21:19:43]requested_data is exist [21:19:43]produce_requested_data [21:19:43]requested_item fm.sn is exist - process it [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 11 00 00 [21:19:43]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 17 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 17 00 60 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3F [21:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:19:43]wFMCommunicate OK [21:19:43]requested_item fd.num is exist - process it [21:19:43]SAM_PROTO_GetFieldsCounters [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 13 00 00 [21:19:43]Write to MH i2c: E2 08 00 61 10 80 13 00 00 00 00 00 00 ED [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 62 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 62 00 61 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EB 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [21:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EB 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:43]wFMCommunicate OK [21:19:43]SAM_PROTO_GetFieldsCounters done [21:19:43]requested_item shift.num is exist - process it [21:19:43]requested_item shift.opened is exist - process it [21:19:43]req_shift_opened [21:19:43]FM_GetShiftState [21:19:43]SAM_PROTO_GetShiftState [21:19:43]wFMCommunicate request_size=4 [21:19:43]MH_SAM_APDU [21:19:43]CAPDU: 80 13 01 00 [21:19:43]Write to MH i2c: E2 08 00 62 10 80 13 01 00 00 00 00 00 EF [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:43]Read from MH i2c: E2 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 0E 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: E2 0E 00 62 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3A [21:19:43]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:19:43]wFMCommunicate OK [21:19:43]SAM_PROTO_GetShiftState done [21:19:43]FM_GetShiftState done [21:19:43]req_shift_opened done [21:19:43]requested_item shift.open_date is exist - process it [21:19:43]req_shift_open_date [21:19:43]req_shift_open_date done [21:19:43]produce_requested_data done [21:19:43]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34283,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [21:19:43]process_action_free close_receipt [21:19:43]json_value_free [21:19:43]json_value_free done [21:19:43]process_json_proto returns [21:19:43]Send response to host [21:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34283,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [21:19:43]free response buf [21:19:43]execute_script done [21:19:43]execute_script returns [21:19:43]free content buf [21:19:43]Sock 9.Close socket [21:19:43]Sock 9.Thread stoped [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:55]accept exits with 7 [21:20:55]New connection [21:20:55]New thread 3067567460 created [21:20:55]Thread 3067424100 joined [21:20:55]Waiting for new connection... [21:20:55] Sock 7.Parse request [21:20:55]Sock 7.Check first char [21:20:55]Sock 7.First char is OK [21:20:55]request: POST /json_proto HTTP/1.0 [21:20:55]Method: POST [21:20:55]URL: /json_proto [21:20:55]Method is POST - this is cgi request [21:20:55]url: /json_proto [21:20:55]query_string will be loaded in cgi processing [21:20:55]execute_cgi json_proto POST (null) [21:20:55]execute_cgi path=json_proto method=POST [21:20:55]POST find Content-Length [21:20:55]Host: 172.17.38.134:8080 [21:20:55]Content-Length: 660 [21:20:55]Content-Type: application/json [21:20:55] [21:20:55]POST finish read [21:20:55]Found Content-Length = 660 [21:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184067", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:55]execute_script... [21:20: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 : (3)184067", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:55]POST & json_proto [21:20:55]process_json_proto [21:20:55]json parsed OK: [21:20:55]protocol is kg_v1.0 [21:20:55]action value=close_receipt [21:20:55]process_action close_receipt [21:20:55]cmd_close_receipt [21:20:55]MH_GetDate [21:20:55]Write to MH i2c: F0 00 00 63 10 62 [21:20:55]Write i2c OK [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: F0 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: F0 09 00 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: F0 09 00 63 10 00 39 FA 71 66 13 9C 7C 64 04 [21:20:55]GetLastDocTimeStamp 1718745581 [21:20:55]current date 1718745657 [21:20:55]FM_GetShiftState [21:20:55]SAM_PROTO_GetShiftState [21:20:55]wFMCommunicate request_size=4 [21:20:55]MH_SAM_APDU [21:20:55]CAPDU: 80 13 01 00 [21:20:55]Write to MH i2c: E2 08 00 64 10 80 13 01 00 00 00 00 00 F1 [21:20:55]Write i2c OK [21:20:55]MH_I2C_Read... [21:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:55]Read from MH i2c: E2 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 0E 00 [21:20:55]MH_I2C_Read... [21:20:55]Read from MH i2c: E2 0E 00 64 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 3C [21:20:55]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:20:55]wFMCommunicate OK [21:20:55]SAM_PROTO_GetShiftState done [21:20:55]FM_GetShiftState done [21:20:55]opened in 1718670230 [21:20:55]opened+sec_in_day 1718756630 [21:20:55]quantity*price = 4900 [21:20:55]sum+1 = 4901 [21:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 106 18.06.2024 21:20 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34284 ФПД: 186668061473484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212057&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34284&fm=186668061473484&tin=02508201610067®Number=0000000000092786&sum=4900 0 [21:20:56]StoreToDocumentArchive [21:20:56]shift 323 fd 34284 [21:20:56]save to /storage/0323/doc_00034284 [21:20:56]save last doc name /storage/0323/doc_00034284 to /storage/kkm_last_doc_name [21:20:56]save OK [21:20:56]Clear old archive folders... [21:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=291 [21:20:56]tlvbuf is 01941360 [21:20:56]SAM_PROTO_ClearQueue [21:20:56]wFMCommunicate request_size=4 [21:20:56]MH_SAM_APDU [21:20:56]CAPDU: 80 09 00 00 [21:20:56]Write to MH i2c: E2 08 00 71 10 80 09 00 00 00 00 00 00 F3 [21:20:56]Write i2c OK [21:20:56]MH_I2C_Read... [21:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:56]Read from MH i2c: E2 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: E2 03 00 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [21:20:56]RAPDU: 90 00 [21:20:56]wFMCommunicate OK [21:20:56]SAM_PROTO_ClearQueue done [21:20:56]KKMCreateOFDPacket [21:20:56]OFDProtocolAddRootSTLVToBuf [21:20:56]FM_MakeSignedData [21:20:56]FM_MakeSignedData [21:20:56]SAM_PROTO_SignData [21:20:56]wFMCommunicate request_size=4 [21:20:56]MH_SAM_APDU [21:20:56]CAPDU: 80 0D 01 02 [21:20:56]Write to MH i2c: E2 08 00 72 10 80 0D 01 02 00 00 00 00 FB [21:20:56]Write i2c OK [21:20:56]MH_I2C_Read... [21:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:56]Read from MH i2c: E2 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: E2 03 00 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [21:20:56]RAPDU: 90 00 [21:20:56]wFMCommunicate OK [21:20:56]wFMCommunicate request_size=255 [21:20:56]MH_SAM_APDU [21:20:56]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 FA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [21:20:56]Write to MH i2c: E2 02 01 73 10 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 FA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 65 [21:20:56]Write i2c OK [21:20:56]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [21:20:57]RAPDU: 90 00 [21:20:57]wFMCommunicate OK [21:20:57]wFMCommunicate request_size=50 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 0D 02 02 2D 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EC 85 00 00 35 04 06 00 A9 C6 0B 7E BA CC [21:20:57]Write to MH i2c: E2 35 00 74 10 80 0D 02 02 2D 00 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EC 85 00 00 35 04 06 00 A9 C6 0B 7E BA CC 00 00 55 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [21:20:57]RAPDU: 90 00 [21:20:57]wFMCommunicate OK [21:20:57]wFMCommunicate request_size=4 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 0D 03 02 [21:20:57]Write to MH i2c: E2 08 00 75 10 80 0D 03 02 00 00 00 00 00 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 0B 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 0B 00 75 10 00 2C 61 CD EE 37 CF A6 4E 90 00 43 [21:20:57]RAPDU: 2C 61 CD EE 37 CF A6 4E 90 00 [21:20:57]wFMCommunicate OK [21:20:57]SAM_PROTO_SignData done [21:20:57]FM_MakeSignedData done [21:20:57]CreateOFDProtocolMessage [21:20:57]wFMCommunicate request_size=4 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 11 00 00 [21:20:57]Write to MH i2c: E2 08 00 76 10 80 11 00 00 00 00 00 00 00 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 17 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 17 00 76 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 55 [21:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:20:57]wFMCommunicate OK [21:20:57]CreateOFDProtocolMessage done [21:20:57]OFDSenderStorePacket 34284 [21:20:57]StoreOFDPacket docnum=34284 [21:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 37 01 00 00 69 83 2F 01 88 D8 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 FA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EC 85 00 00 35 04 06 00 A9 C6 0B 7E BA CC 2C 61 CD EE 37 CF A6 4E [21:20:57]CheckFolder [21:20:57]dirname=/storage/ofd_packets [21:20:57]CheckFolder done [21:20:57]ProducePacketName [21:20:57]name=ofd_packets/00034284 [21:20:57]NVStorageSaveData ofd_packets/00034284 [21:20:57]File name is /storage/ofd_packets/00034284 [21:20:57]Write 341 bytes [21:20:57]NVStorageSaveData done [21:20:57]OFDSenderStorePacket done [21:20:57]KKMCreateOFDPacket done [21:20:57]NVStorageSaveData kkm_last_timestamp [21:20:57]File name is /storage/kkm_last_timestamp [21:20:57]Write 4 bytes [21:20:57]NVStorageSaveData done [21:20:57]OFD Sender: Processing packet 34284 [packets to send 8, broken 7] [21:20:57]ProducePacketName [21:20:57]name=ofd_packets/00034284 [21:20:57]OFD Sender: To server: pG, [21:20:57]CommunicateWithHost lk.salyk.kg:30040 [21:20:57]ConnectInit lk.salyk.kg [21:20:57]ExternCall_PrintAddStr [21:20:57]wPrintStart [21:20:57]Write to MH i2c: 01 00 00 77 10 87 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: 01 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: 01 07 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 FF 0F 9C [21:20:57]RasterBufferAndPrint [21:20:57]line Счет N : (3)184067 [21:20:57]line ИНН: 02508201610067 [21:20:57]line Контрольно-Кассовый Чек [21:20:57]line ПРОДАЖА [21:20:57]line Товар: 46227720 [21:20:57]line Р/ж mentos pure fresh виноград ролл 15,5 [21:20:57]line 1.000 * 49.00 [21:20:57]line = 49.00 [21:20:57]line НДС 12% НСП 1% [21:20:57]line > о реализуемом товаре [21:20:57]line ИТОГО: 49.00 [21:20:57]line НСП 1% : 0.43 [21:20:57]line НДС 12% : 5.20 [21:20:57]line Наличными: 49.00 [21:20:57]line Безнал.: 0.00 [21:20:57]line Место: АЗС № 120 "Партнер Нефть" [21:20:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:20:57]line СНО: Общий режим [21:20:57]line Чек 106 18.06.2024 21:20 [21:20:57]line Смена: 323 ФФД: 1.0 [21:20:57]line ЗНМ: 0300000172 [21:20:57]line РНМ: 0000000000092786 [21:20:57]line Версия ККМ: 001 [21:20:57]line ФМ: 0000000000875095 [21:20:57]line ФД: 34284 [21:20:57]line ФПД: 186668061473484 [21:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212057&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34284&fm=186668061473484&tin=02508201610067®Number=0000000000092786&sum=4900 [21:20:57]line 0 [21:20:57]Connected sock=11 [21:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 37 01 00 00 69 83 2F 01 88 D8 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 39 FA 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EC 85 00 00 35 04 06 00 A9 C6 0B 7E BA CC 2C 61 CD EE 37 CF A6 4E [21:20:57]written 0, free lines is 4095 [21:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 47 DE 47 00 DD 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 35 30 39 35 10 04 04 00 EC 85 00 00 F4 03 04 00 08 A1 71 66 B6 04 01 00 00 5E D6 61 8A F0 06 32 EB [21:20:57]CommunicateWithHost err = 0 [21:20:57]CheckOFDResponse [21:20:57]1017 (14) - 77093643461234 [21:20:57]1041 (16) - 0000000000875095 [21:20:57]1040 (4) - 34284 [21:20:57]1012 (4) - 18.06.2024 15:00 [21:20:57]1206 (1) - 0 [21:20:57]OFD Sender: Remove packet 34284 [21:20:57]ProducePacketName [21:20:57]name=ofd_packets/00034284 [21:20:57]NVStorageDeleteData [21:20:58]Write to MH i2c: 01 00 00 A0 10 B0 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 DD 0C A0 [21:20:58]RasterBufferAndPrint [21:20:58]line [21:20:58]line [21:20:58]line [21:20:58]line [21:20:58]line [21:20:58]written 0, free lines is 3302 [21:20:58]MH_Cut [21:20:58]Write to MH i2c: D1 01 00 A7 10 01 89 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: D1 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: D1 01 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: D1 01 00 A7 10 00 88 [21:20:58]Write to MH i2c: 01 00 00 A8 10 B8 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]OFD Sender: No OFD packet to send [21:20:58]*** Cut start [21:20:58]*** Partial cut [21:20:58]*** CUTSNS_PIN = 1 [21:20:58]*** CUTSNS_PIN = 0 [21:20:59]*** Brake cut motor [21:20:59]Read from MH i2c: 01 [21:20:59]MH_I2C_Read... [21:20:59]*** Stop cut motor [21:20:59]*** Cut end [21:20:59]Read from MH i2c: 01 07 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [21:20:59]process_action close_receipt done [21:20:59]requested_data is exist [21:20:59]produce_requested_data [21:20:59]requested_item fm.sn is exist - process it [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 11 00 00 [21:20:59]Write to MH i2c: E2 08 00 A9 10 80 11 00 00 00 00 00 00 33 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:59]Read from MH i2c: E2 17 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 17 00 A9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 88 [21:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:20:59]wFMCommunicate OK [21:20:59]requested_item fd.num is exist - process it [21:20:59]SAM_PROTO_GetFieldsCounters [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 13 00 00 [21:20:59]Write to MH i2c: E2 08 00 AA 10 80 13 00 00 00 00 00 00 36 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 62 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 62 00 AA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EC 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [21:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EC 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:59]wFMCommunicate OK [21:20:59]SAM_PROTO_GetFieldsCounters done [21:20:59]requested_item shift.num is exist - process it [21:20:59]requested_item shift.opened is exist - process it [21:20:59]req_shift_opened [21:20:59]FM_GetShiftState [21:20:59]SAM_PROTO_GetShiftState [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 13 01 00 [21:20:59]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0E 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 83 [21:20:59]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:20:59]wFMCommunicate OK [21:20:59]SAM_PROTO_GetShiftState done [21:20:59]FM_GetShiftState done [21:20:59]req_shift_opened done [21:20:59]requested_item shift.open_date is exist - process it [21:20:59]req_shift_open_date [21:20:59]req_shift_open_date done [21:20:59]produce_requested_data done [21:20:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34284,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [21:20:59]process_action_free close_receipt [21:20:59]json_value_free [21:20:59]json_value_free done [21:20:59]process_json_proto returns [21:20:59]Send response to host [21:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34284,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [21:20:59]free response buf [21:20:59]execute_script done [21:20:59]execute_script returns [21:20:59]free content buf [21:20:59]Sock 7.Close socket [21:20:59]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]accept exits with 9 [21:28:43]New connection [21:28:43]New thread 3067424100 created [21:28:43]Thread 3067567460 joined [21:28:43]Waiting for new connection... [21:28:43] Sock 9.Parse request [21:28:43]Sock 9.Check first char [21:28:43]Sock 9.First char is OK [21:28:43]request: POST /json_proto HTTP/1.0 [21:28:43]Method: POST [21:28:43]URL: /json_proto [21:28:43]Method is POST - this is cgi request [21:28:43]url: /json_proto [21:28:43]query_string will be loaded in cgi processing [21:28:43]execute_cgi json_proto POST (null) [21:28:43]execute_cgi path=json_proto method=POST [21:28:43]POST find Content-Length [21:28:43]Host: 172.17.38.134:8080 [21:28:43]Content-Length: 781 [21:28:43]Content-Type: application/json [21:28:43] [21:28:43]POST finish read [21:28:43]Found Content-Length = 781 [21:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184068", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:43]execute_script... [21:28:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184068", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:43]POST & json_proto [21:28:43]process_json_proto [21:28:43]json parsed OK: [21:28:43]protocol is kg_v1.0 [21:28:43]action value=close_receipt [21:28:43]process_action close_receipt [21:28:43]cmd_close_receipt [21:28:43]MH_GetDate [21:28:43]Write to MH i2c: F0 00 00 AC 10 AB [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 09 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 09 00 AC 10 00 0D FC 71 66 13 9C 7C 64 23 [21:28:43]GetLastDocTimeStamp 1718745657 [21:28:43]current date 1718746125 [21:28:43]FM_GetShiftState [21:28:43]SAM_PROTO_GetShiftState [21:28:43]wFMCommunicate request_size=4 [21:28:43]MH_SAM_APDU [21:28:43]CAPDU: 80 13 01 00 [21:28:43]Write to MH i2c: E2 08 00 AD 10 80 13 01 00 00 00 00 00 3A [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:43]Read from MH i2c: E2 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 AD 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 85 [21:28:43]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:28:43]wFMCommunicate OK [21:28:43]SAM_PROTO_GetShiftState done [21:28:43]FM_GetShiftState done [21:28:43]opened in 1718670230 [21:28:43]opened+sec_in_day 1718756630 [21:28:43]quantity*price = 40500 [21:28:43]sum+1 = 40501 [21:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 0.00 Безнал.: 405.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 107 18.06.2024 21:28 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34285 ФПД: 264606257241777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34285&fm=264606257241777&tin=02508201610067®Number=0000000000092786&sum=40500 0 [21:28:44]StoreToDocumentArchive [21:28:44]shift 323 fd 34285 [21:28:44]save to /storage/0323/doc_00034285 [21:28:44]save last doc name /storage/0323/doc_00034285 to /storage/kkm_last_doc_name [21:28:44]save OK [21:28:44]Clear old archive folders... [21:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:28:44]tlvbuf is 01958FF0 [21:28:44]SAM_PROTO_ClearQueue [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 09 00 00 [21:28:44]Write to MH i2c: E2 08 00 BA 10 80 09 00 00 00 00 00 00 3C [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [21:28:44]RAPDU: 90 00 [21:28:44]wFMCommunicate OK [21:28:44]SAM_PROTO_ClearQueue done [21:28:44]KKMCreateOFDPacket [21:28:44]OFDProtocolAddRootSTLVToBuf [21:28:44]FM_MakeSignedData [21:28:44]FM_MakeSignedData [21:28:44]SAM_PROTO_SignData [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 0D 01 02 [21:28:44]Write to MH i2c: E2 08 00 BB 10 80 0D 01 02 00 00 00 00 44 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [21:28:44]RAPDU: 90 00 [21:28:44]wFMCommunicate OK [21:28:44]wFMCommunicate request_size=255 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0D FC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 [21:28:44]Write to MH i2c: E2 02 01 BC 10 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0D FC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 00 00 D5 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=39 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 ED 85 00 00 35 04 06 00 F0 A8 71 F7 DE B1 [21:28:45]Write to MH i2c: E2 2A 00 BD 10 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 ED 85 00 00 35 04 06 00 F0 A8 71 F7 DE B1 00 00 05 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 BD 10 00 90 00 41 [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=4 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 0D 03 02 [21:28:45]Write to MH i2c: E2 08 00 BE 10 80 0D 03 02 00 00 00 00 49 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 0B 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 0B 00 BE 10 00 AE 52 E3 4C F2 7C 8F 7A 90 00 F0 [21:28:45]RAPDU: AE 52 E3 4C F2 7C 8F 7A 90 00 [21:28:45]wFMCommunicate OK [21:28:45]SAM_PROTO_SignData done [21:28:45]FM_MakeSignedData done [21:28:45]CreateOFDProtocolMessage [21:28:45]wFMCommunicate request_size=4 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 11 00 00 [21:28:45]Write to MH i2c: E2 08 00 BF 10 80 11 00 00 00 00 00 00 49 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 17 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 17 00 BF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9E [21:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:28:45]wFMCommunicate OK [21:28:45]CreateOFDProtocolMessage done [21:28:45]OFDSenderStorePacket 34285 [21:28:45]StoreOFDPacket docnum=34285 [21:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 27 6B 24 01 54 5C 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0D FC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 ED 85 00 00 35 04 06 00 F0 A8 71 F7 DE B1 AE 52 E3 4C F2 7C 8F 7A [21:28:45]CheckFolder [21:28:45]dirname=/storage/ofd_packets [21:28:45]CheckFolder done [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00034285 [21:28:45]NVStorageSaveData ofd_packets/00034285 [21:28:45]File name is /storage/ofd_packets/00034285 [21:28:45]Write 330 bytes [21:28:45]NVStorageSaveData done [21:28:45]OFDSenderStorePacket done [21:28:45]KKMCreateOFDPacket done [21:28:45]NVStorageSaveData kkm_last_timestamp [21:28:45]File name is /storage/kkm_last_timestamp [21:28:45]Write 4 bytes [21:28:45]NVStorageSaveData done [21:28:45]ExternCall_PrintAddStr [21:28:45]wPrintStart [21:28:45]Write to MH i2c: 01 00 00 C0 10 D0 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 C0 10 00 00 00 00 00 FF 0F E5 [21:28:45]RasterBufferAndPrint [21:28:45]line Счет N : (3)184068 [21:28:45]line ИНН: 02508201610067 [21:28:45]line Контрольно-Кассовый Чек [21:28:45]line ПРОДАЖА [21:28:45]line Товар: 4650063110756 [21:28:45]line Масло Gazpromneft Super 10w40 1л [21:28:45]line 1.000 * 405.00 [21:28:45]line = 405.00 [21:28:45]line НДС 12% НСП 1% [21:28:45]line > о реализуемом товаре [21:28:45]line ИТОГО: 405.00 [21:28:45]line НСП 1% : 3.58 [21:28:45]line НДС 12% : 43.01 [21:28:45]line Наличными: 0.00 [21:28:45]line Безнал.: 405.00 [21:28:45]line Место: АЗС № 120 "Партнер Нефть" [21:28:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:28:45]line СНО: Общий режим [21:28:45]line Чек 107 18.06.2024 21:28 [21:28:45]line Смена: 323 ФФД: 1.0 [21:28:45]line ЗНМ: 0300000172 [21:28:45]line РНМ: 0000000000092786 [21:28:45]line Версия ККМ: 001 [21:28:45]line Платежная система: O! деньги [21:28:45]line ФМ: 0000000000875095 [21:28:45]line ФД: 34285 [21:28:45]line ФПД: 264606257241777 [21:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T212845&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34285&fm=264606257241777&tin=02508201610067®Number=0000000000092786&sum=40500 [21:28:45]line 0 [21:28:45]OFD Sender: Processing packet 34285 [packets to send 8, broken 7] [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00034285 [21:28:45]OFD Sender: To server: pG, [21:28:45]CommunicateWithHost lk.salyk.kg:30040 [21:28:45]ConnectInit lk.salyk.kg [21:28:45]written 0, free lines is 4095 [21:28:45]Connected sock=10 [21:28:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2C 01 00 00 27 6B 24 01 54 5C 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0D FC 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 ED 85 00 00 35 04 06 00 F0 A8 71 F7 DE B1 AE 52 E3 4C F2 7C 8F 7A [21:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 9A 41 47 00 48 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 ED 85 00 00 F4 03 04 00 DC A2 71 66 B6 04 01 00 00 16 98 F0 AB 47 74 F3 9B [21:28:46]CommunicateWithHost err = 0 [21:28:46]CheckOFDResponse [21:28:46]1017 (14) - 77093643461234 [21:28:46]1041 (16) - 0000000000875095 [21:28:46]1040 (4) - 34285 [21:28:46]1012 (4) - 18.06.2024 15:08 [21:28:46]1206 (1) - 0 [21:28:46]OFD Sender: Remove packet 34285 [21:28:46]ProducePacketName [21:28:46]name=ofd_packets/00034285 [21:28:46]NVStorageDeleteData [21:28:46]Write to MH i2c: 01 00 00 EB 10 FB [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 07 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 07 00 EB 10 00 00 00 00 00 C7 0C D5 [21:28:46]RasterBufferAndPrint [21:28:46]line [21:28:46]line [21:28:46]line [21:28:46]line [21:28:46]line [21:28:46]written 0, free lines is 3277 [21:28:46]MH_Cut [21:28:46]Write to MH i2c: D1 01 00 F2 10 01 D4 [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: D1 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: D1 01 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: D1 01 00 F2 10 00 D3 [21:28:46]Write to MH i2c: 01 00 00 F3 10 03 [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]OFD Sender: No OFD packet to send [21:28:46]*** Cut start [21:28:46]*** Partial cut [21:28:46]*** CUTSNS_PIN = 1 [21:28:47]*** CUTSNS_PIN = 0 [21:28:47]*** Brake cut motor [21:28:47]Read from MH i2c: 01 [21:28:47]MH_I2C_Read... [21:28:47]*** Stop cut motor [21:28:47]*** Cut end [21:28:47]Read from MH i2c: 01 07 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 FF 0F 18 [21:28:47]process_action close_receipt done [21:28:47]requested_data is exist [21:28:47]produce_requested_data [21:28:47]requested_item fm.sn is exist - process it [21:28:47]wFMCommunicate request_size=4 [21:28:47]MH_SAM_APDU [21:28:47]CAPDU: 80 11 00 00 [21:28:47]Write to MH i2c: E2 08 00 F4 10 80 11 00 00 00 00 00 00 7E [21:28:47]Write i2c OK [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:47]Read from MH i2c: E2 17 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 17 00 F4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 D3 [21:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:28:47]wFMCommunicate OK [21:28:47]requested_item fd.num is exist - process it [21:28:47]SAM_PROTO_GetFieldsCounters [21:28:47]wFMCommunicate request_size=4 [21:28:47]MH_SAM_APDU [21:28:47]CAPDU: 80 13 00 00 [21:28:47]Write to MH i2c: E2 08 00 F5 10 80 13 00 00 00 00 00 00 81 [21:28:47]Write i2c OK [21:28:47]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 62 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 62 00 F5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 ED 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [21:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 ED 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:47]wFMCommunicate OK [21:28:47]SAM_PROTO_GetFieldsCounters done [21:28:47]requested_item shift.num is exist - process it [21:28:47]requested_item shift.opened is exist - process it [21:28:47]req_shift_opened [21:28:47]FM_GetShiftState [21:28:47]SAM_PROTO_GetShiftState [21:28:47]wFMCommunicate request_size=4 [21:28:47]MH_SAM_APDU [21:28:47]CAPDU: 80 13 01 00 [21:28:47]Write to MH i2c: E2 08 00 F6 10 80 13 01 00 00 00 00 00 83 [21:28:47]Write i2c OK [21:28:47]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 0E 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 0E 00 F6 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 CE [21:28:47]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:28:47]wFMCommunicate OK [21:28:47]SAM_PROTO_GetShiftState done [21:28:47]FM_GetShiftState done [21:28:47]req_shift_opened done [21:28:47]requested_item shift.open_date is exist - process it [21:28:47]req_shift_open_date [21:28:47]req_shift_open_date done [21:28:47]produce_requested_data done [21:28:47]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34285,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [21:28:47]process_action_free close_receipt [21:28:47]json_value_free [21:28:47]json_value_free done [21:28:47]process_json_proto returns [21:28:47]Send response to host [21:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34285,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [21:28:47]free response buf [21:28:47]execute_script done [21:28:47]execute_script returns [21:28:47]free content buf [21:28:47]Sock 9.Close socket [21:28:47]Sock 9.Thread stoped [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:10]accept exits with 7 [21:37:10]New connection [21:37:10]New thread 3067567460 created [21:37:10]Thread 3067424100 joined [21:37:10]Waiting for new connection... [21:37:10] Sock 7.Parse request [21:37:10]Sock 7.Check first char [21:37:10]Sock 7.First char is OK [21:37:10]request: POST /json_proto HTTP/1.0 [21:37:10]Method: POST [21:37:10]URL: /json_proto [21:37:10]Method is POST - this is cgi request [21:37:10]url: /json_proto [21:37:10]query_string will be loaded in cgi processing [21:37:10]execute_cgi json_proto POST (null) [21:37:10]execute_cgi path=json_proto method=POST [21:37:10]POST find Content-Length [21:37:10]Host: 172.17.38.134:8080 [21:37:10]Content-Length: 1008 [21:37:10]Content-Type: application/json [21:37:10] [21:37:10]POST finish read [21:37:10]Found Content-Length = 1008 [21:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184069", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:10]execute_script... [21:37: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)184069", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:10]POST & json_proto [21:37:10]process_json_proto [21:37:10]json parsed OK: [21:37:10]protocol is kg_v1.0 [21:37:10]action value=close_receipt [21:37:10]process_action close_receipt [21:37:10]cmd_close_receipt [21:37:10]MH_GetDate [21:37:10]Write to MH i2c: F0 00 00 F7 10 F6 [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: F0 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: F0 09 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: F0 09 00 F7 10 00 08 FE 71 66 13 9C 7C 64 6B [21:37:10]GetLastDocTimeStamp 1718746125 [21:37:10]current date 1718746632 [21:37:10]FM_GetShiftState [21:37:10]SAM_PROTO_GetShiftState [21:37:10]wFMCommunicate request_size=4 [21:37:10]MH_SAM_APDU [21:37:10]CAPDU: 80 13 01 00 [21:37:10]Write to MH i2c: E2 08 00 F8 10 80 13 01 00 00 00 00 00 85 [21:37:10]Write i2c OK [21:37:10]MH_I2C_Read... [21:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:10]Read from MH i2c: E2 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 0E 00 [21:37:10]MH_I2C_Read... [21:37:10]Read from MH i2c: E2 0E 00 F8 10 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 D0 [21:37:10]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:37:10]wFMCommunicate OK [21:37:10]SAM_PROTO_GetShiftState done [21:37:10]FM_GetShiftState done [21:37:10]opened in 1718670230 [21:37:10]opened+sec_in_day 1718756630 [21:37:10]quantity*price = 15000 [21:37:10]sum+1 = 15001 [21:37:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630056952563 Печ Юбилейное Торжество молочное 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 108 18.06.2024 21:37 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34286 ФПД: 160397314634232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213712&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34286&fm=160397314634232&tin=02508201610067®Number=0000000000092786&sum=20900 0 [21:37:11]StoreToDocumentArchive [21:37:11]shift 323 fd 34286 [21:37:11]save to /storage/0323/doc_00034286 [21:37:11]save last doc name /storage/0323/doc_00034286 to /storage/kkm_last_doc_name [21:37:11]save OK [21:37:11]Clear old archive folders... [21:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=421 [21:37:11]tlvbuf is B6F575F0 [21:37:11]SAM_PROTO_ClearQueue [21:37:11]wFMCommunicate request_size=4 [21:37:11]MH_SAM_APDU [21:37:11]CAPDU: 80 09 00 00 [21:37:11]Write to MH i2c: E2 08 00 05 11 80 09 00 00 00 00 00 00 88 [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 05 11 00 90 00 8A [21:37:12]RAPDU: 90 00 [21:37:12]wFMCommunicate OK [21:37:12]SAM_PROTO_ClearQueue done [21:37:12]KKMCreateOFDPacket [21:37:12]OFDProtocolAddRootSTLVToBuf [21:37:12]FM_MakeSignedData [21:37:12]FM_MakeSignedData [21:37:12]SAM_PROTO_SignData [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 0D 01 02 [21:37:12]Write to MH i2c: E2 08 00 06 11 80 0D 01 02 00 00 00 00 90 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [21:37:12]RAPDU: 90 00 [21:37:12]wFMCommunicate OK [21:37:12]wFMCommunicate request_size=255 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 0D 02 02 FA 03 00 A5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 [21:37:12]Write to MH i2c: E2 02 01 07 11 80 0D 02 02 FA 00 03 00 A5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 00 00 8C [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [21:37:12]RAPDU: 90 00 [21:37:12]wFMCommunicate OK [21:37:12]wFMCommunicate request_size=180 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 0D 02 02 AF F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 08 FE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EE 85 00 00 35 04 06 00 91 E1 68 F6 31 F8 [21:37:12]Write to MH i2c: E2 B7 00 08 11 80 0D 02 02 AF 00 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 08 FE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EE 85 00 00 35 04 06 00 91 E1 68 F6 31 F8 00 00 48 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [21:37:12]RAPDU: 90 00 [21:37:12]wFMCommunicate OK [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 0D 03 02 [21:37:12]Write to MH i2c: E2 08 00 09 11 80 0D 03 02 00 00 00 00 95 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 0B 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 0B 00 09 11 00 26 D6 D8 9A 80 96 F3 C4 90 00 D1 [21:37:12]RAPDU: 26 D6 D8 9A 80 96 F3 C4 90 00 [21:37:12]wFMCommunicate OK [21:37:12]SAM_PROTO_SignData done [21:37:12]FM_MakeSignedData done [21:37:12]CreateOFDProtocolMessage [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 11 00 00 [21:37:12]Write to MH i2c: E2 08 00 0A 11 80 11 00 00 00 00 00 00 95 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 17 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 17 00 0A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EA [21:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:37:12]wFMCommunicate OK [21:37:12]CreateOFDProtocolMessage done [21:37:12]OFDSenderStorePacket 34286 [21:37:12]StoreOFDPacket docnum=34286 [21:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 B9 01 00 00 39 F2 B1 01 73 D1 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 08 FE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EE 85 00 00 35 04 06 00 91 E1 68 F6 31 F8 26 D6 D8 9A 80 96 F3 C4 [21:37:12]CheckFolder [21:37:12]dirname=/storage/ofd_packets [21:37:12]CheckFolder done [21:37:12]ProducePacketName [21:37:12]name=ofd_packets/00034286 [21:37:12]NVStorageSaveData ofd_packets/00034286 [21:37:12]File name is /storage/ofd_packets/00034286 [21:37:12]Write 471 bytes [21:37:12]NVStorageSaveData done [21:37:12]OFDSenderStorePacket done [21:37:12]KKMCreateOFDPacket done [21:37:12]NVStorageSaveData kkm_last_timestamp [21:37:12]File name is /storage/kkm_last_timestamp [21:37:12]Write 4 bytes [21:37:12]NVStorageSaveData done [21:37:12]ExternCall_PrintAddStr [21:37:12]wPrintStart [21:37:12]Write to MH i2c: 01 00 00 0B 11 1C [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: 01 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: 01 07 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: 01 07 00 0B 11 00 00 00 00 00 FF 0F 31 [21:37:12]RasterBufferAndPrint [21:37:12]line Счет N : (3)184069 [21:37:12]line ИНН: 02508201610067 [21:37:12]line Контрольно-Кассовый Чек [21:37:12]line ПРОДАЖА [21:37:12]line Товар: 2000034730018 [21:37:12]line Кофе Американо (GABB TRADE) [21:37:12]line 2.000 * 75.00 [21:37:12]line = 150.00 [21:37:12]line НДС 12% НСП 1% [21:37:12]line > о реализуемом товаре [21:37:12]line Товар: 4630056952563 [21:37:12]line Печ Юбилейное Торжество молочное 120г [21:37:12]line 1.000 * 59.00 [21:37:12]line = 59.00 [21:37:12]line НДС 12% НСП 1% [21:37:12]line > о реализуемом товаре [21:37:12]line ИТОГО: 209.00 [21:37:12]line НСП 1% : 1.85 [21:37:12]line НДС 12% : 22.19 [21:37:12]line Наличными: 209.00 [21:37:12]line Безнал.: 0.00 [21:37:12]line Место: АЗС № 120 "Партнер Нефть" [21:37:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:37:12]line СНО: Общий режим [21:37:12]line Чек 108 18.06.2024 21:37 [21:37:12]line Смена: 323 ФФД: 1.0 [21:37:12]line ЗНМ: 0300000172 [21:37:12]line РНМ: 0000000000092786 [21:37:12]line Версия ККМ: 001 [21:37:12]line ФМ: 0000000000875095 [21:37:12]line ФД: 34286 [21:37:12]line ФПД: 160397314634232 [21:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T213712&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34286&fm=160397314634232&tin=02508201610067®Number=0000000000092786&sum=20900 [21:37:12]line 0 [21:37:12]written 0, free lines is 4095 [21:37:12]OFD Sender: Processing packet 34286 [packets to send 8, broken 7] [21:37:12]ProducePacketName [21:37:12]name=ofd_packets/00034286 [21:37:12]OFD Sender: To server: pG, [21:37:12]CommunicateWithHost lk.salyk.kg:30040 [21:37:12]ConnectInit lk.salyk.kg [21:37:13]Connected sock=10 [21:37:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 B9 01 00 00 39 F2 B1 01 73 D1 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 08 FE 71 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EE 85 00 00 35 04 06 00 91 E1 68 F6 31 F8 26 D6 D8 9A 80 96 F3 C4 [21:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 3B 0D 47 00 03 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EE 85 00 00 F4 03 04 00 D7 A4 71 66 B6 04 01 00 00 9E 46 70 32 8F C6 85 26 [21:37:13]CommunicateWithHost err = 0 [21:37:13]CheckOFDResponse [21:37:13]1017 (14) - 77093643461234 [21:37:13]1041 (16) - 0000000000875095 [21:37:13]1040 (4) - 34286 [21:37:13]1012 (4) - 18.06.2024 15:16 [21:37:13]1206 (1) - 0 [21:37:13]OFD Sender: Remove packet 34286 [21:37:13]ProducePacketName [21:37:13]name=ofd_packets/00034286 [21:37:13]NVStorageDeleteData [21:37:13]Write to MH i2c: 01 00 00 3B 11 4C [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 07 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 07 00 3B 11 00 00 00 00 00 8C 0C EB [21:37:13]RasterBufferAndPrint [21:37:13]line [21:37:13]line [21:37:13]line [21:37:13]line [21:37:13]line [21:37:13]written 0, free lines is 3217 [21:37:13]MH_Cut [21:37:13]Write to MH i2c: D1 01 00 42 11 01 25 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: D1 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: D1 01 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: D1 01 00 42 11 00 24 [21:37:13]Write to MH i2c: 01 00 00 43 11 54 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]OFD Sender: No OFD packet to send [21:37:14]*** Cut start [21:37:14]*** Partial cut [21:37:14]*** CUTSNS_PIN = 1 [21:37:14]*** CUTSNS_PIN = 0 [21:37:14]*** Brake cut motor [21:37:14]Read from MH i2c: 01 [21:37:14]MH_I2C_Read... [21:37:14]*** Stop cut motor [21:37:14]*** Cut end [21:37:14]Read from MH i2c: 01 07 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 FF 0F 69 [21:37:14]process_action close_receipt done [21:37:14]requested_data is exist [21:37:14]produce_requested_data [21:37:14]requested_item fm.sn is exist - process it [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 11 00 00 [21:37:14]Write to MH i2c: E2 08 00 44 11 80 11 00 00 00 00 00 00 CF [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:14]Read from MH i2c: E2 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 17 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: E2 17 00 44 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 24 [21:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:37:14]wFMCommunicate OK [21:37:14]requested_item fd.num is exist - process it [21:37:14]SAM_PROTO_GetFieldsCounters [21:37:14]wFMCommunicate request_size=4 [21:37:14]MH_SAM_APDU [21:37:14]CAPDU: 80 13 00 00 [21:37:14]Write to MH i2c: E2 08 00 45 11 80 13 00 00 00 00 00 00 D2 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 62 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 62 00 45 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EE 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [21:37:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EE 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:15]wFMCommunicate OK [21:37:15]SAM_PROTO_GetFieldsCounters done [21:37:15]requested_item shift.num is exist - process it [21:37:15]requested_item shift.opened is exist - process it [21:37:15]req_shift_opened [21:37:15]FM_GetShiftState [21:37:15]SAM_PROTO_GetShiftState [21:37:15]wFMCommunicate request_size=4 [21:37:15]MH_SAM_APDU [21:37:15]CAPDU: 80 13 01 00 [21:37:15]Write to MH i2c: E2 08 00 46 11 80 13 01 00 00 00 00 00 D4 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 0E 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 0E 00 46 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 1F [21:37:15]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:37:15]wFMCommunicate OK [21:37:15]SAM_PROTO_GetShiftState done [21:37:15]FM_GetShiftState done [21:37:15]req_shift_opened done [21:37:15]requested_item shift.open_date is exist - process it [21:37:15]req_shift_open_date [21:37:15]req_shift_open_date done [21:37:15]produce_requested_data done [21:37:15]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34286,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [21:37:15]process_action_free close_receipt [21:37:15]json_value_free [21:37:15]json_value_free done [21:37:15]process_json_proto returns [21:37:15]Send response to host [21:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34286,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [21:37:15]free response buf [21:37:15]execute_script done [21:37:15]execute_script returns [21:37:15]free content buf [21:37:15]Sock 7.Close socket [21:37:15]Sock 7.Thread stoped [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21: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:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:36]accept exits with 9 [21:48:36]New connection [21:48:36]New thread 3067424100 created [21:48:36]Thread 3067567460 joined [21:48:36]Waiting for new connection... [21:48:36] Sock 9.Parse request [21:48:36]Sock 9.Check first char [21:48:36]Sock 9.First char is OK [21:48:36]request: POST /json_proto HTTP/1.0 [21:48:36]Method: POST [21:48:36]URL: /json_proto [21:48:36]Method is POST - this is cgi request [21:48:36]url: /json_proto [21:48:36]query_string will be loaded in cgi processing [21:48:36]execute_cgi json_proto POST (null) [21:48:36]execute_cgi path=json_proto method=POST [21:48:36]POST find Content-Length [21:48:36]Host: 172.17.38.134:8080 [21:48:36]Content-Length: 649 [21:48:36]Content-Type: application/json [21:48:36] [21:48:36]POST finish read [21:48:36]Found Content-Length = 649 [21:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184070", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.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" ] } } [21:48:36]execute_script... [21:48: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 : (3)184070", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.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" ] } } [21:48:36]POST & json_proto [21:48:36]process_json_proto [21:48:36]json parsed OK: [21:48:36]protocol is kg_v1.0 [21:48:36]action value=close_receipt [21:48:36]process_action close_receipt [21:48:36]cmd_close_receipt [21:48:36]MH_GetDate [21:48:36]Write to MH i2c: F0 00 00 47 11 47 [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: F0 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: F0 09 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: F0 09 00 47 11 00 B6 00 72 66 13 9C 7C 64 6D [21:48:36]GetLastDocTimeStamp 1718746632 [21:48:36]current date 1718747318 [21:48:36]FM_GetShiftState [21:48:36]SAM_PROTO_GetShiftState [21:48:36]wFMCommunicate request_size=4 [21:48:36]MH_SAM_APDU [21:48:36]CAPDU: 80 13 01 00 [21:48:36]Write to MH i2c: E2 08 00 48 11 80 13 01 00 00 00 00 00 D6 [21:48:36]Write i2c OK [21:48:36]MH_I2C_Read... [21:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:36]Read from MH i2c: E2 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 0E 00 [21:48:36]MH_I2C_Read... [21:48:36]Read from MH i2c: E2 0E 00 48 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 21 [21:48:36]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:48:36]wFMCommunicate OK [21:48:36]SAM_PROTO_GetShiftState done [21:48:36]FM_GetShiftState done [21:48:36]opened in 1718670230 [21:48:36]opened+sec_in_day 1718756630 [21:48:36]quantity*price = 15000 [21:48:36]sum+1 = 15001 [21:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 109 18.06.2024 21:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34287 ФПД: 265800249737054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T214838&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34287&fm=265800249737054&tin=02508201610067®Number=0000000000092786&sum=15000 0 [21:48:37]StoreToDocumentArchive [21:48:37]shift 323 fd 34287 [21:48:37]save to /storage/0323/doc_00034287 [21:48:37]save last doc name /storage/0323/doc_00034287 to /storage/kkm_last_doc_name [21:48:37]save OK [21:48:37]Clear old archive folders... [21:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:48:37]tlvbuf is 019695F0 [21:48:37]SAM_PROTO_ClearQueue [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 09 00 00 [21:48:37]Write to MH i2c: E2 08 00 55 11 80 09 00 00 00 00 00 00 D8 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 03 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [21:48:37]RAPDU: 90 00 [21:48:37]wFMCommunicate OK [21:48:37]SAM_PROTO_ClearQueue done [21:48:37]KKMCreateOFDPacket [21:48:37]OFDProtocolAddRootSTLVToBuf [21:48:37]FM_MakeSignedData [21:48:37]FM_MakeSignedData [21:48:37]SAM_PROTO_SignData [21:48:37]wFMCommunicate request_size=4 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 0D 01 02 [21:48:37]Write to MH i2c: E2 08 00 56 11 80 0D 01 02 00 00 00 00 E0 [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:37]Read from MH i2c: E2 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 03 00 [21:48:37]MH_I2C_Read... [21:48:37]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [21:48:37]RAPDU: 90 00 [21:48:37]wFMCommunicate OK [21:48:37]wFMCommunicate request_size=255 [21:48:37]MH_SAM_APDU [21:48:37]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6D 00 00 00 F4 03 04 00 B6 00 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 [21:48:37]Write to MH i2c: E2 02 01 57 11 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6D 00 00 00 F4 03 04 00 B6 00 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 00 00 0D [21:48:37]Write i2c OK [21:48:37]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 03 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [21:48:38]RAPDU: 90 00 [21:48:38]wFMCommunicate OK [21:48:38]wFMCommunicate request_size=41 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EF 85 00 00 35 04 06 00 F1 BE 71 77 7F 5E [21:48:38]Write to MH i2c: E2 2C 00 58 11 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EF 85 00 00 35 04 06 00 F1 BE 71 77 7F 5E 00 00 9C [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 03 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [21:48:38]RAPDU: 90 00 [21:48:38]wFMCommunicate OK [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 0D 03 02 [21:48:38]Write to MH i2c: E2 08 00 59 11 80 0D 03 02 00 00 00 00 E5 [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 0B 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 0B 00 59 11 00 CA 01 E1 19 D0 54 D1 23 90 00 C3 [21:48:38]RAPDU: CA 01 E1 19 D0 54 D1 23 90 00 [21:48:38]wFMCommunicate OK [21:48:38]SAM_PROTO_SignData done [21:48:38]FM_MakeSignedData done [21:48:38]CreateOFDProtocolMessage [21:48:38]wFMCommunicate request_size=4 [21:48:38]MH_SAM_APDU [21:48:38]CAPDU: 80 11 00 00 [21:48:38]Write to MH i2c: E2 08 00 5A 11 80 11 00 00 00 00 00 00 E5 [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:38]Read from MH i2c: E2 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 17 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: E2 17 00 5A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 3A [21:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:48:38]wFMCommunicate OK [21:48:38]CreateOFDProtocolMessage done [21:48:38]OFDSenderStorePacket 34287 [21:48:38]StoreOFDPacket docnum=34287 [21:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 B0 40 26 01 EC E5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6D 00 00 00 F4 03 04 00 B6 00 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EF 85 00 00 35 04 06 00 F1 BE 71 77 7F 5E CA 01 E1 19 D0 54 D1 23 [21:48:38]CheckFolder [21:48:38]dirname=/storage/ofd_packets [21:48:38]CheckFolder done [21:48:38]ProducePacketName [21:48:38]name=ofd_packets/00034287 [21:48:38]NVStorageSaveData ofd_packets/00034287 [21:48:38]File name is /storage/ofd_packets/00034287 [21:48:38]Write 332 bytes [21:48:38]NVStorageSaveData done [21:48:38]OFDSenderStorePacket done [21:48:38]KKMCreateOFDPacket done [21:48:38]NVStorageSaveData kkm_last_timestamp [21:48:38]File name is /storage/kkm_last_timestamp [21:48:38]Write 4 bytes [21:48:38]NVStorageSaveData done [21:48:38]ExternCall_PrintAddStr [21:48:38]wPrintStart [21:48:38]Write to MH i2c: 01 00 00 5B 11 6C [21:48:38]Write i2c OK [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: 01 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: 01 07 00 [21:48:38]MH_I2C_Read... [21:48:38]Read from MH i2c: 01 07 00 5B 11 00 00 00 00 00 FF 0F 81 [21:48:38]RasterBufferAndPrint [21:48:38]line Счет N : (3)184070 [21:48:38]line ИНН: 02508201610067 [21:48:38]line Контрольно-Кассовый Чек [21:48:38]line ПРОДАЖА [21:48:38]line Товар: 2000034730018 [21:48:38]line Кофе Американо (GABB TRADE) [21:48:38]line 2.000 * 75.00 [21:48:38]line = 150.00 [21:48:38]line НДС 12% НСП 1% [21:48:38]line > о реализуемом товаре [21:48:38]line ИТОГО: 150.00 [21:48:38]line НСП 1% : 1.33 [21:48:38]line НДС 12% : 15.93 [21:48:38]line Наличными: 150.00 [21:48:38]line Безнал.: 0.00 [21:48:38]line Место: АЗС № 120 "Партнер Нефть" [21:48:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:48:38]line СНО: Общий режим [21:48:38]line Чек 109 18.06.2024 21:48 [21:48:38]line Смена: 323 ФФД: 1.0 [21:48:38]line ЗНМ: 0300000172 [21:48:38]line РНМ: 0000000000092786 [21:48:38]line Версия ККМ: 001 [21:48:38]line ФМ: 0000000000875095 [21:48:38]line ФД: 34287 [21:48:38]line ФПД: 265800249737054 [21:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T214838&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34287&fm=265800249737054&tin=02508201610067®Number=0000000000092786&sum=15000 [21:48:38]line 0 [21:48:38]OFD Sender: Processing packet 34287 [packets to send 8, broken 7] [21:48:38]ProducePacketName [21:48:38]name=ofd_packets/00034287 [21:48:38]OFD Sender: To server: pG, [21:48:38]CommunicateWithHost lk.salyk.kg:30040 [21:48:38]ConnectInit lk.salyk.kg [21:48:38]written 0, free lines is 4095 [21:48:38]Connected sock=10 [21:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 2E 01 00 00 B0 40 26 01 EC E5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6D 00 00 00 F4 03 04 00 B6 00 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EF 85 00 00 35 04 06 00 F1 BE 71 77 7F 5E CA 01 E1 19 D0 54 D1 23 [21:48:39]Write to MH i2c: 01 00 00 84 11 95 [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 15 C7 47 00 F9 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 EF 85 00 00 F4 03 04 00 85 A7 71 66 B6 04 01 00 00 DB 17 0C 74 2E 86 73 EA [21:48:39]CommunicateWithHost err = 0 [21:48:39]CheckOFDResponse [21:48:39]1017 (14) - 77093643461234 [21:48:39]1041 (16) - 0000000000875095 [21:48:39]1040 (4) - 34287 [21:48:39]1012 (4) - 18.06.2024 15:28 [21:48:39]1206 (1) - 0 [21:48:39]OFD Sender: Remove packet 34287 [21:48:39]ProducePacketName [21:48:39]name=ofd_packets/00034287 [21:48:39]NVStorageDeleteData [21:48:39]Read from MH i2c: 01 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: 01 07 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: 01 07 00 84 11 00 00 00 00 00 EC 0C 94 [21:48:39]RasterBufferAndPrint [21:48:39]line [21:48:39]line [21:48:39]line [21:48:39]line [21:48:39]line [21:48:39]written 0, free lines is 3337 [21:48:39]MH_Cut [21:48:39]Write to MH i2c: D1 01 00 8B 11 01 6E [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: D1 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: D1 01 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: D1 01 00 8B 11 00 6D [21:48:39]Write to MH i2c: 01 00 00 8C 11 9D [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]OFD Sender: No OFD packet to send [21:48:39]*** Cut start [21:48:39]*** Partial cut [21:48:39]*** CUTSNS_PIN = 1 [21:48:39]*** CUTSNS_PIN = 0 [21:48:40]*** Brake cut motor [21:48:40]Read from MH i2c: 01 [21:48:40]MH_I2C_Read... [21:48:40]*** Stop cut motor [21:48:40]*** Cut end [21:48:40]Read from MH i2c: 01 07 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: 01 07 00 8C 11 00 00 00 00 00 FF 0F B2 [21:48:40]process_action close_receipt done [21:48:40]requested_data is exist [21:48:40]produce_requested_data [21:48:40]requested_item fm.sn is exist - process it [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 11 00 00 [21:48:40]Write to MH i2c: E2 08 00 8D 11 80 11 00 00 00 00 00 00 18 [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:40]Read from MH i2c: E2 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 17 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 17 00 8D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 6D [21:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [21:48:40]wFMCommunicate OK [21:48:40]requested_item fd.num is exist - process it [21:48:40]SAM_PROTO_GetFieldsCounters [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 13 00 00 [21:48:40]Write to MH i2c: E2 08 00 8E 11 80 13 00 00 00 00 00 00 1B [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:40]Read from MH i2c: E2 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 62 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 62 00 8E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [21:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 EF 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:40]wFMCommunicate OK [21:48:40]SAM_PROTO_GetFieldsCounters done [21:48:40]requested_item shift.num is exist - process it [21:48:40]requested_item shift.opened is exist - process it [21:48:40]req_shift_opened [21:48:40]FM_GetShiftState [21:48:40]SAM_PROTO_GetShiftState [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 13 01 00 [21:48:40]Write to MH i2c: E2 08 00 8F 11 80 13 01 00 00 00 00 00 1D [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:40]Read from MH i2c: E2 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 0E 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 0E 00 8F 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 68 [21:48:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [21:48:40]wFMCommunicate OK [21:48:40]SAM_PROTO_GetShiftState done [21:48:40]FM_GetShiftState done [21:48:40]req_shift_opened done [21:48:40]requested_item shift.open_date is exist - process it [21:48:40]req_shift_open_date [21:48:40]req_shift_open_date done [21:48:40]produce_requested_data done [21:48:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34287,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [21:48:40]process_action_free close_receipt [21:48:40]json_value_free [21:48:40]json_value_free done [21:48:40]process_json_proto returns [21:48:40]Send response to host [21:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34287,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [21:48:40]free response buf [21:48:40]execute_script done [21:48:40]execute_script returns [21:48:40]free content buf [21:48:40]Sock 9.Close socket [21:48:40]Sock 9.Thread stoped [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:31]accept exits with 7 [22:06:31]New connection [22:06:31]New thread 3067567460 created [22:06:31]Thread 3067424100 joined [22:06:31]Waiting for new connection... [22:06:31] Sock 7.Parse request [22:06:31]Sock 7.Check first char [22:06:31]Sock 7.First char is OK [22:06:31]request: POST /json_proto HTTP/1.0 [22:06:31]Method: POST [22:06:31]URL: /json_proto [22:06:31]Method is POST - this is cgi request [22:06:31]url: /json_proto [22:06:31]query_string will be loaded in cgi processing [22:06:31]execute_cgi json_proto POST (null) [22:06:31]execute_cgi path=json_proto method=POST [22:06:31]POST find Content-Length [22:06:31]Host: 172.17.38.134:8080 [22:06:31]Content-Length: 633 [22:06:31]Content-Type: application/json [22:06:31] [22:06:31]POST finish read [22:06:31]Found Content-Length = 633 [22:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184071", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:31]execute_script... [22:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184071", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:31]POST & json_proto [22:06:31]process_json_proto [22:06:31]json parsed OK: [22:06:31]protocol is kg_v1.0 [22:06:31]action value=close_receipt [22:06:31]process_action close_receipt [22:06:31]cmd_close_receipt [22:06:31]MH_GetDate [22:06:31]Write to MH i2c: F0 00 00 90 11 90 [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: F0 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: F0 09 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: F0 09 00 90 11 00 E9 04 72 66 13 9C 7C 64 ED [22:06:31]GetLastDocTimeStamp 1718747318 [22:06:31]current date 1718748393 [22:06:31]FM_GetShiftState [22:06:31]SAM_PROTO_GetShiftState [22:06:31]wFMCommunicate request_size=4 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 13 01 00 [22:06:31]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 0E 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 6A [22:06:31]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [22:06:31]wFMCommunicate OK [22:06:31]SAM_PROTO_GetShiftState done [22:06:31]FM_GetShiftState done [22:06:31]opened in 1718670230 [22:06:31]opened+sec_in_day 1718756630 [22:06:31]quantity*price = 7500 [22:06:31]sum+1 = 7501 [22:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 110 18.06.2024 22:06 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34288 ФПД: 45583675128130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220633&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34288&fm=45583675128130&tin=02508201610067®Number=0000000000092786&sum=7500 0 [22:06:32]StoreToDocumentArchive [22:06:32]shift 323 fd 34288 [22:06:32]save to /storage/0323/doc_00034288 [22:06:32]save last doc name /storage/0323/doc_00034288 to /storage/kkm_last_doc_name [22:06:32]save OK [22:06:32]Clear old archive folders... [22:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=268 [22:06:32]tlvbuf is 01933110 [22:06:32]SAM_PROTO_ClearQueue [22:06:32]wFMCommunicate request_size=4 [22:06:32]MH_SAM_APDU [22:06:32]CAPDU: 80 09 00 00 [22:06:32]Write to MH i2c: E2 08 00 9E 11 80 09 00 00 00 00 00 00 21 [22:06:32]Write i2c OK [22:06:32]MH_I2C_Read... [22:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:32]Read from MH i2c: E2 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: E2 03 00 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [22:06:32]RAPDU: 90 00 [22:06:32]wFMCommunicate OK [22:06:32]SAM_PROTO_ClearQueue done [22:06:32]KKMCreateOFDPacket [22:06:32]OFDProtocolAddRootSTLVToBuf [22:06:32]FM_MakeSignedData [22:06:32]FM_MakeSignedData [22:06:32]SAM_PROTO_SignData [22:06:32]wFMCommunicate request_size=4 [22:06:32]MH_SAM_APDU [22:06:32]CAPDU: 80 0D 01 02 [22:06:32]Write to MH i2c: E2 08 00 9F 11 80 0D 01 02 00 00 00 00 29 [22:06:32]Write i2c OK [22:06:32]MH_I2C_Read... [22:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:32]Read from MH i2c: E2 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: E2 03 00 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [22:06:32]RAPDU: 90 00 [22:06:32]wFMCommunicate OK [22:06:32]wFMCommunicate request_size=255 [22:06:32]MH_SAM_APDU [22:06:32]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E9 04 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [22:06:32]Write to MH i2c: E2 02 01 A0 11 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E9 04 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 02 [22:06:32]Write i2c OK [22:06:32]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 03 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 03 00 A0 11 00 90 00 25 [22:06:33]RAPDU: 90 00 [22:06:33]wFMCommunicate OK [22:06:33]wFMCommunicate request_size=27 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 0D 02 02 16 35 30 39 35 10 04 04 00 F0 85 00 00 35 04 06 00 29 75 46 C3 79 42 [22:06:33]Write to MH i2c: E2 1E 00 A1 11 80 0D 02 02 16 00 35 30 39 35 10 04 04 00 F0 85 00 00 35 04 06 00 29 75 46 C3 79 42 00 00 59 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 03 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [22:06:33]RAPDU: 90 00 [22:06:33]wFMCommunicate OK [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 0D 03 02 [22:06:33]Write to MH i2c: E2 08 00 A2 11 80 0D 03 02 00 00 00 00 2E [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0B 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0B 00 A2 11 00 84 57 F5 0C F2 8F 48 0B 90 00 DF [22:06:33]RAPDU: 84 57 F5 0C F2 8F 48 0B 90 00 [22:06:33]wFMCommunicate OK [22:06:33]SAM_PROTO_SignData done [22:06:33]FM_MakeSignedData done [22:06:33]CreateOFDProtocolMessage [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 11 00 00 [22:06:33]Write to MH i2c: E2 08 00 A3 11 80 11 00 00 00 00 00 00 2E [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 17 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 17 00 A3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 83 [22:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:06:33]wFMCommunicate OK [22:06:33]CreateOFDProtocolMessage done [22:06:33]OFDSenderStorePacket 34288 [22:06:33]StoreOFDPacket docnum=34288 [22:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 20 01 00 00 A0 7F 18 01 30 92 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E9 04 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F0 85 00 00 35 04 06 00 29 75 46 C3 79 42 84 57 F5 0C F2 8F 48 0B [22:06:33]CheckFolder [22:06:33]dirname=/storage/ofd_packets [22:06:33]CheckFolder done [22:06:33]ProducePacketName [22:06:33]name=ofd_packets/00034288 [22:06:33]NVStorageSaveData ofd_packets/00034288 [22:06:33]File name is /storage/ofd_packets/00034288 [22:06:33]Write 318 bytes [22:06:33]NVStorageSaveData done [22:06:33]OFDSenderStorePacket done [22:06:33]KKMCreateOFDPacket done [22:06:33]NVStorageSaveData kkm_last_timestamp [22:06:33]File name is /storage/kkm_last_timestamp [22:06:33]Write 4 bytes [22:06:33]NVStorageSaveData done [22:06:33]ExternCall_PrintAddStr [22:06:33]wPrintStart [22:06:33]Write to MH i2c: 01 00 00 A4 11 B5 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 07 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 07 00 A4 11 00 00 00 00 00 FF 0F CA [22:06:33]RasterBufferAndPrint [22:06:33]line Счет N : (3)184071 [22:06:33]line ИНН: 02508201610067 [22:06:33]line Контрольно-Кассовый Чек [22:06:33]line ПРОДАЖА [22:06:33]line Товар: 40822938 [22:06:33]line Напиток Фанта 0,5л [22:06:33]line 1.000 * 75.00 [22:06:33]line = 75.00 [22:06:33]line НДС 12% НСП 1% [22:06:33]line > о реализуемом товаре [22:06:33]line ИТОГО: 75.00 [22:06:33]line НСП 1% : 0.66 [22:06:33]line НДС 12% : 7.96 [22:06:33]line Наличными: 75.00 [22:06:33]line Безнал.: 0.00 [22:06:33]line Место: АЗС № 120 "Партнер Нефть" [22:06:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:06:33]line СНО: Общий режим [22:06:33]line Чек 110 18.06.2024 22:06 [22:06:33]line Смена: 323 ФФД: 1.0 [22:06:33]line ЗНМ: 0300000172 [22:06:33]line РНМ: 0000000000092786 [22:06:33]line Версия ККМ: 001 [22:06:33]line ФМ: 0000000000875095 [22:06:33]line ФД: 34288 [22:06:33]line ФПД: 45583675128130 [22:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220633&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34288&fm=45583675128130&tin=02508201610067®Number=0000000000092786&sum=7500 [22:06:33]line 0 [22:06:33]OFD Sender: Processing packet 34288 [packets to send 8, broken 7] [22:06:33]ProducePacketName [22:06:33]name=ofd_packets/00034288 [22:06:33]OFD Sender: To server: pG, [22:06:33]CommunicateWithHost lk.salyk.kg:30040 [22:06:33]ConnectInit lk.salyk.kg [22:06:33]written 0, free lines is 4095 [22:06:33]Connected sock=10 [22:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 20 01 00 00 A0 7F 18 01 30 92 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E9 04 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F0 85 00 00 35 04 06 00 29 75 46 C3 79 42 84 57 F5 0C F2 8F 48 0B [22:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 73 E3 47 00 0B 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F0 85 00 00 F4 03 04 00 B8 AB 71 66 B6 04 01 00 00 E3 09 86 EE EB 8C EE 34 [22:06:33]CommunicateWithHost err = 0 [22:06:33]CheckOFDResponse [22:06:33]1017 (14) - 77093643461234 [22:06:33]1041 (16) - 0000000000875095 [22:06:33]1040 (4) - 34288 [22:06:33]1012 (4) - 18.06.2024 15:46 [22:06:33]1206 (1) - 0 [22:06:33]OFD Sender: Remove packet 34288 [22:06:33]ProducePacketName [22:06:33]name=ofd_packets/00034288 [22:06:33]NVStorageDeleteData [22:06:33]Write to MH i2c: 01 00 00 CC 11 DD [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 07 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 01 0D F2 [22:06:33]RasterBufferAndPrint [22:06:33]line [22:06:33]line [22:06:33]line [22:06:33]line [22:06:33]line [22:06:33]written 0, free lines is 3336 [22:06:33]MH_Cut [22:06:33]Write to MH i2c: D1 01 00 D3 11 01 B6 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: D1 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: D1 01 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: D1 01 00 D3 11 00 B5 [22:06:33]Write to MH i2c: 01 00 00 D4 11 E5 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:34]OFD Sender: No OFD packet to send [22:06:34]*** Cut start [22:06:34]*** Partial cut [22:06:34]*** CUTSNS_PIN = 1 [22:06:34]*** CUTSNS_PIN = 0 [22:06:34]*** Brake cut motor [22:06:35]Read from MH i2c: 01 [22:06:35]MH_I2C_Read... [22:06:35]*** Stop cut motor [22:06:35]*** Cut end [22:06:35]Read from MH i2c: 01 07 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 FF 0F FA [22:06:35]process_action close_receipt done [22:06:35]requested_data is exist [22:06:35]produce_requested_data [22:06:35]requested_item fm.sn is exist - process it [22:06:35]wFMCommunicate request_size=4 [22:06:35]MH_SAM_APDU [22:06:35]CAPDU: 80 11 00 00 [22:06:35]Write to MH i2c: E2 08 00 D5 11 80 11 00 00 00 00 00 00 60 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:35]Read from MH i2c: E2 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 17 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 17 00 D5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B5 [22:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:06:35]wFMCommunicate OK [22:06:35]requested_item fd.num is exist - process it [22:06:35]SAM_PROTO_GetFieldsCounters [22:06:35]wFMCommunicate request_size=4 [22:06:35]MH_SAM_APDU [22:06:35]CAPDU: 80 13 00 00 [22:06:35]Write to MH i2c: E2 08 00 D6 11 80 13 00 00 00 00 00 00 63 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:35]Read from MH i2c: E2 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 62 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 62 00 D6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F0 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [22:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F0 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:35]wFMCommunicate OK [22:06:35]SAM_PROTO_GetFieldsCounters done [22:06:35]requested_item shift.num is exist - process it [22:06:35]requested_item shift.opened is exist - process it [22:06:35]req_shift_opened [22:06:35]FM_GetShiftState [22:06:35]SAM_PROTO_GetShiftState [22:06:35]wFMCommunicate request_size=4 [22:06:35]MH_SAM_APDU [22:06:35]CAPDU: 80 13 01 00 [22:06:35]Write to MH i2c: E2 08 00 D7 11 80 13 01 00 00 00 00 00 65 [22:06:35]Write i2c OK [22:06:35]MH_I2C_Read... [22:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:35]Read from MH i2c: E2 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 0E 00 [22:06:35]MH_I2C_Read... [22:06:35]Read from MH i2c: E2 0E 00 D7 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B0 [22:06:35]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [22:06:35]wFMCommunicate OK [22:06:35]SAM_PROTO_GetShiftState done [22:06:35]FM_GetShiftState done [22:06:35]req_shift_opened done [22:06:35]requested_item shift.open_date is exist - process it [22:06:35]req_shift_open_date [22:06:35]req_shift_open_date done [22:06:35]produce_requested_data done [22:06:35]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34288,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [22:06:35]process_action_free close_receipt [22:06:35]json_value_free [22:06:35]json_value_free done [22:06:35]process_json_proto returns [22:06:35]Send response to host [22:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34288,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [22:06:35]free response buf [22:06:35]execute_script done [22:06:35]execute_script returns [22:06:35]free content buf [22:06:35]Sock 7.Close socket [22:06:35]Sock 7.Thread stoped [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:21]accept exits with 9 [22:08:21]New connection [22:08:21]New thread 3067424100 created [22:08:21]Thread 3067567460 joined [22:08:21]Waiting for new connection... [22:08:21] Sock 9.Parse request [22:08:21]Sock 9.Check first char [22:08:21]Sock 9.First char is OK [22:08:21]request: POST /json_proto HTTP/1.0 [22:08:21]Method: POST [22:08:21]URL: /json_proto [22:08:21]Method is POST - this is cgi request [22:08:21]url: /json_proto [22:08:21]query_string will be loaded in cgi processing [22:08:21]execute_cgi json_proto POST (null) [22:08:21]execute_cgi path=json_proto method=POST [22:08:21]POST find Content-Length [22:08:21]Host: 172.17.38.134:8080 [22:08:21]Content-Length: 956 [22:08:21]Content-Type: application/json [22:08:21] [22:08:21]POST finish read [22:08:21]Found Content-Length = 956 [22:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184072", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:21]execute_script... [22:08: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 : (3)184072", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 5.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:21]POST & json_proto [22:08:21]process_json_proto [22:08:21]json parsed OK: [22:08:21]protocol is kg_v1.0 [22:08:21]action value=close_receipt [22:08:21]process_action close_receipt [22:08:21]cmd_close_receipt [22:08:21]MH_GetDate [22:08:21]Write to MH i2c: F0 00 00 D8 11 D8 [22:08:21]Write i2c OK [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: F0 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: F0 09 00 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: F0 09 00 D8 11 00 57 05 72 66 13 9C 7C 64 A4 [22:08:21]GetLastDocTimeStamp 1718748393 [22:08:21]current date 1718748503 [22:08:21]FM_GetShiftState [22:08:21]SAM_PROTO_GetShiftState [22:08:21]wFMCommunicate request_size=4 [22:08:21]MH_SAM_APDU [22:08:21]CAPDU: 80 13 01 00 [22:08:21]Write to MH i2c: E2 08 00 D9 11 80 13 01 00 00 00 00 00 67 [22:08:21]Write i2c OK [22:08:21]MH_I2C_Read... [22:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:21]Read from MH i2c: E2 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: E2 0E 00 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: E2 0E 00 D9 11 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 B2 [22:08:21]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [22:08:21]wFMCommunicate OK [22:08:21]SAM_PROTO_GetShiftState done [22:08:21]FM_GetShiftState done [22:08:21]opened in 1718670230 [22:08:21]opened+sec_in_day 1718756630 [22:08:21]quantity*price = 20500 [22:08:21]sum+1 = 20501 [22:08:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 5.000 * 7.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 111 18.06.2024 22:08 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34289 ФПД: 110379595230287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220823&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34289&fm=110379595230287&tin=02508201610067®Number=0000000000092786&sum=24000 0 [22:08:22]StoreToDocumentArchive [22:08:22]shift 323 fd 34289 [22:08:22]save to /storage/0323/doc_00034289 [22:08:22]save last doc name /storage/0323/doc_00034289 to /storage/kkm_last_doc_name [22:08:22]save OK [22:08:22]Clear old archive folders... [22:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=397 [22:08:22]tlvbuf is 018F87D0 [22:08:22]SAM_PROTO_ClearQueue [22:08:22]wFMCommunicate request_size=4 [22:08:22]MH_SAM_APDU [22:08:22]CAPDU: 80 09 00 00 [22:08:22]Write to MH i2c: E2 08 00 E6 11 80 09 00 00 00 00 00 00 69 [22:08:22]Write i2c OK [22:08:22]MH_I2C_Read... [22:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:22]Read from MH i2c: E2 [22:08:22]MH_I2C_Read... [22:08:22]Read from MH i2c: E2 03 00 [22:08:22]MH_I2C_Read... [22:08:22]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [22:08:22]RAPDU: 90 00 [22:08:22]wFMCommunicate OK [22:08:22]SAM_PROTO_ClearQueue done [22:08:22]KKMCreateOFDPacket [22:08:22]OFDProtocolAddRootSTLVToBuf [22:08:22]FM_MakeSignedData [22:08:22]FM_MakeSignedData [22:08:22]SAM_PROTO_SignData [22:08:22]wFMCommunicate request_size=4 [22:08:22]MH_SAM_APDU [22:08:22]CAPDU: 80 0D 01 02 [22:08:22]Write to MH i2c: E2 08 00 E7 11 80 0D 01 02 00 00 00 00 71 [22:08:22]Write i2c OK [22:08:22]MH_I2C_Read... [22:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:22]Read from MH i2c: E2 [22:08:22]MH_I2C_Read... [22:08:22]Read from MH i2c: E2 03 00 [22:08:22]MH_I2C_Read... [22:08:22]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [22:08:22]RAPDU: 90 00 [22:08:22]wFMCommunicate OK [22:08:22]wFMCommunicate request_size=255 [22:08:22]MH_SAM_APDU [22:08:22]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 [22:08:22]Write to MH i2c: E2 02 01 E8 11 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 00 00 1D [22:08:23]Write i2c OK [22:08:23]MH_I2C_Read... [22:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:23]Read from MH i2c: E2 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 03 00 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 03 00 E8 11 00 90 00 6D [22:08:23]RAPDU: 90 00 [22:08:23]wFMCommunicate OK [22:08:23]wFMCommunicate request_size=156 [22:08:23]MH_SAM_APDU [22:08:23]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 57 05 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F1 85 00 00 35 04 06 00 64 63 C0 90 6C 4F [22:08:23]Write to MH i2c: E2 9F 00 E9 11 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 57 05 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F1 85 00 00 35 04 06 00 64 63 C0 90 6C 4F 00 00 F2 [22:08:23]Write i2c OK [22:08:23]MH_I2C_Read... [22:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:23]Read from MH i2c: E2 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 03 00 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [22:08:23]RAPDU: 90 00 [22:08:23]wFMCommunicate OK [22:08:23]wFMCommunicate request_size=4 [22:08:23]MH_SAM_APDU [22:08:23]CAPDU: 80 0D 03 02 [22:08:23]Write to MH i2c: E2 08 00 EA 11 80 0D 03 02 00 00 00 00 76 [22:08:23]Write i2c OK [22:08:23]MH_I2C_Read... [22:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:23]Read from MH i2c: E2 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 0B 00 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 0B 00 EA 11 00 90 BA 01 3E 8D E5 6E 0A 90 00 EA [22:08:23]RAPDU: 90 BA 01 3E 8D E5 6E 0A 90 00 [22:08:23]wFMCommunicate OK [22:08:23]SAM_PROTO_SignData done [22:08:23]FM_MakeSignedData done [22:08:23]CreateOFDProtocolMessage [22:08:23]wFMCommunicate request_size=4 [22:08:23]MH_SAM_APDU [22:08:23]CAPDU: 80 11 00 00 [22:08:23]Write to MH i2c: E2 08 00 EB 11 80 11 00 00 00 00 00 00 76 [22:08:23]Write i2c OK [22:08:23]MH_I2C_Read... [22:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:23]Read from MH i2c: E2 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 17 00 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: E2 17 00 EB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CB [22:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:08:23]wFMCommunicate OK [22:08:23]CreateOFDProtocolMessage done [22:08:23]OFDSenderStorePacket 34289 [22:08:23]StoreOFDPacket docnum=34289 [22:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A1 01 00 00 A4 5C 99 01 9C E4 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 57 05 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F1 85 00 00 35 04 06 00 64 63 C0 90 6C 4F 90 BA 01 3E 8D E5 6E 0A [22:08:23]CheckFolder [22:08:23]dirname=/storage/ofd_packets [22:08:23]CheckFolder done [22:08:23]ProducePacketName [22:08:23]name=ofd_packets/00034289 [22:08:23]NVStorageSaveData ofd_packets/00034289 [22:08:23]File name is /storage/ofd_packets/00034289 [22:08:23]Write 447 bytes [22:08:23]NVStorageSaveData done [22:08:23]OFDSenderStorePacket done [22:08:23]KKMCreateOFDPacket done [22:08:23]NVStorageSaveData kkm_last_timestamp [22:08:23]File name is /storage/kkm_last_timestamp [22:08:23]Write 4 bytes [22:08:23]NVStorageSaveData done [22:08:23]ExternCall_PrintAddStr [22:08:23]wPrintStart [22:08:23]Write to MH i2c: 01 00 00 EC 11 FD [22:08:23]Write i2c OK [22:08:23]MH_I2C_Read... [22:08:23]OFD Sender: Processing packet 34289 [packets to send 8, broken 7] [22:08:23]ProducePacketName [22:08:23]name=ofd_packets/00034289 [22:08:23]OFD Sender: To server: pG, [22:08:23]CommunicateWithHost lk.salyk.kg:30040 [22:08:23]ConnectInit lk.salyk.kg [22:08:23]Read from MH i2c: 01 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: 01 07 00 [22:08:23]MH_I2C_Read... [22:08:23]Read from MH i2c: 01 07 00 EC 11 00 00 00 00 00 FF 0F 12 [22:08:23]RasterBufferAndPrint [22:08:23]line Счет N : (3)184072 [22:08:23]line ИНН: 02508201610067 [22:08:23]line Контрольно-Кассовый Чек [22:08:23]line ПРОДАЖА [22:08:23]line Товар: 4602441000609 [22:08:23]line Напит Дюшес 1л стекло [22:08:23]line 1.000 * 205.00 [22:08:23]line = 205.00 [22:08:23]line НДС 12% НСП 1% [22:08:23]line > о реализуемом товаре [22:08:23]line Товар: 2000053020015 [22:08:23]line Бумажные стаканы 250мл 1шт [22:08:23]line 5.000 * 7.00 [22:08:23]line = 35.00 [22:08:23]line НДС 12% НСП 1% [22:08:23]line > о реализуемом товаре [22:08:23]line ИТОГО: 240.00 [22:08:23]line НСП 1% : 2.12 [22:08:23]line НДС 12% : 25.49 [22:08:23]line Наличными: 240.00 [22:08:23]line Безнал.: 0.00 [22:08:23]line Место: АЗС № 120 "Партнер Нефть" [22:08:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:08:23]line СНО: Общий режим [22:08:23]line Чек 111 18.06.2024 22:08 [22:08:23]line Смена: 323 ФФД: 1.0 [22:08:23]line ЗНМ: 0300000172 [22:08:23]line РНМ: 0000000000092786 [22:08:23]line Версия ККМ: 001 [22:08:23]line ФМ: 0000000000875095 [22:08:23]line ФД: 34289 [22:08:23]line ФПД: 110379595230287 [22:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T220823&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34289&fm=110379595230287&tin=02508201610067®Number=0000000000092786&sum=24000 [22:08:23]line 0 [22:08:23]written 0, free lines is 4095 [22:08:23]Connected sock=10 [22:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A1 01 00 00 A4 5C 99 01 9C E4 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 57 05 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F1 85 00 00 35 04 06 00 64 63 C0 90 6C 4F 90 BA 01 3E 8D E5 6E 0A [22:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 BB 9A 47 00 F0 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F1 85 00 00 F4 03 04 00 26 AC 71 66 B6 04 01 00 00 52 9C D3 2A 4B AF CE 51 [22:08:24]CommunicateWithHost err = 0 [22:08:24]CheckOFDResponse [22:08:24]1017 (14) - 77093643461234 [22:08:24]1041 (16) - 0000000000875095 [22:08:24]1040 (4) - 34289 [22:08:24]1012 (4) - 18.06.2024 15:47 [22:08:24]1206 (1) - 0 [22:08:24]OFD Sender: Remove packet 34289 [22:08:24]ProducePacketName [22:08:24]name=ofd_packets/00034289 [22:08:24]NVStorageDeleteData [22:08:24]Write to MH i2c: 01 00 00 1B 12 2D [22:08:24]Write i2c OK [22:08:24]MH_I2C_Read... [22:08:24]Read from MH i2c: 01 [22:08:24]MH_I2C_Read... [22:08:24]Read from MH i2c: 01 07 00 [22:08:24]MH_I2C_Read... [22:08:24]Read from MH i2c: 01 07 00 1B 12 00 00 00 00 00 8D 0C CD [22:08:24]RasterBufferAndPrint [22:08:24]line [22:08:24]line [22:08:24]line [22:08:24]line [22:08:24]line [22:08:24]written 0, free lines is 3220 [22:08:24]MH_Cut [22:08:24]Write to MH i2c: D1 01 00 22 12 01 06 [22:08:24]Write i2c OK [22:08:24]MH_I2C_Read... [22:08:24]Read from MH i2c: D1 [22:08:24]MH_I2C_Read... [22:08:24]Read from MH i2c: D1 01 00 [22:08:24]MH_I2C_Read... [22:08:24]Read from MH i2c: D1 01 00 22 12 00 05 [22:08:24]Write to MH i2c: 01 00 00 23 12 35 [22:08:24]Write i2c OK [22:08:24]MH_I2C_Read... [22:08:24]OFD Sender: No OFD packet to send [22:08:25]*** Cut start [22:08:25]*** Partial cut [22:08:25]*** CUTSNS_PIN = 1 [22:08:25]*** CUTSNS_PIN = 0 [22:08:25]*** Brake cut motor [22:08:25]Read from MH i2c: 01 [22:08:25]MH_I2C_Read... [22:08:25]*** Stop cut motor [22:08:25]*** Cut end [22:08:25]Read from MH i2c: 01 07 00 [22:08:25]MH_I2C_Read... [22:08:25]Read from MH i2c: 01 07 00 23 12 00 00 00 00 00 FF 0F 4A [22:08:25]process_action close_receipt done [22:08:25]requested_data is exist [22:08:25]produce_requested_data [22:08:25]requested_item fm.sn is exist - process it [22:08:25]wFMCommunicate request_size=4 [22:08:25]MH_SAM_APDU [22:08:25]CAPDU: 80 11 00 00 [22:08:25]Write to MH i2c: E2 08 00 24 12 80 11 00 00 00 00 00 00 B0 [22:08:25]Write i2c OK [22:08:25]MH_I2C_Read... [22:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:25]Read from MH i2c: E2 [22:08:25]MH_I2C_Read... [22:08:25]Read from MH i2c: E2 17 00 [22:08:25]MH_I2C_Read... [22:08:25]Read from MH i2c: E2 17 00 24 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 05 [22:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:08:25]wFMCommunicate OK [22:08:25]requested_item fd.num is exist - process it [22:08:25]SAM_PROTO_GetFieldsCounters [22:08:25]wFMCommunicate request_size=4 [22:08:25]MH_SAM_APDU [22:08:25]CAPDU: 80 13 00 00 [22:08:25]Write to MH i2c: E2 08 00 25 12 80 13 00 00 00 00 00 00 B3 [22:08:25]Write i2c OK [22:08:25]MH_I2C_Read... [22:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:26]Read from MH i2c: E2 [22:08:26]MH_I2C_Read... [22:08:26]Read from MH i2c: E2 62 00 [22:08:26]MH_I2C_Read... [22:08:26]Read from MH i2c: E2 62 00 25 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [22:08:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F1 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:26]wFMCommunicate OK [22:08:26]SAM_PROTO_GetFieldsCounters done [22:08:26]requested_item shift.num is exist - process it [22:08:26]requested_item shift.opened is exist - process it [22:08:26]req_shift_opened [22:08:26]FM_GetShiftState [22:08:26]SAM_PROTO_GetShiftState [22:08:26]wFMCommunicate request_size=4 [22:08:26]MH_SAM_APDU [22:08:26]CAPDU: 80 13 01 00 [22:08:26]Write to MH i2c: E2 08 00 26 12 80 13 01 00 00 00 00 00 B5 [22:08:26]Write i2c OK [22:08:26]MH_I2C_Read... [22:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:26]Read from MH i2c: E2 [22:08:26]MH_I2C_Read... [22:08:26]Read from MH i2c: E2 0E 00 [22:08:26]MH_I2C_Read... [22:08:26]Read from MH i2c: E2 0E 00 26 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 00 [22:08:26]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [22:08:26]wFMCommunicate OK [22:08:26]SAM_PROTO_GetShiftState done [22:08:26]FM_GetShiftState done [22:08:26]req_shift_opened done [22:08:26]requested_item shift.open_date is exist - process it [22:08:26]req_shift_open_date [22:08:26]req_shift_open_date done [22:08:26]produce_requested_data done [22:08:26]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34289,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [22:08:26]process_action_free close_receipt [22:08:26]json_value_free [22:08:26]json_value_free done [22:08:26]process_json_proto returns [22:08:26]Send response to host [22:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34289,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [22:08:26]free response buf [22:08:26]execute_script done [22:08:26]execute_script returns [22:08:26]free content buf [22:08:26]Sock 9.Close socket [22:08:26]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18: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:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]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:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]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:09]accept exits with 7 [22:57:09]New connection [22:57:09]New thread 3067567460 created [22:57:09]Thread 3067424100 joined [22:57:09]Waiting for new connection... [22:57:09] Sock 7.Parse request [22:57:09]Sock 7.Check first char [22:57:09]Sock 7.First char is OK [22:57:09]request: POST /json_proto HTTP/1.0 [22:57:09]Method: POST [22:57:09]URL: /json_proto [22:57:09]Method is POST - this is cgi request [22:57:09]url: /json_proto [22:57:09]query_string will be loaded in cgi processing [22:57:09]execute_cgi json_proto POST (null) [22:57:09]execute_cgi path=json_proto method=POST [22:57:09]POST find Content-Length [22:57:09]Host: 172.17.38.134:8080 [22:57:09]Content-Length: 728 [22:57:09]Content-Type: application/json [22:57:09] [22:57:09]POST finish read [22:57:09]Found Content-Length = 728 [22:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184073", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:09]execute_script... [22:57:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184073", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:09]POST & json_proto [22:57:09]process_json_proto [22:57:09]json parsed OK: [22:57:09]protocol is kg_v1.0 [22:57:09]action value=close_receipt [22:57:09]process_action close_receipt [22:57:09]cmd_close_receipt [22:57:09]MH_GetDate [22:57:09]Write to MH i2c: F0 00 00 27 12 28 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: F0 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: F0 09 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: F0 09 00 27 12 00 C7 10 72 66 13 9C 7C 64 6F [22:57:09]GetLastDocTimeStamp 1718748503 [22:57:09]current date 1718751431 [22:57:09]FM_GetShiftState [22:57:09]SAM_PROTO_GetShiftState [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 13 01 00 [22:57:09]Write to MH i2c: E2 08 00 28 12 80 13 01 00 00 00 00 00 B7 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 0E 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 0E 00 28 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 02 [22:57:09]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [22:57:09]wFMCommunicate OK [22:57:09]SAM_PROTO_GetShiftState done [22:57:09]FM_GetShiftState done [22:57:09]opened in 1718670230 [22:57:09]opened+sec_in_day 1718756630 [22:57:09]quantity*price = 12000 [22:57:09]sum+1 = 12001 [22:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 112 18.06.2024 22:57 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34290 ФПД: 201217668225494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T225711&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34290&fm=201217668225494&tin=02508201610067®Number=0000000000092786&sum=12000 0 [22:57:10]StoreToDocumentArchive [22:57:10]shift 323 fd 34290 [22:57:10]save to /storage/0323/doc_00034290 [22:57:10]save last doc name /storage/0323/doc_00034290 to /storage/kkm_last_doc_name [22:57:10]save OK [22:57:10]Clear old archive folders... [22:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=308 [22:57:10]tlvbuf is 018F9300 [22:57:10]SAM_PROTO_ClearQueue [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 09 00 00 [22:57:10]Write to MH i2c: E2 08 00 35 12 80 09 00 00 00 00 00 00 B9 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [22:57:10]RAPDU: 90 00 [22:57:10]wFMCommunicate OK [22:57:10]SAM_PROTO_ClearQueue done [22:57:10]KKMCreateOFDPacket [22:57:10]OFDProtocolAddRootSTLVToBuf [22:57:10]FM_MakeSignedData [22:57:10]FM_MakeSignedData [22:57:10]SAM_PROTO_SignData [22:57:10]wFMCommunicate request_size=4 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 0D 01 02 [22:57:10]Write to MH i2c: E2 08 00 36 12 80 0D 01 02 00 00 00 00 C1 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:10]Read from MH i2c: E2 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [22:57:10]RAPDU: 90 00 [22:57:10]wFMCommunicate OK [22:57:10]wFMCommunicate request_size=255 [22:57:10]MH_SAM_APDU [22:57:10]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C7 10 72 66 0E 04 04 00 43 01 00 00 B9 [22:57:10]Write to MH i2c: E2 02 01 37 12 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C7 10 72 66 0E 04 04 00 43 01 00 00 B9 00 00 54 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 03 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [22:57:11]RAPDU: 90 00 [22:57:11]wFMCommunicate OK [22:57:11]wFMCommunicate request_size=67 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F2 85 00 00 35 04 06 00 B7 01 A3 A3 19 D6 [22:57:11]Write to MH i2c: E2 46 00 38 12 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F2 85 00 00 35 04 06 00 B7 01 A3 A3 19 D6 00 00 89 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 03 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [22:57:11]RAPDU: 90 00 [22:57:11]wFMCommunicate OK [22:57:11]wFMCommunicate request_size=4 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 0D 03 02 [22:57:11]Write to MH i2c: E2 08 00 39 12 80 0D 03 02 00 00 00 00 C6 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 0B 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 0B 00 39 12 00 C3 5D A8 75 63 97 7B 8D 90 00 06 [22:57:11]RAPDU: C3 5D A8 75 63 97 7B 8D 90 00 [22:57:11]wFMCommunicate OK [22:57:11]SAM_PROTO_SignData done [22:57:11]FM_MakeSignedData done [22:57:11]CreateOFDProtocolMessage [22:57:11]wFMCommunicate request_size=4 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 11 00 00 [22:57:11]Write to MH i2c: E2 08 00 3A 12 80 11 00 00 00 00 00 00 C6 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 17 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 17 00 3A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1B [22:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:57:11]wFMCommunicate OK [22:57:11]CreateOFDProtocolMessage done [22:57:11]OFDSenderStorePacket 34290 [22:57:11]StoreOFDPacket docnum=34290 [22:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 48 01 00 00 1D 74 40 01 92 61 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C7 10 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F2 85 00 00 35 04 06 00 B7 01 A3 A3 19 D6 C3 5D A8 75 63 97 7B 8D [22:57:11]CheckFolder [22:57:11]dirname=/storage/ofd_packets [22:57:11]CheckFolder done [22:57:11]ProducePacketName [22:57:11]name=ofd_packets/00034290 [22:57:11]NVStorageSaveData ofd_packets/00034290 [22:57:11]File name is /storage/ofd_packets/00034290 [22:57:11]Write 358 bytes [22:57:11]NVStorageSaveData done [22:57:11]OFDSenderStorePacket done [22:57:11]KKMCreateOFDPacket done [22:57:11]NVStorageSaveData kkm_last_timestamp [22:57:11]File name is /storage/kkm_last_timestamp [22:57:11]Write 4 bytes [22:57:11]NVStorageSaveData done [22:57:11]ExternCall_PrintAddStr [22:57:11]wPrintStart [22:57:11]Write to MH i2c: 01 00 00 3B 12 4D [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 07 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 07 00 3B 12 00 00 00 00 00 FF 0F 62 [22:57:11]RasterBufferAndPrint [22:57:11]line Счет N : (3)184073 [22:57:11]line ИНН: 02508201610067 [22:57:11]line Контрольно-Кассовый Чек [22:57:11]line ПРОДАЖА [22:57:11]line Товар: 5449000027474 [22:57:11]line Напиток FuzeTea зел чай манго,ромашка 1л [22:57:11]line 1.000 * 120.00 [22:57:11]line = 120.00 [22:57:11]line НДС 12% НСП 1% [22:57:11]line > о реализуемом товаре [22:57:11]line ИТОГО: 120.00 [22:57:11]line НСП 1% : 1.06 [22:57:11]line НДС 12% : 12.74 [22:57:11]line Наличными: 120.00 [22:57:11]line Безнал.: 0.00 [22:57:11]line Место: АЗС № 120 "Партнер Нефть" [22:57:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:57:11]line СНО: Общий режим [22:57:11]line Чек 112 18.06.2024 22:57 [22:57:11]line Смена: 323 ФФД: 1.0 [22:57:11]line ЗНМ: 0300000172 [22:57:11]line РНМ: 0000000000092786 [22:57:11]line Версия ККМ: 001 [22:57:11]line ФМ: 0000000000875095 [22:57:11]line ФД: 34290 [22:57:11]line ФПД: 201217668225494 [22:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T225711&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34290&fm=201217668225494&tin=02508201610067®Number=0000000000092786&sum=12000 [22:57:11]line 0 [22:57:11]OFD Sender: Processing packet 34290 [packets to send 8, broken 7] [22:57:11]ProducePacketName [22:57:11]name=ofd_packets/00034290 [22:57:11]OFD Sender: To server: pG, [22:57:11]CommunicateWithHost lk.salyk.kg:30040 [22:57:11]ConnectInit lk.salyk.kg [22:57:11]written 0, free lines is 4095 [22:57:12]Write to MH i2c: 01 00 00 64 12 76 [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: 01 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: 01 07 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: 01 07 00 64 12 00 00 00 00 00 D7 0C 60 [22:57:12]RasterBufferAndPrint [22:57:12]line [22:57:12]line [22:57:12]line [22:57:12]line [22:57:12]line [22:57:12]written 0, free lines is 3293 [22:57:12]MH_Cut [22:57:12]Write to MH i2c: D1 01 00 6B 12 01 4F [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: D1 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: D1 01 00 [22:57:12]MH_I2C_Read... [22:57:12]Read from MH i2c: D1 01 00 6B 12 00 4E [22:57:12]Write to MH i2c: 01 00 00 6C 12 7E [22:57:12]Write i2c OK [22:57:12]MH_I2C_Read... [22:57:12]*** Cut start [22:57:12]*** Partial cut [22:57:12]*** CUTSNS_PIN = 1 [22:57:12]*** CUTSNS_PIN = 0 [22:57:13]*** Brake cut motor [22:57:13]Read from MH i2c: 01 [22:57:13]MH_I2C_Read... [22:57:13]*** Stop cut motor [22:57:13]*** Cut end [22:57:13]Read from MH i2c: 01 07 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 FF 0F 93 [22:57:13]process_action close_receipt done [22:57:13]requested_data is exist [22:57:13]produce_requested_data [22:57:13]requested_item fm.sn is exist - process it [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 11 00 00 [22:57:13]Write to MH i2c: E2 08 00 6D 12 80 11 00 00 00 00 00 00 F9 [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 17 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 17 00 6D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4E [22:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [22:57:13]wFMCommunicate OK [22:57:13]requested_item fd.num is exist - process it [22:57:13]SAM_PROTO_GetFieldsCounters [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 13 00 00 [22:57:13]Write to MH i2c: E2 08 00 6E 12 80 13 00 00 00 00 00 00 FC [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]Connected sock=11 [22:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 48 01 00 00 1D 74 40 01 92 61 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C7 10 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F2 85 00 00 35 04 06 00 B7 01 A3 A3 19 D6 C3 5D A8 75 63 97 7B 8D [22:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 62 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 62 00 6E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [22:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F2 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:13]wFMCommunicate OK [22:57:13]SAM_PROTO_GetFieldsCounters done [22:57:13]requested_item shift.num is exist - process it [22:57:13]requested_item shift.opened is exist - process it [22:57:13]req_shift_opened [22:57:13]FM_GetShiftState [22:57:13]SAM_PROTO_GetShiftState [22:57:13]wFMCommunicate request_size=4 [22:57:13]MH_SAM_APDU [22:57:13]CAPDU: 80 13 01 00 [22:57:13]Write to MH i2c: E2 08 00 6F 12 80 13 01 00 00 00 00 00 FE [22:57:13]Write i2c OK [22:57:13]MH_I2C_Read... [22:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:13]Read from MH i2c: E2 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 0E 00 [22:57:13]MH_I2C_Read... [22:57:13]Read from MH i2c: E2 0E 00 6F 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 49 [22:57:13]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [22:57:13]wFMCommunicate OK [22:57:13]SAM_PROTO_GetShiftState done [22:57:13]FM_GetShiftState done [22:57:13]req_shift_opened done [22:57:13]requested_item shift.open_date is exist - process it [22:57:13]req_shift_open_date [22:57:13]req_shift_open_date done [22:57:13]produce_requested_data done [22:57:13]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34290,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [22:57:13]process_action_free close_receipt [22:57:13]json_value_free [22:57:13]json_value_free done [22:57:13]process_json_proto returns [22:57:13]Send response to host [22:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34290,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [22:57:13]free response buf [22:57:13]execute_script done [22:57:13]execute_script returns [22:57:13]free content buf [22:57:13]Sock 7.Close socket [22:57:13]Sock 7.Thread stoped [22:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 C1 20 47 00 DC 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F2 85 00 00 F4 03 04 00 9C B7 71 66 B6 04 01 00 00 A5 1A F3 1B 61 E1 BA 74 [22:57:17]CommunicateWithHost err = 0 [22:57:17]CheckOFDResponse [22:57:17]1017 (14) - 77093643461234 [22:57:17]1041 (16) - 0000000000875095 [22:57:17]1040 (4) - 34290 [22:57:17]1012 (4) - 18.06.2024 16:36 [22:57:17]1206 (1) - 0 [22:57:17]OFD Sender: Remove packet 34290 [22:57:17]ProducePacketName [22:57:17]name=ofd_packets/00034290 [22:57:17]NVStorageDeleteData [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:50]ConnectInit Can't connect to host [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:54]ConnectInit Can't connect to host [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23: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:35]ConnectInit Can't connect to host [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:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:25]ConnectInit Can't connect to host [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:18]accept exits with 10 [23:47:18]New connection [23:47:18]New thread 3067424100 created [23:47:18]Thread 3067567460 joined [23:47:18]Waiting for new connection... [23:47:18] Sock 10.Parse request [23:47:18]Sock 10.Check first char [23:47:18]Sock 10.First char is OK [23:47:18]request: POST /json_proto HTTP/1.0 [23:47:18]Method: POST [23:47:18]URL: /json_proto [23:47:18]Method is POST - this is cgi request [23:47:18]url: /json_proto [23:47:18]query_string will be loaded in cgi processing [23:47:18]execute_cgi json_proto POST (null) [23:47:18]execute_cgi path=json_proto method=POST [23:47:18]POST find Content-Length [23:47:18]Host: 172.17.38.134:8080 [23:47:18]Content-Length: 747 [23:47:18]Content-Type: application/json [23:47:18] [23:47:18]POST finish read [23:47:18]Found Content-Length = 747 [23:47:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184074", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:18]execute_script... [23:47: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)184074", "tax_sys" : 0, "items" : [ { "code": "2000029770012", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:18]POST & json_proto [23:47:18]process_json_proto [23:47:18]json parsed OK: [23:47:18]protocol is kg_v1.0 [23:47:18]action value=close_receipt [23:47:18]process_action close_receipt [23:47:18]cmd_close_receipt [23:47:18]MH_GetDate [23:47:18]Write to MH i2c: F0 00 00 70 12 71 [23:47:18]Write i2c OK [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: F0 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: F0 09 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: F0 09 00 70 12 00 88 1C 72 66 13 9C 7C 64 85 [23:47:18]GetLastDocTimeStamp 1718751431 [23:47:18]current date 1718754440 [23:47:18]FM_GetShiftState [23:47:18]SAM_PROTO_GetShiftState [23:47:18]wFMCommunicate request_size=4 [23:47:18]MH_SAM_APDU [23:47:18]CAPDU: 80 13 01 00 [23:47:18]Write to MH i2c: E2 08 00 71 12 80 13 01 00 00 00 00 00 00 [23:47:18]Write i2c OK [23:47:18]MH_I2C_Read... [23:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:18]Read from MH i2c: E2 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 0E 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 0E 00 71 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 4B [23:47:18]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [23:47:18]wFMCommunicate OK [23:47:18]SAM_PROTO_GetShiftState done [23:47:18]FM_GetShiftState done [23:47:18]opened in 1718670230 [23:47:18]opened+sec_in_day 1718756630 [23:47:18]quantity*price = 50200 [23:47:18]sum+1 = 50201 [23:47:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 502.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 113 18.06.2024 23:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34291 ФПД: 109789149887499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T234720&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34291&fm=109789149887499&tin=02508201610067®Number=0000000000092786&sum=50200 0 [23:47:19]StoreToDocumentArchive [23:47:19]shift 323 fd 34291 [23:47:19]save to /storage/0323/doc_00034291 [23:47:19]save last doc name /storage/0323/doc_00034291 to /storage/kkm_last_doc_name [23:47:19]save OK [23:47:19]Clear old archive folders... [23:47:19]ProcessDocumentItem done err = 0, tmpTLVsize=307 [23:47:19]tlvbuf is 01933340 [23:47:19]SAM_PROTO_ClearQueue [23:47:19]wFMCommunicate request_size=4 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 09 00 00 [23:47:19]Write to MH i2c: E2 08 00 7E 12 80 09 00 00 00 00 00 00 02 [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 7E 12 00 90 00 04 [23:47:19]RAPDU: 90 00 [23:47:19]wFMCommunicate OK [23:47:19]SAM_PROTO_ClearQueue done [23:47:19]KKMCreateOFDPacket [23:47:19]OFDProtocolAddRootSTLVToBuf [23:47:19]FM_MakeSignedData [23:47:19]FM_MakeSignedData [23:47:19]SAM_PROTO_SignData [23:47:19]wFMCommunicate request_size=4 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 0D 01 02 [23:47:19]Write to MH i2c: E2 08 00 7F 12 80 0D 01 02 00 00 00 00 0A [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [23:47:19]RAPDU: 90 00 [23:47:19]wFMCommunicate OK [23:47:19]wFMCommunicate request_size=255 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 88 1C 72 66 0E 04 04 00 43 01 00 00 B9 04 [23:47:19]Write to MH i2c: E2 02 01 80 12 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 88 1C 72 66 0E 04 04 00 43 01 00 00 B9 04 00 00 C1 [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [23:47:19]RAPDU: 90 00 [23:47:19]wFMCommunicate OK [23:47:19]wFMCommunicate request_size=66 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F3 85 00 00 35 04 06 00 63 DA 47 47 7C 0B [23:47:19]Write to MH i2c: E2 45 00 81 12 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F3 85 00 00 35 04 06 00 63 DA 47 47 7C 0B 00 00 32 [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:20]Read from MH i2c: E2 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 03 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [23:47:20]RAPDU: 90 00 [23:47:20]wFMCommunicate OK [23:47:20]wFMCommunicate request_size=4 [23:47:20]MH_SAM_APDU [23:47:20]CAPDU: 80 0D 03 02 [23:47:20]Write to MH i2c: E2 08 00 82 12 80 0D 03 02 00 00 00 00 0F [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:20]Read from MH i2c: E2 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 0B 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 0B 00 82 12 00 FC B8 25 0B A2 6D 21 8C 90 00 B0 [23:47:20]RAPDU: FC B8 25 0B A2 6D 21 8C 90 00 [23:47:20]wFMCommunicate OK [23:47:20]SAM_PROTO_SignData done [23:47:20]FM_MakeSignedData done [23:47:20]CreateOFDProtocolMessage [23:47:20]wFMCommunicate request_size=4 [23:47:20]MH_SAM_APDU [23:47:20]CAPDU: 80 11 00 00 [23:47:20]Write to MH i2c: E2 08 00 83 12 80 11 00 00 00 00 00 00 0F [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:20]Read from MH i2c: E2 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 17 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: E2 17 00 83 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 64 [23:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [23:47:20]wFMCommunicate OK [23:47:20]CreateOFDProtocolMessage done [23:47:20]OFDSenderStorePacket 34291 [23:47:20]StoreOFDPacket docnum=34291 [23:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 47 01 00 00 E2 4D 3F 01 98 6F 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 88 1C 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F3 85 00 00 35 04 06 00 63 DA 47 47 7C 0B FC B8 25 0B A2 6D 21 8C [23:47:20]CheckFolder [23:47:20]dirname=/storage/ofd_packets [23:47:20]CheckFolder done [23:47:20]ProducePacketName [23:47:20]name=ofd_packets/00034291 [23:47:20]NVStorageSaveData ofd_packets/00034291 [23:47:20]File name is /storage/ofd_packets/00034291 [23:47:20]Write 357 bytes [23:47:20]NVStorageSaveData done [23:47:20]OFDSenderStorePacket done [23:47:20]KKMCreateOFDPacket done [23:47:20]NVStorageSaveData kkm_last_timestamp [23:47:20]File name is /storage/kkm_last_timestamp [23:47:20]Write 4 bytes [23:47:20]NVStorageSaveData done [23:47:20]ExternCall_PrintAddStr [23:47:20]wPrintStart [23:47:20]Write to MH i2c: 01 00 00 84 12 96 [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: 01 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: 01 07 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: 01 07 00 84 12 00 00 00 00 00 FF 0F AB [23:47:20]RasterBufferAndPrint [23:47:20]line Счет N : (3)184074 [23:47:20]line ИНН: 02508201610067 [23:47:20]line Контрольно-Кассовый Чек [23:47:20]line ПРОДАЖА [23:47:20]line Товар: 2000029770012 [23:47:20]line Очки солнцезащитные в ассортименте [23:47:20]line 1.000 * 502.00 [23:47:20]line = 502.00 [23:47:20]line НДС 12% НСП 1% [23:47:20]line > о реализуемом товаре [23:47:20]line ИТОГО: 502.00 [23:47:20]line НСП 1% : 4.44 [23:47:20]line НДС 12% : 53.31 [23:47:20]line Наличными: 502.00 [23:47:20]line Безнал.: 0.00 [23:47:20]line Место: АЗС № 120 "Партнер Нефть" [23:47:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:47:20]line СНО: Общий режим [23:47:20]line Чек 113 18.06.2024 23:47 [23:47:20]line Смена: 323 ФФД: 1.0 [23:47:20]line ЗНМ: 0300000172 [23:47:20]line РНМ: 0000000000092786 [23:47:20]line Версия ККМ: 001 [23:47:20]line ФМ: 0000000000875095 [23:47:20]line ФД: 34291 [23:47:20]line ФПД: 109789149887499 [23:47:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T234720&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34291&fm=109789149887499&tin=02508201610067®Number=0000000000092786&sum=50200 [23:47:20]line 0 [23:47:20]OFD Sender: Processing packet 34291 [packets to send 8, broken 7] [23:47:20]ProducePacketName [23:47:20]name=ofd_packets/00034291 [23:47:20]OFD Sender: To server: pG, [23:47:20]CommunicateWithHost lk.salyk.kg:30040 [23:47:20]ConnectInit lk.salyk.kg [23:47:20]written 0, free lines is 4095 [23:47:20]Connected sock=11 [23:47:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 47 01 00 00 E2 4D 3F 01 98 6F 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 88 1C 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F3 85 00 00 35 04 06 00 63 DA 47 47 7C 0B FC B8 25 0B A2 6D 21 8C [23:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 AE 70 47 00 85 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F3 85 00 00 F4 03 04 00 57 C3 71 66 B6 04 01 00 00 F8 D6 CE 11 57 47 94 D7 [23:47:20]CommunicateWithHost err = 0 [23:47:20]CheckOFDResponse [23:47:20]1017 (14) - 77093643461234 [23:47:20]1041 (16) - 0000000000875095 [23:47:20]1040 (4) - 34291 [23:47:20]1012 (4) - 18.06.2024 17:26 [23:47:20]1206 (1) - 0 [23:47:20]OFD Sender: Remove packet 34291 [23:47:20]ProducePacketName [23:47:20]name=ofd_packets/00034291 [23:47:20]NVStorageDeleteData [23:47:20]Write to MH i2c: 01 00 00 AD 12 BF [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: 01 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: 01 07 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 DA 0C AC [23:47:20]RasterBufferAndPrint [23:47:20]line [23:47:20]line [23:47:20]line [23:47:20]line [23:47:20]line [23:47:20]written 0, free lines is 3299 [23:47:20]MH_Cut [23:47:20]Write to MH i2c: D1 01 00 B4 12 01 98 [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: D1 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: D1 01 00 [23:47:20]MH_I2C_Read... [23:47:20]Read from MH i2c: D1 01 00 B4 12 00 97 [23:47:20]Write to MH i2c: 01 00 00 B5 12 C7 [23:47:20]Write i2c OK [23:47:20]MH_I2C_Read... [23:47:21]OFD Sender: No OFD packet to send [23:47:21]*** Cut start [23:47:21]*** Partial cut [23:47:21]*** CUTSNS_PIN = 1 [23:47:21]*** CUTSNS_PIN = 0 [23:47:21]*** Brake cut motor [23:47:22]Read from MH i2c: 01 [23:47:22]MH_I2C_Read... [23:47:22]*** Stop cut motor [23:47:22]*** Cut end [23:47:22]Read from MH i2c: 01 07 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [23:47:22]process_action close_receipt done [23:47:22]requested_data is exist [23:47:22]produce_requested_data [23:47:22]requested_item fm.sn is exist - process it [23:47:22]wFMCommunicate request_size=4 [23:47:22]MH_SAM_APDU [23:47:22]CAPDU: 80 11 00 00 [23:47:22]Write to MH i2c: E2 08 00 B6 12 80 11 00 00 00 00 00 00 42 [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:22]Read from MH i2c: E2 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 17 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 17 00 B6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 97 [23:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [23:47:22]wFMCommunicate OK [23:47:22]requested_item fd.num is exist - process it [23:47:22]SAM_PROTO_GetFieldsCounters [23:47:22]wFMCommunicate request_size=4 [23:47:22]MH_SAM_APDU [23:47:22]CAPDU: 80 13 00 00 [23:47:22]Write to MH i2c: E2 08 00 B7 12 80 13 00 00 00 00 00 00 45 [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:22]Read from MH i2c: E2 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 62 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 62 00 B7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F3 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [23: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F3 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:22]wFMCommunicate OK [23:47:22]SAM_PROTO_GetFieldsCounters done [23:47:22]requested_item shift.num is exist - process it [23:47:22]requested_item shift.opened is exist - process it [23:47:22]req_shift_opened [23:47:22]FM_GetShiftState [23:47:22]SAM_PROTO_GetShiftState [23:47:22]wFMCommunicate request_size=4 [23:47:22]MH_SAM_APDU [23:47:22]CAPDU: 80 13 01 00 [23:47:22]Write to MH i2c: E2 08 00 B8 12 80 13 01 00 00 00 00 00 47 [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:22]Read from MH i2c: E2 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 0E 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 0E 00 B8 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 92 [23:47:22]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [23:47:22]wFMCommunicate OK [23:47:22]SAM_PROTO_GetShiftState done [23:47:22]FM_GetShiftState done [23:47:22]req_shift_opened done [23:47:22]requested_item shift.open_date is exist - process it [23:47:22]req_shift_open_date [23:47:22]req_shift_open_date done [23:47:22]produce_requested_data done [23:47:22]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34291,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [23:47:22]process_action_free close_receipt [23:47:22]json_value_free [23:47:22]json_value_free done [23:47:22]process_json_proto returns [23:47:22]Send response to host [23:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34291,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [23:47:22]free response buf [23:47:22]execute_script done [23:47:22]execute_script returns [23:47:22]free content buf [23:47:22]Sock 10.Close socket [23:47:22]Sock 10.Thread stoped [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:20]accept exits with 9 [23:49:20]New connection [23:49:20]New thread 3067567460 created [23:49:20]Thread 3067424100 joined [23:49:20]Waiting for new connection... [23:49:20] Sock 9.Parse request [23:49:20]Sock 9.Check first char [23:49:20]Sock 9.First char is OK [23:49:20]request: POST /json_proto HTTP/1.0 [23:49:20]Method: POST [23:49:20]URL: /json_proto [23:49:20]Method is POST - this is cgi request [23:49:20]url: /json_proto [23:49:20]query_string will be loaded in cgi processing [23:49:20]execute_cgi json_proto POST (null) [23:49:20]execute_cgi path=json_proto method=POST [23:49:20]POST find Content-Length [23:49:20]Host: 172.17.38.134:8080 [23:49:20]Content-Length: 630 [23:49:20]Content-Type: application/json [23:49:20] [23:49:20]POST finish read [23:49:20]Found Content-Length = 630 [23:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184075", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:20]execute_script... [23:49:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184075", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:20]POST & json_proto [23:49:20]process_json_proto [23:49:20]json parsed OK: [23:49:20]protocol is kg_v1.0 [23:49:20]action value=close_receipt [23:49:20]process_action close_receipt [23:49:20]cmd_close_receipt [23:49:20]MH_GetDate [23:49:20]Write to MH i2c: F0 00 00 B9 12 BA [23:49:20]Write i2c OK [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: F0 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: F0 09 00 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: F0 09 00 B9 12 00 02 1D 72 66 13 9C 7C 64 49 [23:49:20]GetLastDocTimeStamp 1718754440 [23:49:20]current date 1718754562 [23:49:20]FM_GetShiftState [23:49:20]SAM_PROTO_GetShiftState [23:49:20]wFMCommunicate request_size=4 [23:49:20]MH_SAM_APDU [23:49:20]CAPDU: 80 13 01 00 [23:49:20]Write to MH i2c: E2 08 00 BA 12 80 13 01 00 00 00 00 00 49 [23:49:20]Write i2c OK [23:49:20]MH_I2C_Read... [23:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:20]Read from MH i2c: E2 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 0E 00 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 0E 00 BA 12 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 94 [23:49:20]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [23:49:20]wFMCommunicate OK [23:49:20]SAM_PROTO_GetShiftState done [23:49:20]FM_GetShiftState done [23:49:20]opened in 1718670230 [23:49:20]opened+sec_in_day 1718756630 [23:49:20]quantity*price = 5000 [23:49:20]sum+1 = 5001 [23:49:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 114 18.06.2024 23:49 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34292 ФПД: 119278680380119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T234922&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34292&fm=119278680380119&tin=02508201610067®Number=0000000000092786&sum=5000 0 [23:49:21]StoreToDocumentArchive [23:49:21]shift 323 fd 34292 [23:49:21]save to /storage/0323/doc_00034292 [23:49:21]save last doc name /storage/0323/doc_00034292 to /storage/kkm_last_doc_name [23:49:21]save OK [23:49:21]Clear old archive folders... [23:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:49:21]tlvbuf is 018F8B80 [23:49:21]SAM_PROTO_ClearQueue [23:49:21]wFMCommunicate request_size=4 [23:49:21]MH_SAM_APDU [23:49:21]CAPDU: 80 09 00 00 [23:49:21]Write to MH i2c: E2 08 00 C7 12 80 09 00 00 00 00 00 00 4B [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:21]Read from MH i2c: E2 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 03 00 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [23:49:21]RAPDU: 90 00 [23:49:21]wFMCommunicate OK [23:49:21]SAM_PROTO_ClearQueue done [23:49:21]KKMCreateOFDPacket [23:49:21]OFDProtocolAddRootSTLVToBuf [23:49:21]FM_MakeSignedData [23:49:21]FM_MakeSignedData [23:49:21]SAM_PROTO_SignData [23:49:21]wFMCommunicate request_size=4 [23:49:21]MH_SAM_APDU [23:49:21]CAPDU: 80 0D 01 02 [23:49:21]Write to MH i2c: E2 08 00 C8 12 80 0D 01 02 00 00 00 00 53 [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:21]Read from MH i2c: E2 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 03 00 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 03 00 C8 12 00 90 00 4E [23:49:21]RAPDU: 90 00 [23:49:21]wFMCommunicate OK [23:49:21]wFMCommunicate request_size=255 [23:49:21]MH_SAM_APDU [23:49:21]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [23:49:21]Write to MH i2c: E2 02 01 C9 12 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 1E [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:21]Read from MH i2c: E2 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 03 00 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [23:49:21]RAPDU: 90 00 [23:49:21]wFMCommunicate OK [23:49:21]wFMCommunicate request_size=28 [23:49:21]MH_SAM_APDU [23:49:21]CAPDU: 80 0D 02 02 17 37 35 30 39 35 10 04 04 00 F4 85 00 00 35 04 06 00 6C 7B BB 5F 92 D7 [23:49:21]Write to MH i2c: E2 1F 00 CA 12 80 0D 02 02 17 00 37 35 30 39 35 10 04 04 00 F4 85 00 00 35 04 06 00 6C 7B BB 5F 92 D7 00 00 C8 [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 03 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [23:49:22]RAPDU: 90 00 [23:49:22]wFMCommunicate OK [23:49:22]wFMCommunicate request_size=4 [23:49:22]MH_SAM_APDU [23:49:22]CAPDU: 80 0D 03 02 [23:49:22]Write to MH i2c: E2 08 00 CB 12 80 0D 03 02 00 00 00 00 58 [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 0B 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 0B 00 CB 12 00 BD 18 2D 46 62 DF CF AB 90 00 5C [23:49:22]RAPDU: BD 18 2D 46 62 DF CF AB 90 00 [23:49:22]wFMCommunicate OK [23:49:22]SAM_PROTO_SignData done [23:49:22]FM_MakeSignedData done [23:49:22]CreateOFDProtocolMessage [23:49:22]wFMCommunicate request_size=4 [23:49:22]MH_SAM_APDU [23:49:22]CAPDU: 80 11 00 00 [23:49:22]Write to MH i2c: E2 08 00 CC 12 80 11 00 00 00 00 00 00 58 [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 17 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 17 00 CC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AD [23:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [23:49:22]wFMCommunicate OK [23:49:22]CreateOFDProtocolMessage done [23:49:22]OFDSenderStorePacket 34292 [23:49:22]StoreOFDPacket docnum=34292 [23:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 9F FA 19 01 10 1D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F4 85 00 00 35 04 06 00 6C 7B BB 5F 92 D7 BD 18 2D 46 62 DF CF AB [23:49:22]CheckFolder [23:49:22]dirname=/storage/ofd_packets [23:49:22]CheckFolder done [23:49:22]ProducePacketName [23:49:22]name=ofd_packets/00034292 [23:49:22]NVStorageSaveData ofd_packets/00034292 [23:49:22]File name is /storage/ofd_packets/00034292 [23:49:22]Write 319 bytes [23:49:22]NVStorageSaveData done [23:49:22]OFDSenderStorePacket done [23:49:22]KKMCreateOFDPacket done [23:49:22]NVStorageSaveData kkm_last_timestamp [23:49:22]File name is /storage/kkm_last_timestamp [23:49:22]Write 4 bytes [23:49:22]NVStorageSaveData done [23:49:22]ExternCall_PrintAddStr [23:49:22]wPrintStart [23:49:22]Write to MH i2c: 01 00 00 CD 12 DF [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: 01 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: 01 07 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [23:49:22]RasterBufferAndPrint [23:49:22]line Счет N : (3)184075 [23:49:22]line ИНН: 02508201610067 [23:49:22]line Контрольно-Кассовый Чек [23:49:22]line ПРОДАЖА [23:49:22]line Товар: 4700000160358 [23:49:22]line Вода Легенда 1л [23:49:22]line 1.000 * 50.00 [23:49:22]line = 50.00 [23:49:22]line НДС 12% НСП 1% [23:49:22]line > о реализуемом товаре [23:49:22]line ИТОГО: 50.00 [23:49:22]line НСП 1% : 0.44 [23:49:22]line НДС 12% : 5.31 [23:49:22]line Наличными: 50.00 [23:49:22]line Безнал.: 0.00 [23:49:22]line Место: АЗС № 120 "Партнер Нефть" [23:49:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:49:22]line СНО: Общий режим [23:49:22]line Чек 114 18.06.2024 23:49 [23:49:22]line Смена: 323 ФФД: 1.0 [23:49:22]line ЗНМ: 0300000172 [23:49:22]line РНМ: 0000000000092786 [23:49:22]line Версия ККМ: 001 [23:49:22]line ФМ: 0000000000875095 [23:49:22]line ФД: 34292 [23:49:22]line ФПД: 119278680380119 [23:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T234922&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34292&fm=119278680380119&tin=02508201610067®Number=0000000000092786&sum=5000 [23:49:22]OFD Sender: Processing packet 34292 [packets to send 8, broken 7] [23:49:22]ProducePacketName [23:49:22]name=ofd_packets/00034292 [23:49:22]OFD Sender: To server: pG, [23:49:22]CommunicateWithHost lk.salyk.kg:30040 [23:49:22]ConnectInit lk.salyk.kg [23:49:22]line 0 [23:49:22]written 0, free lines is 4095 [23:49:22]Connected sock=7 [23:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 21 01 00 00 9F FA 19 01 10 1D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 02 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F4 85 00 00 35 04 06 00 6C 7B BB 5F 92 D7 BD 18 2D 46 62 DF CF AB [23:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 A5 1E 47 00 1D B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F4 85 00 00 F4 03 04 00 D1 C3 71 66 B6 04 01 00 00 C2 6E CE FA D0 12 B9 77 [23:49:22]CommunicateWithHost err = 0 [23:49:22]CheckOFDResponse [23:49:22]1017 (14) - 77093643461234 [23:49:22]1041 (16) - 0000000000875095 [23:49:22]1040 (4) - 34292 [23:49:22]1012 (4) - 18.06.2024 17:28 [23:49:22]1206 (1) - 0 [23:49:22]OFD Sender: Remove packet 34292 [23:49:22]ProducePacketName [23:49:22]name=ofd_packets/00034292 [23:49:22]NVStorageDeleteData [23:49:22]Write to MH i2c: 01 00 00 F5 12 07 [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: 01 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: 01 07 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: 01 07 00 F5 12 00 00 00 00 00 00 0D 1B [23:49:22]RasterBufferAndPrint [23:49:22]line [23:49:22]line [23:49:22]line [23:49:22]line [23:49:22]line [23:49:22]written 0, free lines is 3334 [23:49:22]MH_Cut [23:49:22]Write to MH i2c: D1 01 00 FC 12 01 E0 [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: D1 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: D1 01 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: D1 01 00 FC 12 00 DF [23:49:22]Write to MH i2c: 01 00 00 FD 12 0F [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:23]OFD Sender: No OFD packet to send [23:49:23]*** Cut start [23:49:23]*** Partial cut [23:49:23]*** CUTSNS_PIN = 1 [23:49:23]*** CUTSNS_PIN = 0 [23:49:23]*** Brake cut motor [23:49:24]Read from MH i2c: 01 [23:49:24]MH_I2C_Read... [23:49:24]*** Stop cut motor [23:49:24]*** Cut end [23:49:24]Read from MH i2c: 01 07 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: 01 07 00 FD 12 00 00 00 00 00 FF 0F 24 [23:49:24]process_action close_receipt done [23:49:24]requested_data is exist [23:49:24]produce_requested_data [23:49:24]requested_item fm.sn is exist - process it [23:49:24]wFMCommunicate request_size=4 [23:49:24]MH_SAM_APDU [23:49:24]CAPDU: 80 11 00 00 [23:49:24]Write to MH i2c: E2 08 00 FE 12 80 11 00 00 00 00 00 00 8A [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:24]Read from MH i2c: E2 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 17 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 17 00 FE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 DF [23:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [23:49:24]wFMCommunicate OK [23:49:24]requested_item fd.num is exist - process it [23:49:24]SAM_PROTO_GetFieldsCounters [23:49:24]wFMCommunicate request_size=4 [23:49:24]MH_SAM_APDU [23:49:24]CAPDU: 80 13 00 00 [23:49:24]Write to MH i2c: E2 08 00 FF 12 80 13 00 00 00 00 00 00 8D [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:24]Read from MH i2c: E2 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 62 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 62 00 FF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F4 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23: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 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F4 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:24]wFMCommunicate OK [23:49:24]SAM_PROTO_GetFieldsCounters done [23:49:24]requested_item shift.num is exist - process it [23:49:24]requested_item shift.opened is exist - process it [23:49:24]req_shift_opened [23:49:24]FM_GetShiftState [23:49:24]SAM_PROTO_GetShiftState [23:49:24]wFMCommunicate request_size=4 [23:49:24]MH_SAM_APDU [23:49:24]CAPDU: 80 13 01 00 [23:49:24]Write to MH i2c: E2 08 00 00 13 80 13 01 00 00 00 00 00 90 [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:24]Read from MH i2c: E2 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 0E 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: E2 0E 00 00 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 DB [23:49:24]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [23:49:24]wFMCommunicate OK [23:49:24]SAM_PROTO_GetShiftState done [23:49:24]FM_GetShiftState done [23:49:24]req_shift_opened done [23:49:24]requested_item shift.open_date is exist - process it [23:49:24]req_shift_open_date [23:49:24]req_shift_open_date done [23:49:24]produce_requested_data done [23:49:24]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34292,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [23:49:24]process_action_free close_receipt [23:49:24]json_value_free [23:49:24]json_value_free done [23:49:24]process_json_proto returns [23:49:24]Send response to host [23:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34292,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [23:49:24]free response buf [23:49:24]execute_script done [23:49:24]execute_script returns [23:49:24]free content buf [23:49:24]Sock 9.Close socket [23:49:24]Sock 9.Thread stoped [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:36]accept exits with 10 [23:50:36]New connection [23:50:36]New thread 3067424100 created [23:50:36]Thread 3067567460 joined [23:50:36]Waiting for new connection... [23:50:36] Sock 10.Parse request [23:50:36]Sock 10.Check first char [23:50:36]Sock 10.First char is OK [23:50:36]request: POST /json_proto HTTP/1.0 [23:50:36]Method: POST [23:50:36]URL: /json_proto [23:50:36]Method is POST - this is cgi request [23:50:36]url: /json_proto [23:50:36]query_string will be loaded in cgi processing [23:50:36]execute_cgi json_proto POST (null) [23:50:36]execute_cgi path=json_proto method=POST [23:50:36]POST find Content-Length [23:50:36]Host: 172.17.38.134:8080 [23:50:36]Content-Length: 637 [23:50:36]Content-Type: application/json [23:50:36] [23:50:36]POST finish read [23:50:36]Found Content-Length = 637 [23:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184076", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:36]execute_script... [23:50: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 : (3)184076", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:36]POST & json_proto [23:50:36]process_json_proto [23:50:36]json parsed OK: [23:50:36]protocol is kg_v1.0 [23:50:36]action value=close_receipt [23:50:36]process_action close_receipt [23:50:36]cmd_close_receipt [23:50:36]MH_GetDate [23:50:36]Write to MH i2c: F0 00 00 01 13 03 [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: F0 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: F0 09 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: F0 09 00 01 13 00 4E 1D 72 66 13 9C 7C 64 DE [23:50:36]GetLastDocTimeStamp 1718754562 [23:50:36]current date 1718754638 [23:50:36]FM_GetShiftState [23:50:36]SAM_PROTO_GetShiftState [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 13 01 00 [23:50:36]Write to MH i2c: E2 08 00 02 13 80 13 01 00 00 00 00 00 92 [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 0E 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 0E 00 02 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 DD [23:50:36]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]SAM_PROTO_GetShiftState done [23:50:36]FM_GetShiftState done [23:50:36]opened in 1718670230 [23:50:36]opened+sec_in_day 1718756630 [23:50:36]quantity*price = 5000 [23:50:36]sum+1 = 5001 [23:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 115 18.06.2024 23:50 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34293 ФПД: 76472197331578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T235038&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34293&fm=76472197331578&tin=02508201610067®Number=0000000000092786&sum=5000 0 [23:50:37]StoreToDocumentArchive [23:50:37]shift 323 fd 34293 [23:50:37]save to /storage/0323/doc_00034293 [23:50:37]save last doc name /storage/0323/doc_00034293 to /storage/kkm_last_doc_name [23:50:37]save OK [23:50:37]Clear old archive folders... [23:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:50:37]tlvbuf is 01933730 [23:50:37]SAM_PROTO_ClearQueue [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 09 00 00 [23:50:37]Write to MH i2c: E2 08 00 0F 13 80 09 00 00 00 00 00 00 94 [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 03 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [23:50:37]RAPDU: 90 00 [23:50:37]wFMCommunicate OK [23:50:37]SAM_PROTO_ClearQueue done [23:50:37]KKMCreateOFDPacket [23:50:37]OFDProtocolAddRootSTLVToBuf [23:50:37]FM_MakeSignedData [23:50:37]FM_MakeSignedData [23:50:37]SAM_PROTO_SignData [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 0D 01 02 [23:50:37]Write to MH i2c: E2 08 00 10 13 80 0D 01 02 00 00 00 00 9C [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 03 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [23:50:37]RAPDU: 90 00 [23:50:37]wFMCommunicate OK [23:50:37]wFMCommunicate request_size=255 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 [23:50:37]Write to MH i2c: E2 02 01 11 13 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 EA [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 03 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 03 00 11 13 00 90 00 98 [23:50:37]RAPDU: 90 00 [23:50:37]wFMCommunicate OK [23:50:37]wFMCommunicate request_size=31 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 39 35 10 04 04 00 F5 85 00 00 35 04 06 00 45 8D 12 28 3A 7A [23:50:37]Write to MH i2c: E2 22 00 12 13 80 0D 02 02 1A 00 30 30 38 37 35 30 39 35 10 04 04 00 F5 85 00 00 35 04 06 00 45 8D 12 28 3A 7A 00 00 06 [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 03 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 03 00 12 13 00 90 00 99 [23:50:38]RAPDU: 90 00 [23:50:38]wFMCommunicate OK [23:50:38]wFMCommunicate request_size=4 [23:50:38]MH_SAM_APDU [23:50:38]CAPDU: 80 0D 03 02 [23:50:38]Write to MH i2c: E2 08 00 13 13 80 0D 03 02 00 00 00 00 A1 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 0B 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 0B 00 13 13 00 22 10 F6 CD 9A DC 1D 1B 90 00 45 [23:50:38]RAPDU: 22 10 F6 CD 9A DC 1D 1B 90 00 [23:50:38]wFMCommunicate OK [23:50:38]SAM_PROTO_SignData done [23:50:38]FM_MakeSignedData done [23:50:38]CreateOFDProtocolMessage [23:50:38]wFMCommunicate request_size=4 [23:50:38]MH_SAM_APDU [23:50:38]CAPDU: 80 11 00 00 [23:50:38]Write to MH i2c: E2 08 00 14 13 80 11 00 00 00 00 00 00 A1 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 17 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 17 00 14 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 F6 [23:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [23:50:38]wFMCommunicate OK [23:50:38]CreateOFDProtocolMessage done [23:50:38]OFDSenderStorePacket 34293 [23:50:38]StoreOFDPacket docnum=34293 [23:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 F0 0C 1C 01 00 26 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F5 85 00 00 35 04 06 00 45 8D 12 28 3A 7A 22 10 F6 CD 9A DC 1D 1B [23:50:38]CheckFolder [23:50:38]dirname=/storage/ofd_packets [23:50:38]CheckFolder done [23:50:38]ProducePacketName [23:50:38]name=ofd_packets/00034293 [23:50:38]NVStorageSaveData ofd_packets/00034293 [23:50:38]File name is /storage/ofd_packets/00034293 [23:50:38]Write 322 bytes [23:50:38]NVStorageSaveData done [23:50:38]OFDSenderStorePacket done [23:50:38]KKMCreateOFDPacket done [23:50:38]NVStorageSaveData kkm_last_timestamp [23:50:38]File name is /storage/kkm_last_timestamp [23:50:38]Write 4 bytes [23:50:38]NVStorageSaveData done [23:50:38]ExternCall_PrintAddStr [23:50:38]wPrintStart [23:50:38]Write to MH i2c: 01 00 00 15 13 28 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: 01 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: 01 07 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: 01 07 00 15 13 00 00 00 00 00 FF 0F 3D [23:50:38]RasterBufferAndPrint [23:50:38]line Счет N : (3)184076 [23:50:38]line ИНН: 02508201610067 [23:50:38]line Контрольно-Кассовый Чек [23:50:38]line ПРОДАЖА [23:50:38]line Товар: 4700000160051 [23:50:38]line Вода Ыссык Ата 1л [23:50:38]line 1.000 * 50.00 [23:50:38]line = 50.00 [23:50:38]line НДС 12% НСП 1% [23:50:38]line > о реализуемом товаре [23:50:38]line ИТОГО: 50.00 [23:50:38]line НСП 1% : 0.44 [23:50:38]line НДС 12% : 5.31 [23:50:38]line Наличными: 50.00 [23:50:38]line Безнал.: 0.00 [23:50:38]line Место: АЗС № 120 "Партнер Нефть" [23:50:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:50:38]line СНО: Общий режим [23:50:38]line Чек 115 18.06.2024 23:50 [23:50:38]line Смена: 323 ФФД: 1.0 [23:50:38]line ЗНМ: 0300000172 [23:50:38]line РНМ: 0000000000092786 [23:50:38]line Версия ККМ: 001 [23:50:38]line ФМ: 0000000000875095 [23:50:38]line ФД: 34293 [23:50:38]line ФПД: 76472197331578 [23:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240618T235038&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34293&fm=76472197331578&tin=02508201610067®Number=0000000000092786&sum=5000 [23:50:38]line 0 [23:50:38]OFD Sender: Processing packet 34293 [packets to send 8, broken 7] [23:50:38]ProducePacketName [23:50:38]name=ofd_packets/00034293 [23:50:38]OFD Sender: To server: pG, [23:50:38]CommunicateWithHost lk.salyk.kg:30040 [23:50:38]ConnectInit lk.salyk.kg [23:50:38]written 0, free lines is 4095 [23:50:38]Connected sock=9 [23:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 24 01 00 00 F0 0C 1C 01 00 26 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 1D 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F5 85 00 00 35 04 06 00 45 8D 12 28 3A 7A 22 10 F6 CD 9A DC 1D 1B [23:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 E1 3C 47 00 4A BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F5 85 00 00 F4 03 04 00 1D C4 71 66 B6 04 01 00 00 B8 4A 07 01 C6 4A CC 97 [23:50:38]CommunicateWithHost err = 0 [23:50:38]CheckOFDResponse [23:50:38]1017 (14) - 77093643461234 [23:50:38]1041 (16) - 0000000000875095 [23:50:38]1040 (4) - 34293 [23:50:38]1012 (4) - 18.06.2024 17:30 [23:50:38]1206 (1) - 0 [23:50:38]OFD Sender: Remove packet 34293 [23:50:38]ProducePacketName [23:50:38]name=ofd_packets/00034293 [23:50:38]NVStorageDeleteData [23:50:38]Write to MH i2c: 01 00 00 3D 13 50 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: 01 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: 01 07 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: 01 07 00 3D 13 00 00 00 00 00 FC 0C 5F [23:50:38]RasterBufferAndPrint [23:50:38]line [23:50:38]line [23:50:38]line [23:50:38]line [23:50:38]line [23:50:38]written 0, free lines is 3330 [23:50:38]MH_Cut [23:50:38]Write to MH i2c: D1 01 00 44 13 01 29 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: D1 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: D1 01 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: D1 01 00 44 13 00 28 [23:50:38]Write to MH i2c: 01 00 00 45 13 58 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:39]OFD Sender: No OFD packet to send [23:50:39]*** Cut start [23:50:39]*** Partial cut [23:50:39]*** CUTSNS_PIN = 1 [23:50:39]*** CUTSNS_PIN = 0 [23:50:39]*** Brake cut motor [23:50:40]Read from MH i2c: 01 [23:50:40]MH_I2C_Read... [23:50:40]*** Stop cut motor [23:50:40]*** Cut end [23:50:40]Read from MH i2c: 01 07 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: 01 07 00 45 13 00 00 00 00 00 FF 0F 6D [23:50:40]process_action close_receipt done [23:50:40]requested_data is exist [23:50:40]produce_requested_data [23:50:40]requested_item fm.sn is exist - process it [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 11 00 00 [23:50:40]Write to MH i2c: E2 08 00 46 13 80 11 00 00 00 00 00 00 D3 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 17 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 17 00 46 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 28 [23:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [23:50:40]wFMCommunicate OK [23:50:40]requested_item fd.num is exist - process it [23:50:40]SAM_PROTO_GetFieldsCounters [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 13 00 00 [23:50:40]Write to MH i2c: E2 08 00 47 13 80 13 00 00 00 00 00 00 D6 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 62 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 62 00 47 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [23:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F5 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:40]wFMCommunicate OK [23:50:40]SAM_PROTO_GetFieldsCounters done [23:50:40]requested_item shift.num is exist - process it [23:50:40]requested_item shift.opened is exist - process it [23:50:40]req_shift_opened [23:50:40]FM_GetShiftState [23:50:40]SAM_PROTO_GetShiftState [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 13 01 00 [23:50:40]Write to MH i2c: E2 08 00 48 13 80 13 01 00 00 00 00 00 D8 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 0E 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 0E 00 48 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 23 [23:50:40]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [23:50:40]wFMCommunicate OK [23:50:40]SAM_PROTO_GetShiftState done [23:50:40]FM_GetShiftState done [23:50:40]req_shift_opened done [23:50:40]requested_item shift.open_date is exist - process it [23:50:40]req_shift_open_date [23:50:40]req_shift_open_date done [23:50:40]produce_requested_data done [23:50:40]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34293,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [23:50:40]process_action_free close_receipt [23:50:40]json_value_free [23:50:40]json_value_free done [23:50:40]process_json_proto returns [23:50:40]Send response to host [23:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34293,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [23:50:40]free response buf [23:50:40]execute_script done [23:50:40]execute_script returns [23:50:40]free content buf [23:50:40]Sock 10.Close socket [23:50:40]Sock 10.Thread stoped [23:50:44]OFD Sender: No OFD packet to send [23:50:49]int [23:50:49]Write to MH i2c: 01 00 00 49 13 5C [23:50:49]*** FLAG_PRN_PAP2 set [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: 01 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: 01 07 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: 01 07 00 49 13 00 02 00 00 00 FF 0F 73 [23:50:49]state=0 [23:50:49]Cover opened [23:50:49]OFD Sender: No OFD packet to send [23:50:54]Write to MH i2c: 01 00 00 4A 13 5D [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: 01 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: 01 07 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: 01 07 00 4A 13 00 02 00 00 00 FF 0F 74 [23:50:54]state=3 [23:50:54]Cover opened [23:50:54]OFD Sender: No OFD packet to send [23:50:59]Write to MH i2c: 01 00 00 4B 13 5E [23:50:59]Write i2c OK [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: 01 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: 01 07 00 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: 01 07 00 4B 13 00 02 00 00 00 FF 0F 75 [23:50:59]state=3 [23:50:59]Cover opened [23:50:59]OFD Sender: No OFD packet to send [23:51:04]Write to MH i2c: 01 00 00 4C 13 5F [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: 01 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: 01 07 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: 01 07 00 4C 13 00 02 00 00 00 FF 0F 76 [23:51:04]state=3 [23:51:04]Cover opened [23:51:04]OFD Sender: No OFD packet to send [23:51:09]Write to MH i2c: 01 00 00 4D 13 60 [23:51:09]Write i2c OK [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: 01 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: 01 07 00 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: 01 07 00 4D 13 00 02 00 00 00 FF 0F 77 [23:51:09]state=3 [23:51:09]Cover opened [23:51:09]OFD Sender: No OFD packet to send [23:51:14]Write to MH i2c: 01 00 00 4E 13 61 [23:51:14]Write i2c OK [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: 01 [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: 01 07 00 [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: 01 07 00 4E 13 00 02 00 00 00 FF 0F 78 [23:51:14]state=3 [23:51:14]Cover opened [23:51:14]OFD Sender: No OFD packet to send [23:51:19]Write to MH i2c: 01 00 00 4F 13 62 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: 01 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: 01 07 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: 01 07 00 4F 13 00 02 00 00 00 FF 0F 79 [23:51:19]state=3 [23:51:19]Cover opened [23:51:19]OFD Sender: No OFD packet to send [23:51:22]int [23:51:22]Write to MH i2c: 01 00 00 50 13 63 [23:51:22]*** FLAG_PRN_PAP2 reset [23:51:22]Write i2c OK [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: 01 [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: 01 07 00 [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: 01 07 00 50 13 00 00 00 00 00 FF 0F 78 [23:51:22]state=3 [23:51:22]Cover closed [23:51:23]int [23:51:23]Write to MH i2c: 01 00 00 51 13 64 [23:51:23]*** FLAG_PRN_KEY set [23:51:23]Write i2c OK [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 07 00 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 07 00 51 13 00 08 00 00 00 FF 0F 81 [23:51:23]state=0 [23:51:23]Key pressed [23:51:23]Feed [23:51:23]Write to MH i2c: D8 00 00 52 13 3C [23:51:23]Write i2c OK [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: D8 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: D8 01 00 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: D8 01 00 52 13 00 3D [23:51:23]int [23:51:23]Write to MH i2c: 01 00 00 53 13 66 [23:51:23]Write i2c OK [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 07 00 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 07 00 53 13 00 48 00 00 00 3C 00 F1 [23:51:23]state=2 [23:51:23]Key pressed [23:51:23]int [23:51:23]Write to MH i2c: 01 00 00 54 13 67 [23:51:23]*** FLAG_PRN_KEY reset [23:51:23]Write i2c OK [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 07 00 [23:51:23]MH_I2C_Read... [23:51:23]Read from MH i2c: 01 07 00 54 13 00 00 00 00 00 FC 0F 79 [23:51:23]state=2 [23:51:23]Stop feed [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]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: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:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:33]accept exits with 7 [00:04:33]New connection [00:04:33]New thread 3067567460 created [00:04:33]Thread 3067424100 joined [00:04:33]Waiting for new connection... [00:04:33] Sock 7.Parse request [00:04:33]Sock 7.Check first char [00:04:33]Sock 7.First char is OK [00:04:33]request: POST /json_proto HTTP/1.0 [00:04:33]Method: POST [00:04:33]URL: /json_proto [00:04:33]Method is POST - this is cgi request [00:04:33]url: /json_proto [00:04:33]query_string will be loaded in cgi processing [00:04:33]execute_cgi json_proto POST (null) [00:04:33]execute_cgi path=json_proto method=POST [00:04:33]POST find Content-Length [00:04:33]Host: 172.17.38.134:8080 [00:04:33]Content-Length: 677 [00:04:33]Content-Type: application/json [00:04:33] [00:04:33]POST finish read [00:04:33]Found Content-Length = 677 [00:04:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [00:04:33]execute_script... [00:04: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)672788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [00:04:33]POST & json_proto [00:04:33]process_json_proto [00:04:33]json parsed OK: [00:04:33]protocol is kg_v1.0 [00:04:33]action value=close_receipt [00:04:33]process_action close_receipt [00:04:33]cmd_close_receipt [00:04:33]MH_GetDate [00:04:33]Write to MH i2c: F0 00 00 55 13 57 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: F0 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: F0 09 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: F0 09 00 55 13 00 93 20 72 66 13 9C 7C 64 7A [00:04:33]GetLastDocTimeStamp 1718754638 [00:04:33]current date 1718755475 [00:04:33]FM_GetShiftState [00:04:33]SAM_PROTO_GetShiftState [00:04:33]wFMCommunicate request_size=4 [00:04:33]MH_SAM_APDU [00:04:33]CAPDU: 80 13 01 00 [00:04:33]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [00:04:33]Write i2c OK [00:04:33]MH_I2C_Read... [00:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:33]Read from MH i2c: E2 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 0E 00 [00:04:33]MH_I2C_Read... [00:04:33]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 31 [00:04:33]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:04:33]wFMCommunicate OK [00:04:33]SAM_PROTO_GetShiftState done [00:04:33]FM_GetShiftState done [00:04:33]opened in 1718670230 [00:04:33]opened+sec_in_day 1718756630 [00:04:33]quantity*price = 50065 [00:04:33]sum+1 = 50067 [00:04:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 116 19.06.2024 00:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34294 ФПД: 261409900814905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T000435&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34294&fm=261409900814905&tin=02508201610067®Number=0000000000092786&sum=50000 [00:04:34]StoreToDocumentArchive [00:04:34]shift 323 fd 34294 [00:04:34]save to /storage/0323/doc_00034294 [00:04:34]save last doc name /storage/0323/doc_00034294 to /storage/kkm_last_doc_name [00:04:34]save OK [00:04:34]Clear old archive folders... [00:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:04:34]tlvbuf is 01933350 [00:04:34]SAM_PROTO_ClearQueue [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 09 00 00 [00:04:34]Write to MH i2c: E2 08 00 63 13 80 09 00 00 00 00 00 00 E8 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_ClearQueue done [00:04:34]KKMCreateOFDPacket [00:04:34]OFDProtocolAddRootSTLVToBuf [00:04:34]FM_MakeSignedData [00:04:34]FM_MakeSignedData [00:04:34]SAM_PROTO_SignData [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 0D 01 02 [00:04:34]Write to MH i2c: E2 08 00 64 13 80 0D 01 02 00 00 00 00 F0 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=255 [00:04:34]MH_SAM_APDU [00:04: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 20 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F6 85 00 00 35 04 06 00 ED [00:04:34]Write to MH i2c: E2 02 01 65 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 20 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F6 85 00 00 35 04 06 00 ED 00 00 58 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=10 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 0D 02 02 05 C0 3C 47 62 39 [00:04:34]Write to MH i2c: E2 0D 00 66 13 80 0D 02 02 05 00 C0 3C 47 62 39 00 00 DB [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [00:04:34]RAPDU: 90 00 [00:04:34]wFMCommunicate OK [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 0D 03 02 [00:04:34]Write to MH i2c: E2 08 00 67 13 80 0D 03 02 00 00 00 00 F5 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0B 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 0B 00 67 13 00 F3 37 A8 10 78 4B 29 59 90 00 1D [00:04:34]RAPDU: F3 37 A8 10 78 4B 29 59 90 00 [00:04:34]wFMCommunicate OK [00:04:34]SAM_PROTO_SignData done [00:04:34]FM_MakeSignedData done [00:04:34]CreateOFDProtocolMessage [00:04:34]wFMCommunicate request_size=4 [00:04:34]MH_SAM_APDU [00:04:34]CAPDU: 80 11 00 00 [00:04:34]Write to MH i2c: E2 08 00 68 13 80 11 00 00 00 00 00 00 F5 [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:34]Read from MH i2c: E2 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 17 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: E2 17 00 68 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 4A [00:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:04:34]wFMCommunicate OK [00:04:34]CreateOFDProtocolMessage done [00:04:34]OFDSenderStorePacket 34294 [00:04:34]StoreOFDPacket docnum=34294 [00:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 E0 B6 07 01 6E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 20 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F6 85 00 00 35 04 06 00 ED C0 3C 47 62 39 F3 37 A8 10 78 4B 29 59 [00:04:34]CheckFolder [00:04:34]dirname=/storage/ofd_packets [00:04:34]CheckFolder done [00:04:34]ProducePacketName [00:04:34]name=ofd_packets/00034294 [00:04:34]NVStorageSaveData ofd_packets/00034294 [00:04:34]File name is /storage/ofd_packets/00034294 [00:04:34]Write 301 bytes [00:04:34]NVStorageSaveData done [00:04:34]OFDSenderStorePacket done [00:04:34]KKMCreateOFDPacket done [00:04:34]NVStorageSaveData kkm_last_timestamp [00:04:34]File name is /storage/kkm_last_timestamp [00:04:34]Write 4 bytes [00:04:34]NVStorageSaveData done [00:04:34]ExternCall_PrintAddStr [00:04:34]wPrintStart [00:04:34]Write to MH i2c: 01 00 00 69 13 7C [00:04:34]Write i2c OK [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 07 00 [00:04:34]MH_I2C_Read... [00:04:34]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [00:04:34]RasterBufferAndPrint [00:04:34]line Счет N : (1)672788 [00:04:34]line ИНН: 02508201610067 [00:04:34]line Контрольно-Кассовый Чек [00:04:34]line ПРОДАЖА [00:04:34]line ТРК (МРК, ГНК) : 32 [00:04:34]line Товар: 2710124130 [00:04:34]line Аи-92-К-5 [00:04:34]line 7.540 * 66.40 [00:04:34]line = 500.66 [00:04:34]line НДС 12% НСП 1% [00:04:34]line > о реализуемом товаре [00:04:34]line ОКРУГЛЕНИЕ: -0.66 [00:04:34]line ИТОГО: 500.00 [00:04:34]line Внесено: 500.00 [00:04:34]line СДАЧА: 0.00 [00:04:34]line НСП 1% : 4.43 [00:04:34]line НДС 12% : 53.17 [00:04:34]line Наличными: 500.00 [00:04:34]line Безнал.: 0.00 [00:04:34]line Место: АЗС № 120 "Партнер Нефть" [00:04:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:04:34]line СНО: Общий режим [00:04:34]line Чек 116 19.06.2024 00:04 [00:04:34]line Смена: 323 ФФД: 1.0 [00:04:34]line ЗНМ: 0300000172 [00:04:34]line РНМ: 0000000000092786 [00:04:34]line Версия ККМ: 001 [00:04:34]line ФМ: 0000000000875095 [00:04:34]line ФД: 34294 [00:04:34]line ФПД: 261409900814905 [00:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T000435&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34294&fm=261409900814905&tin=02508201610067®Number=0000000000092786&sum=50000 [00:04:35]OFD Sender: Processing packet 34294 [packets to send 8, broken 7] [00:04:35]ProducePacketName [00:04:35]name=ofd_packets/00034294 [00:04:35]OFD Sender: To server: pG, [00:04:35]CommunicateWithHost lk.salyk.kg:30040 [00:04:35]ConnectInit lk.salyk.kg [00:04:35]written 0, free lines is 4095 [00:04:35]Connected sock=10 [00:04:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0F 01 00 00 E0 B6 07 01 6E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 20 72 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F6 85 00 00 35 04 06 00 ED C0 3C 47 62 39 F3 37 A8 10 78 4B 29 59 [00:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 35 71 47 00 91 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F6 85 00 00 F4 03 04 00 62 C7 71 66 B6 04 01 00 00 13 A7 00 49 EE 20 74 27 [00:04:35]CommunicateWithHost err = 0 [00:04:35]CheckOFDResponse [00:04:35]1017 (14) - 77093643461234 [00:04:35]1041 (16) - 0000000000875095 [00:04:35]1040 (4) - 34294 [00:04:35]1012 (4) - 18.06.2024 17:44 [00:04:35]1206 (1) - 0 [00:04:35]OFD Sender: Remove packet 34294 [00:04:35]ProducePacketName [00:04:35]name=ofd_packets/00034294 [00:04:35]NVStorageDeleteData [00:04:35]Write to MH i2c: 01 00 00 94 13 A7 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 E5 0C 9F [00:04:35]RasterBufferAndPrint [00:04:35]line [00:04:35]line [00:04:35]line [00:04:35]line [00:04:35]line [00:04:35]written 0, free lines is 3307 [00:04:35]MH_Cut [00:04:35]Write to MH i2c: D1 01 00 9B 13 01 80 [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: D1 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: D1 01 00 [00:04:35]MH_I2C_Read... [00:04:35]Read from MH i2c: D1 01 00 9B 13 00 7F [00:04:35]Write to MH i2c: 01 00 00 9C 13 AF [00:04:35]Write i2c OK [00:04:35]MH_I2C_Read... [00:04:36]OFD Sender: No OFD packet to send [00:04:36]*** Cut start [00:04:36]*** Partial cut [00:04:36]*** CUTSNS_PIN = 1 [00:04:36]*** CUTSNS_PIN = 0 [00:04:36]*** Brake cut motor [00:04:37]Read from MH i2c: 01 [00:04:37]MH_I2C_Read... [00:04:37]*** Stop cut motor [00:04:37]*** Cut end [00:04:37]Read from MH i2c: 01 07 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [00:04:37]process_action close_receipt done [00:04:37]requested_data is exist [00:04:37]produce_requested_data [00:04:37]requested_item fm.sn is exist - process it [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 11 00 00 [00:04:37]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 17 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7F [00:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:04:37]wFMCommunicate OK [00:04:37]requested_item fd.num is exist - process it [00:04:37]SAM_PROTO_GetFieldsCounters [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 13 00 00 [00:04:37]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 62 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 62 00 9E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [00:04:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:37]wFMCommunicate OK [00:04:37]SAM_PROTO_GetFieldsCounters done [00:04:37]requested_item shift.num is exist - process it [00:04:37]requested_item shift.opened is exist - process it [00:04:37]req_shift_opened [00:04:37]FM_GetShiftState [00:04:37]SAM_PROTO_GetShiftState [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 13 01 00 [00:04:37]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 0E 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 7A [00:04:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:04:37]wFMCommunicate OK [00:04:37]SAM_PROTO_GetShiftState done [00:04:37]FM_GetShiftState done [00:04:37]req_shift_opened done [00:04:37]requested_item shift.open_date is exist - process it [00:04:37]req_shift_open_date [00:04:37]req_shift_open_date done [00:04:37]produce_requested_data done [00:04:37]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [00:04:37]process_action_free close_receipt [00:04:37]json_value_free [00:04:37]json_value_free done [00:04:37]process_json_proto returns [00:04:37]Send response to host [00:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [00:04:37]free response buf [00:04:37]execute_script done [00:04:37]execute_script returns [00:04:37]free content buf [00:04:37]Sock 7.Close socket [00:04:37]Sock 7.Thread stoped [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:36]accept exits with 9 [00:06:36]New connection [00:06:36]New thread 3067424100 created [00:06:36]Thread 3067567460 joined [00:06:36]Waiting for new connection... [00:06:36] Sock 9.Parse request [00:06:36]Sock 9.Check first char [00:06:36]Sock 9.First char is OK [00:06:36]request: POST /json_proto HTTP/1.0 [00:06:36]Method: POST [00:06:36]URL: /json_proto [00:06:36]Method is POST - this is cgi request [00:06:36]url: /json_proto [00:06:36]query_string will be loaded in cgi processing [00:06:36]execute_cgi json_proto POST (null) [00:06:36]execute_cgi path=json_proto method=POST [00:06:36]POST find Content-Length [00:06:36]Host: 172.17.38.134:8080 [00:06:36]Content-Length: 215 [00:06:36]Content-Type: application/json [00:06:36] [00:06:36]POST finish read [00:06:36]Found Content-Length = 215 [00:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:36]execute_script... [00:06:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:36]POST & json_proto [00:06:36]process_json_proto [00:06:36]json parsed OK: [00:06:36]protocol is kg_v1.0 [00:06:36]action value=get_value [00:06:36]process_action get_value [00:06:36]cmd_get_value [00:06:36]process_action get_value done [00:06:36]requested_data is exist [00:06:36]produce_requested_data [00:06:36]requested_item kkm.sn is exist - process it [00:06:36]requested_item kkm.ver is exist - process it [00:06:36]requested_item fm.sn is exist - process it [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 11 00 00 [00:06:36]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 17 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 82 [00:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:06:36]wFMCommunicate OK [00:06:36]requested_item fd.num is exist - process it [00:06:36]SAM_PROTO_GetFieldsCounters [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 13 00 00 [00:06:36]Write to MH i2c: E2 08 00 A1 13 80 13 00 00 00 00 00 00 30 [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 62 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 62 00 A1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [00:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetFieldsCounters done [00:06:37]requested_item shift.num is exist - process it [00:06:37]requested_item shift.opened is exist - process it [00:06:37]req_shift_opened [00:06:37]FM_GetShiftState [00:06:37]SAM_PROTO_GetShiftState [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 01 00 [00:06:37]Write to MH i2c: E2 08 00 A2 13 80 13 01 00 00 00 00 00 32 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 A2 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 7D [00:06:37]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetShiftState done [00:06:37]FM_GetShiftState done [00:06:37]req_shift_opened done [00:06:37]requested_item shift.open_date is exist - process it [00:06:37]req_shift_open_date [00:06:37]req_shift_open_date done [00:06:37]produce_requested_data done [00:06:37]produce_requested_data return {"kkm.sn":"0300000172","kkm.ver":"001","fm.sn":"0000000000875095","fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [00:06:37]process_action_free get_value [00:06:37]json_value_free [00:06:37]json_value_free done [00:06:37]process_json_proto returns [00:06:37]Send response to host [00:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000172","kkm.ver":"001","fm.sn":"0000000000875095","fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [00:06:37]free response buf [00:06:37]execute_script done [00:06:37]execute_script returns [00:06:37]free content buf [00:06:37]Sock 9.Close socket [00:06:37]Sock 9.Thread stoped [00:06:37]accept exits with 7 [00:06:37]New connection [00:06:37]New thread 3067567460 created [00:06:37]Thread 3067424100 joined [00:06:37]Waiting for new connection... [00:06:37] Sock 7.Parse request [00:06:37]Sock 7.Check first char [00:06:37]Sock 7.First char is OK [00:06:37]request: POST /json_proto HTTP/1.0 [00:06:37]Method: POST [00:06:37]URL: /json_proto [00:06:37]Method is POST - this is cgi request [00:06:37]url: /json_proto [00:06:37]query_string will be loaded in cgi processing [00:06:37]execute_cgi json_proto POST (null) [00:06:37]execute_cgi path=json_proto method=POST [00:06:37]POST find Content-Length [00:06:37]Host: 172.17.38.134:8080 [00:06:37]Content-Length: 331 [00:06:37]Content-Type: application/json [00:06:37] [00:06:37]POST finish read [00:06:37]Found Content-Length = 331 [00:06:37]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:06:37]execute_script... [00:06:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:37]POST & json_proto [00:06:37]process_json_proto [00:06:37]json parsed OK: [00:06:37]protocol is kg_v1.0 [00:06:37]action value=get_value [00:06:37]process_action get_value [00:06:37]cmd_get_value [00:06:37]process_action get_value done [00:06:37]requested_data is exist [00:06:37]produce_requested_data [00:06:37]requested_item fm.sale.total is exist - process it [00:06:37]SAM_PROTO_GetFMData [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 03 00 [00:06:37]Write to MH i2c: E2 08 00 A3 13 80 13 03 00 00 00 00 00 35 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 FD 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 FD 00 A3 13 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 76 [00:06:37]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 17 00 00 [00:06:37]Write to MH i2c: E2 08 00 A4 13 80 17 00 00 00 00 00 00 37 [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 FD 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 FD 00 A4 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [00:06:38]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 17 00 00 [00:06:38]Write to MH i2c: E2 08 00 A5 13 80 17 00 00 00 00 00 00 38 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 FD 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 FD 00 A5 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:06:38]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 17 00 00 [00:06:38]Write to MH i2c: E2 08 00 A6 13 80 17 00 00 00 00 00 00 39 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 FD 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 FD 00 A6 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B1 [00:06:38]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:38]wFMCommunicate OK [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 17 00 00 [00:06:38]Write to MH i2c: E2 08 00 A7 13 80 17 00 00 00 00 00 00 3A [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:38]Read from MH i2c: E2 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 E1 00 [00:06:38]MH_I2C_Read... [00:06:38]Read from MH i2c: E2 E1 00 A7 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [00:06:38]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:38]wFMCommunicate OK [00:06:38]SAM_PROTO_GetFMData done [00:06:38]requested_item fm.sale_refund.total is exist - process it [00:06:38]requested_item fm.buy.total is exist - process it [00:06:38]requested_item shift.sale.total is exist - process it [00:06:38]SAM_PROTO_GetShiftData [00:06:38]wFMCommunicate request_size=4 [00:06:38]MH_SAM_APDU [00:06:38]CAPDU: 80 13 02 00 [00:06:38]Write to MH i2c: E2 08 00 A8 13 80 13 02 00 00 00 00 00 39 [00:06:38]Write i2c OK [00:06:38]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 A8 13 00 B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 02 [00:06:39]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 17 00 00 [00:06:39]Write to MH i2c: E2 08 00 A9 13 80 17 00 00 00 00 00 00 3C [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 A9 13 00 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 12 [00:06:39]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 17 00 00 [00:06:39]Write to MH i2c: E2 08 00 AA 13 80 17 00 00 00 00 00 00 3D [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 AA 13 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 DF [00:06:39]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 17 00 00 [00:06:39]Write to MH i2c: E2 08 00 AB 13 80 17 00 00 00 00 00 00 3E [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 AB 13 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 C7 [00:06:40]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:40]wFMCommunicate OK [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 17 00 00 [00:06:40]Write to MH i2c: E2 08 00 AC 13 80 17 00 00 00 00 00 00 3F [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 D5 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 D5 00 AC 13 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 [00:06:40]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:40]wFMCommunicate OK [00:06:40]SAM_PROTO_GetShiftData done [00:06:40]requested_item shift.sale.total_cash is exist - process it [00:06:40]requested_item shift.sale_refund.total is exist - process it [00:06:40]requested_item shift.sale_refund.total_cash is exist - process it [00:06:40]requested_item shift.buy.total is exist - process it [00:06:40]requested_item shift.buy.total_cash is exist - process it [00:06:40]produce_requested_data done [00:06:40]produce_requested_data return {"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:40]process_action_free get_value [00:06:40]json_value_free [00:06:40]json_value_free done [00:06:40]process_json_proto returns [00:06:40]Send response to host [00:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:40]free response buf [00:06:40]execute_script done [00:06:40]execute_script returns [00:06:40]free content buf [00:06:40]Sock 7.Close socket [00:06:40]Sock 7.Thread stoped [00:06:40]accept exits with 9 [00:06:40]New connection [00:06:40]New thread 3067424100 created [00:06:40]Thread 3067567460 joined [00:06:40]Waiting for new connection... [00:06:40] Sock 9.Parse request [00:06:40]Sock 9.Check first char [00:06:40]Sock 9.First char is OK [00:06:40]request: POST /json_proto HTTP/1.0 [00:06:40]Method: POST [00:06:40]URL: /json_proto [00:06:40]Method is POST - this is cgi request [00:06:40]url: /json_proto [00:06:40]query_string will be loaded in cgi processing [00:06:40]execute_cgi json_proto POST (null) [00:06:40]execute_cgi path=json_proto method=POST [00:06:40]POST find Content-Length [00:06:40]Host: 172.17.38.134:8080 [00:06:40]Content-Length: 331 [00:06:40]Content-Type: application/json [00:06:40] [00:06:40]POST finish read [00:06:40]Found Content-Length = 331 [00:06:40]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:06:40]execute_script... [00:06:40]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:06:40]POST & json_proto [00:06:40]process_json_proto [00:06:40]json parsed OK: [00:06:40]protocol is kg_v1.0 [00:06:40]action value=get_value [00:06:40]process_action get_value [00:06:40]cmd_get_value [00:06:40]process_action get_value done [00:06:40]requested_data is exist [00:06:40]produce_requested_data [00:06:40]requested_item fm.sale.total is exist - process it [00:06:40]SAM_PROTO_GetFMData [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 13 03 00 [00:06:40]Write to MH i2c: E2 08 00 AD 13 80 13 03 00 00 00 00 00 3F [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 AD 13 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 80 [00:06:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 AE 13 80 17 00 00 00 00 00 00 41 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]OFD Sender: No OFD packet to send [00:06:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 AE 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [00:06:41]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 AF 13 80 17 00 00 00 00 00 00 42 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 AF 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:06:41]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 B0 13 80 17 00 00 00 00 00 00 43 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 B0 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BB [00:06:42]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 B1 13 80 17 00 00 00 00 00 00 44 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 E1 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 E1 00 B1 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [00:06:42]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:42]wFMCommunicate OK [00:06:42]SAM_PROTO_GetFMData done [00:06:42]requested_item fm.sale_refund.total is exist - process it [00:06:42]requested_item fm.buy.total is exist - process it [00:06:42]requested_item shift.sale.total is exist - process it [00:06:42]SAM_PROTO_GetShiftData [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 13 02 00 [00:06:42]Write to MH i2c: E2 08 00 B2 13 80 13 02 00 00 00 00 00 43 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 B2 13 00 B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 0C [00:06:43]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 B3 13 80 17 00 00 00 00 00 00 46 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 B3 13 00 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 1C [00:06:43]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 17 00 00 [00:06:43]Write to MH i2c: E2 08 00 B4 13 80 17 00 00 00 00 00 00 47 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 FD 00 B4 13 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 E9 [00:06:44]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 B5 13 80 17 00 00 00 00 00 00 48 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 B5 13 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 D1 [00:06:44]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 B6 13 80 17 00 00 00 00 00 00 49 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 D5 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 D5 00 B6 13 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2A [00:06:44]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_GetShiftData done [00:06:44]requested_item shift.sale.total_cash is exist - process it [00:06:44]requested_item shift.sale_refund.total is exist - process it [00:06:44]requested_item shift.sale_refund.total_cash is exist - process it [00:06:44]requested_item shift.buy.total is exist - process it [00:06:44]requested_item shift.buy.total_cash is exist - process it [00:06:44]produce_requested_data done [00:06:44]produce_requested_data return {"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:44]process_action_free get_value [00:06:44]json_value_free [00:06:44]json_value_free done [00:06:44]process_json_proto returns [00:06:44]Send response to host [00:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:44]free response buf [00:06:44]execute_script done [00:06:44]execute_script returns [00:06:44]free content buf [00:06:44]Sock 9.Close socket [00:06:44]Sock 9.Thread stoped [00:06:44]accept exits with 7 [00:06:44]New connection [00:06:44]New thread 3067567460 created [00:06:44]Thread 3067424100 joined [00:06:44]Waiting for new connection... [00:06:44] Sock 7.Parse request [00:06:44]Sock 7.Check first char [00:06:44]Sock 7.First char is OK [00:06:44]request: POST /json_proto HTTP/1.0 [00:06:44]Method: POST [00:06:44]URL: /json_proto [00:06:44]Method is POST - this is cgi request [00:06:44]url: /json_proto [00:06:44]query_string will be loaded in cgi processing [00:06:44]execute_cgi json_proto POST (null) [00:06:44]execute_cgi path=json_proto method=POST [00:06:44]POST find Content-Length [00:06:44]Host: 172.17.38.134:8080 [00:06:44]Content-Length: 257 [00:06:44]Content-Type: application/json [00:06:44] [00:06:44]POST finish read [00:06:44]Found Content-Length = 257 [00:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:44]execute_script... [00:06:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:44]POST & json_proto [00:06:44]process_json_proto [00:06:44]json parsed OK: [00:06:44]protocol is kg_v1.0 [00:06:44]action value=x_report [00:06:44]process_action x_report [00:06:44]cmd_x_report [00:06:44]MH_GetDate [00:06:44]Write to MH i2c: F0 00 00 B7 13 B9 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 09 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: F0 09 00 B7 13 00 17 21 72 66 13 9C 7C 64 61 [00:06:44]GetLastDocTimeStamp 1718755475 [00:06:44]current date 1718755607 [00:06:44]FM_GetShiftState [00:06:44]SAM_PROTO_GetShiftState [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 13 01 00 [00:06:44]Write to MH i2c: E2 08 00 B8 13 80 13 01 00 00 00 00 00 48 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 0E 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 0E 00 B8 13 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 93 [00:06:45]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:06:45]wFMCommunicate OK [00:06:45]SAM_PROTO_GetShiftState done [00:06:45]FM_GetShiftState done [00:06:45]KKMCreateXReportDocument [00:06:45]Load OK [00:06:45]Malloc new data [00:06:45]MH_GetDate [00:06:45]Write to MH i2c: F0 00 00 B9 13 BB [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: F0 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: F0 09 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: F0 09 00 B9 13 00 17 21 72 66 13 9C 7C 64 63 [00:06:45]Malloc new data [00:06:45]Malloc new data [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 11 00 00 [00:06:45]Write to MH i2c: E2 08 00 BA 13 80 11 00 00 00 00 00 00 47 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 17 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 17 00 BA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 9C [00:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:06:45]wFMCommunicate OK [00:06:45]SAM_PROTO_GetFieldsCounters [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 13 00 00 [00:06:45]Write to MH i2c: E2 08 00 BB 13 80 13 00 00 00 00 00 00 4A [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 62 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 62 00 BB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [00:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:45]wFMCommunicate OK [00:06:45]SAM_PROTO_GetFieldsCounters done [00:06:45]Malloc new data [00:06:45]Malloc new data [00:06:45]Malloc new data [00:06:45]KKMCreateXReportDocument OK [00:06:45]KKMSetXReportData OK [00:06:45]KKMPrepareXReportFMData [00:06:45]SAM_PROTO_GetShiftData [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 13 02 00 [00:06:45]Write to MH i2c: E2 08 00 BC 13 80 13 02 00 00 00 00 00 4D [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 BC 13 00 B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 16 [00:06:45]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:46]wFMCommunicate OK [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 17 00 00 [00:06:46]Write to MH i2c: E2 08 00 BD 13 80 17 00 00 00 00 00 00 50 [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 FD 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 FD 00 BD 13 00 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 26 [00:06:46]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 OFD Sender: No OFD packet to send [00:06:46]F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:46]wFMCommunicate OK [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 17 00 00 [00:06:46]Write to MH i2c: E2 08 00 BE 13 80 17 00 00 00 00 00 00 51 [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 FD 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 FD 00 BE 13 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 F3 [00:06:47]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 17 00 00 [00:06:47]Write to MH i2c: E2 08 00 BF 13 80 17 00 00 00 00 00 00 52 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:47]Read from MH i2c: E2 FD 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 BF 13 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 DB [00:06:47]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 17 00 00 [00:06:47]Write to MH i2c: E2 08 00 C0 13 80 17 00 00 00 00 00 00 53 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 D5 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 D5 00 C0 13 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 34 [00:06:47]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:48]wFMCommunicate OK [00:06:48]SAM_PROTO_GetShiftData done [00:06:48]1194 (1204) - счетчики итогов смены [00:06:48] 1134 (4) - 116 - количество чеков со всеми признаками расчетов [00:06:48] 1129 (155) - счетчики операций «приход» [00:06:48] 1135 (4) - 113 - количество чеков по признаку расчетов [00:06:48] 1201 (3) - 36531.40 - общая итоговая сумма в чеках [00:06:48] 1136 (3) - 30277.00 - итоговая сумма в чеках наличными [00:06:48] 1138 (3) - 6254.40 - итоговая сумма в чеках безналичными [00:06:48] 1024 (122) - суммы налогов [00:06:48] 1006 (9) - суммы НДС [00:06:48] 1010 (1) - 0% - код ставки НДС [00:06:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:48] 1006 (12) - суммы НДС [00:06:48] 1010 (1) - 12% - код ставки НДС [00:06:48] 1011 (3) - 3880.03 - сумма НДС по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (11) - суммы НСП [00:06:48] 1014 (1) - 1% - код ставки НСП [00:06:48] 1015 (2) - 323.19 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 2% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 3% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 5% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 1,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1130 (151) - счетчики операций «возврат прихода» [00:06:48] 1135 (4) - 3 - количество чеков по признаку расчетов [00:06:48] 1201 (3) - 4220.00 - общая итоговая сумма в чеках [00:06:48] 1136 (3) - 4220.00 - итоговая сумма в чеках наличными [00:06:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:48] 1024 (121) - суммы налогов [00:06:48] 1006 (9) - суммы НДС [00:06:48] 1010 (1) - 0% - код ставки НДС [00:06:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:48] 1006 (11) - суммы НДС [00:06:48] 1010 (1) - 12% - код ставки НДС [00:06:48] 1011 (2) - 448.19 - сумма НДС по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (11) - суммы НСП [00:06:48] 1014 (1) - 1% - код ставки НСП [00:06:48] 1015 (2) - 37.35 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 2% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 3% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 5% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 1,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1131 (141) - счетчики операций «расход» [00:06:48] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:48] 1024 (117) - суммы налогов [00:06:48] 1006 (9) - суммы НДС [00:06:48] 1010 (1) - 0% - код ставки НДС [00:06:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:48] 1006 (9) - суммы НДС [00:06:48] 1010 (1) - 12% - код ставки НДС [00:06:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 1% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 2% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 3% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 5% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 1,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1132 (141) - счетчики операций «возврат расхода» [00:06:48] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:48] 1024 (117) - суммы налогов [00:06:48] 1006 (9) - суммы НДС [00:06:48] 1010 (1) - 0% - код ставки НДС [00:06:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:48] 1006 (9) - суммы НДС [00:06:48] 1010 (1) - 12% - код ставки НДС [00:06:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 1% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 2% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 3% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 5% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 0,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1007 (9) - суммы НСП [00:06:48] 1014 (1) - 1,50% - код ставки НСП [00:06:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:48] 1133 (588) - - счетчики коррекции - не используются [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1194 (04AA) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1134 (046E) [00:06:48]Malloc new data [00:06:48]Processing tag 1129 (0469) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1135 (046F) [00:06:48]Malloc new data [00:06:48]Processing tag 1201 (04B1) [00:06:48]Malloc new data [00:06:48]Processing tag 1136 (0470) [00:06:48]Malloc new data [00:06:48]Processing tag 1138 (0472) [00:06:48]Malloc new data [00:06:48]Processing tag 1024 (0400) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1006 (03EE) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1010 (03F2) [00:06:48]Malloc new data [00:06:48]Processing tag 1011 (03F3) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1006 (03EE) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1010 (03F2) [00:06:48]Malloc new data [00:06:48]Processing tag 1011 (03F3) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]SetTLVBufToDocument err=0 [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1130 (046A) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1135 (046F) [00:06:48]Malloc new data [00:06:48]Processing tag 1201 (04B1) [00:06:48]Malloc new data [00:06:48]Processing tag 1136 (0470) [00:06:48]Malloc new data [00:06:48]Processing tag 1138 (0472) [00:06:48]Malloc new data [00:06:48]Processing tag 1024 (0400) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1006 (03EE) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1010 (03F2) [00:06:48]Malloc new data [00:06:48]Processing tag 1011 (03F3) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1006 (03EE) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1010 (03F2) [00:06:48]Malloc new data [00:06:48]Processing tag 1011 (03F3) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]SetTLVBufToDocument err=0 [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1131 (046B) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1135 (046F) [00:06:48]Malloc new data [00:06:48]Processing tag 1201 (04B1) [00:06:48]Malloc new data [00:06:48]Processing tag 1136 (0470) [00:06:48]Malloc new data [00:06:48]Processing tag 1138 (0472) [00:06:48]Malloc new data [00:06:48]Processing tag 1024 (0400) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1006 (03EE) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1010 (03F2) [00:06:48]Malloc new data [00:06:48]Processing tag 1011 (03F3) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1006 (03EE) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1010 (03F2) [00:06:48]Malloc new data [00:06:48]Processing tag 1011 (03F3) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:48]Malloc new data [00:06:48]Processing tag 1015 (03F7) [00:06:48]Malloc new data [00:06:48]SetTLVBufToDocument err=0 [00:06:48]Processing tag 1007 (03EF) [00:06:48]Load OK [00:06:48]SetTLVBufToDocument [00:06:48]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]SetTLVBufToDocument err=0 [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1132 (046C) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1135 (046F) [00:06:49]Malloc new data [00:06:49]Processing tag 1201 (04B1) [00:06:49]Malloc new data [00:06:49]Processing tag 1136 (0470) [00:06:49]Malloc new data [00:06:49]Processing tag 1138 (0472) [00:06:49]Malloc new data [00:06:49]Processing tag 1024 (0400) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1006 (03EE) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1010 (03F2) [00:06:49]Malloc new data [00:06:49]Processing tag 1011 (03F3) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1006 (03EE) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1010 (03F2) [00:06:49]Malloc new data [00:06:49]Processing tag 1011 (03F3) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1007 (03EF) [00:06:49]Load OK [00:06:49]SetTLVBufToDocument [00:06:49]Processing tag 1014 (03F6) [00:06:49]Malloc new data [00:06:49]Processing tag 1015 (03F7) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]SetTLVBufToDocument err=0 [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Processing tag 1133 (046D) [00:06:49]Malloc new data [00:06:49]SetTLVBufToDocument err=0 [00:06:49]SetTLVBufToDocument err=0 [00:06:49]Malloc new data [00:06:49]SAM_PROTO_GetFMData [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 13 03 00 [00:06:49]Write to MH i2c: E2 08 00 C1 13 80 13 03 00 00 00 00 00 53 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 C1 13 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 94 [00:06:49]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:06:49]wFMCommunicate OK [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 17 00 00 [00:06:49]Write to MH i2c: E2 08 00 C2 13 80 17 00 00 00 00 00 00 55 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 C2 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [00:06:50]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 C3 13 80 17 00 00 00 00 00 00 56 [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 C3 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [00:06:50]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 C4 13 80 17 00 00 00 00 00 00 57 [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 C4 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CF [00:06:51]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:51]wFMCommunicate OK [00:06:51]wFMCommunicate request_size=4 [00:06:51]MH_SAM_APDU [00:06:51]CAPDU: 80 17 00 00 [00:06:51]Write to MH i2c: E2 08 00 C5 13 80 17 00 00 00 00 00 00 58 [00:06:51]Write i2c OK [00:06:51]MH_I2C_Read... [00:06:51]OFD Sender: No OFD packet to send [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 E1 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 E1 00 C5 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:06:51]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:51]wFMCommunicate OK [00:06:51]SAM_PROTO_GetFMData done [00:06:51]FM_GetFMData:85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 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 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:52]oper:6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:52]total:AC A7 22 50 [00:06:52]Malloc new data [00:06:52]oper:6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 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 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:52]total:00 E4 DB 03 [00:06:52]Malloc new data [00:06:52]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:06:53]total: [00:06:53]Malloc new data [00:06:53]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:06:53]total: [00:06:53]Malloc new data [00:06:53]KKMPrepareXReportFMData err=0 [00:06:53]Х отчет ИНН: 02508201610067 Кассир: Асанбаев Н. 19.06.2024 00:06 Смена: 266 РНМ: 0000000000092786 ЗНМ: 0300000172 СНО: Общий режим Всего чеков: 116 ИТОГИ ПРИХОД Чеков: 113 Общий итог: 36531.40 Итого наличными: 30277.00 Итого безнал.: 6254.40 НДС 0% : 0.00 НДС 12% : 3880.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 323.19 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 4220.00 Итого наличными: 4220.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 448.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 37.35 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 26057.00 НС Приход: 13444484.28 НС Возвр.Прихода: 647424.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875095 [00:06:53]StoreToDocumentArchive [00:06:53]MH_GetDate [00:06:53]Write to MH i2c: F0 00 00 C6 13 C8 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: F0 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: F0 09 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: F0 09 00 C6 13 00 1F 21 72 66 13 9C 7C 64 78 [00:06:53]shift 266 fd 1718755615 [00:06:53]Create dir for shift 0266 [00:06:53]save to /storage/0266/doc_1718755615 [00:06:53]save last doc name /storage/0266/doc_1718755615 to /storage/kkm_last_doc_name [00:06:53]save OK [00:06:53]Clear old archive folders... [00:06:53]NVStorageSaveData kkm_last_timestamp [00:06:53]File name is /storage/kkm_last_timestamp [00:06:53]Write 4 bytes [00:06:53]NVStorageSaveData done [00:06:53]ExternCall_PrintAddStr [00:06:53]wPrintStart [00:06:53]Write to MH i2c: 01 00 00 C7 13 DA [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: 01 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: 01 07 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 FF 0F EF [00:06:53]RasterBufferAndPrint [00:06:53]line Х отчет [00:06:53]line ИНН: 02508201610067 [00:06:53]line Кассир: Асанбаев Н. [00:06:53]line 19.06.2024 00:06 [00:06:53]line Смена: 266 [00:06:53]line РНМ: 0000000000092786 [00:06:53]line ЗНМ: 0300000172 [00:06:53]line СНО: Общий режим [00:06:53]line Всего чеков: 116 [00:06:53]line ИТОГИ ПРИХОД [00:06:53]line Чеков: 113 [00:06:53]line Общий итог: 36531.40 [00:06:53]line Итого наличными: 30277.00 [00:06:53]line Итого безнал.: 6254.40 [00:06:53]line НДС 0% : 0.00 [00:06:53]line НДС 12% : 3880.03 [00:06:53]line НСП 0% : 0.00 [00:06:53]line НСП 1,50% : 0.00 [00:06:53]line НСП 0,50% : 0.00 [00:06:53]line НСП 5% : 0.00 [00:06:53]line НСП 3% : 0.00 [00:06:53]line НСП 2% : 0.00 [00:06:53]line НСП 1% : 323.19 [00:06:53]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:53]line Чеков: 3 [00:06:53]line Общий итог: 4220.00 [00:06:53]line Итого наличными: 4220.00 [00:06:53]line Итого безнал.: 0.00 [00:06:53]line НДС 0% : 0.00 [00:06:53]line НДС 12% : 448.19 [00:06:53]line НСП 0% : 0.00 [00:06:53]line НСП 1,50% : 0.00 [00:06:53]line НСП 0,50% : 0.00 [00:06:53]line НСП 5% : 0.00 [00:06:53]line НСП 3% : 0.00 [00:06:53]line НСП 2% : 0.00 [00:06:53]line НСП 1% : 37.35 [00:06:53]line ИТОГИ РАСХОД [00:06:53]line Чеков: 0 [00:06:53]line Общий итог: 0.00 [00:06:53]line Итого наличными: 0.00 [00:06:53]line Итого безнал.: 0.00 [00:06:53]line НДС 0% : 0.00 [00:06:53]line НДС 12% : 0.00 [00:06:53]line НСП 0% : 0.00 [00:06:53]line НСП 1,50% : 0.00 [00:06:53]line НСП 0,50% : 0.00 [00:06:53]line НСП 5% : 0.00 [00:06:53]line НСП 3% : 0.00 [00:06:53]line НСП 2% : 0.00 [00:06:53]line НСП 1% : 0.00 [00:06:53]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:53]line Чеков: 0 [00:06:53]line Общий итог: 0.00 [00:06:53]line Итого наличными: 0.00 [00:06:53]line Итого безнал.: 0.00 [00:06:53]line НДС 0% : 0.00 [00:06:53]line НДС 12% : 0.00 [00:06:53]line НСП 0% : 0.00 [00:06:53]line НСП 1,50% : 0.00 [00:06:53]line НСП 0,50% : 0.00 [00:06:53]line НСП 5% : 0.00 [00:06:53]line НСП 3% : 0.00 [00:06:53]line НСП 2% : 0.00 [00:06:53]line НСП 1% : 0.00 [00:06:53]line Сумма внесений: 0.00 [00:06:53]line Сумма выплат: 0.00 [00:06:53]line Нал. в кассе: 26057.00 [00:06:53]line НС Приход: 13444484.28 [00:06:53]line НС Возвр.Прихода: 647424.00 [00:06:53]line НС Расход: 0.00 [00:06:53]line НС Возвр.Расхода: 0.00 [00:06:53]line ФМ: 0000000000875095 [00:06:53]written 0, free lines is 4095 [00:06:53]Write to MH i2c: 01 00 00 12 14 26 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: 01 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: 01 07 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 BE 0A F5 [00:06:54]RasterBufferAndPrint [00:06:54]line [00:06:54]line [00:06:54]line [00:06:54]line [00:06:54]line [00:06:54]written 0, free lines is 2787 [00:06:54]MH_Cut [00:06:54]Write to MH i2c: D1 01 00 19 14 01 FF [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: D1 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: D1 01 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: D1 01 00 19 14 00 FE [00:06:54]Write to MH i2c: 01 00 00 1A 14 2E [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:55]*** Cut start [00:06:55]*** Partial cut [00:06:55]*** CUTSNS_PIN = 1 [00:06:55]*** CUTSNS_PIN = 0 [00:06:55]*** Brake cut motor [00:06:55]Read from MH i2c: 01 [00:06:55]MH_I2C_Read... [00:06:55]*** Stop cut motor [00:06:55]*** Cut end [00:06:55]Read from MH i2c: 01 07 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 FF 0F 43 [00:06:55]process_action x_report done [00:06:55]requested_data is exist [00:06:55]produce_requested_data [00:06:55]requested_item fd.num is exist - process it [00:06:55]SAM_PROTO_GetFieldsCounters [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 13 00 00 [00:06:55]Write to MH i2c: E2 08 00 1B 14 80 13 00 00 00 00 00 00 AB [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 62 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 62 00 1B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [00:06:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:55]wFMCommunicate OK [00:06:55]SAM_PROTO_GetFieldsCounters done [00:06:55]requested_item shift.num is exist - process it [00:06:55]requested_item shift.opened is exist - process it [00:06:55]req_shift_opened [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 1C 14 80 13 01 00 00 00 00 00 AD [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 0E 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 0E 00 1C 14 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 F8 [00:06:56]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:06:56]wFMCommunicate OK [00:06:56]SAM_PROTO_GetShiftState done [00:06:56]FM_GetShiftState done [00:06:56]req_shift_opened done [00:06:56]requested_item shift.open_date is exist - process it [00:06:56]req_shift_open_date [00:06:56]req_shift_open_date done [00:06:56]produce_requested_data done [00:06:56]produce_requested_data return {"fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [00:06:56]process_action_free x_report [00:06:56]json_value_free [00:06:56]json_value_free done [00:06:56]process_json_proto returns [00:06:56]Send response to host [00:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [00:06:56]free response buf [00:06:56]execute_script done [00:06:56]execute_script returns [00:06:56]free content buf [00:06:56]Sock 7.Close socket [00:06:56]Sock 7.Thread stoped [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:28]accept exits with 9 [00:07:28]New connection [00:07:28]New thread 3067424100 created [00:07:28]Thread 3067567460 joined [00:07:28]Waiting for new connection... [00:07:28] Sock 9.Parse request [00:07:28]Sock 9.Check first char [00:07:28]Sock 9.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.38.134:8080 [00:07:28]Content-Length: 215 [00:07:28]Content-Type: application/json [00:07:28] [00:07:28]POST finish read [00:07:28]Found Content-Length = 215 [00:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:28]execute_script... [00:07:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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=get_value [00:07:28]process_action get_value [00:07:28]cmd_get_value [00:07:28]process_action get_value done [00:07:28]requested_data is exist [00:07:28]produce_requested_data [00:07:28]requested_item kkm.sn is exist - process it [00:07:28]requested_item kkm.ver is exist - process it [00:07:28]requested_item fm.sn is exist - process it [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 11 00 00 [00:07:28]Write to MH i2c: E2 08 00 1D 14 80 11 00 00 00 00 00 00 AB [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:28]Read from MH i2c: E2 [00:07:28]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 1D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 00 [00:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:07:29]wFMCommunicate OK [00:07:29]requested_item fd.num is exist - process it [00:07:29]SAM_PROTO_GetFieldsCounters [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 13 00 00 [00:07:29]Write to MH i2c: E2 08 00 1E 14 80 13 00 00 00 00 00 00 AE [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 62 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 62 00 1E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F6 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_GetFieldsCounters done [00:07:29]requested_item shift.num is exist - process it [00:07:29]requested_item shift.opened is exist - process it [00:07:29]req_shift_opened [00:07:29]FM_GetShiftState [00:07:29]SAM_PROTO_GetShiftState [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 13 01 00 [00:07:29]Write to MH i2c: E2 08 00 1F 14 80 13 01 00 00 00 00 00 B0 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 0E 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 0E 00 1F 14 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 FB [00:07:29]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_GetShiftState done [00:07:29]FM_GetShiftState done [00:07:29]req_shift_opened done [00:07:29]requested_item shift.open_date is exist - process it [00:07:29]req_shift_open_date [00:07:29]req_shift_open_date done [00:07:29]produce_requested_data done [00:07:29]produce_requested_data return {"kkm.sn":"0300000172","kkm.ver":"001","fm.sn":"0000000000875095","fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230} [00:07:29]process_action_free get_value [00:07:29]json_value_free [00:07:29]json_value_free done [00:07:29]process_json_proto returns [00:07:29]Send response to host [00:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000172","kkm.ver":"001","fm.sn":"0000000000875095","fd.num":34294,"shift.num":323,"shift.opened":1,"shift.open_date":1718670230}}} [00:07:29]free response buf [00:07:29]execute_script done [00:07:29]execute_script returns [00:07:29]free content buf [00:07:29]Sock 9.Close socket [00:07:29]Sock 9.Thread stoped [00:07:29]accept exits with 7 [00:07:29]New connection [00:07:29]New thread 3067567460 created [00:07:29]Thread 3067424100 joined [00:07:29]Waiting for new connection... [00:07:29] Sock 7.Parse request [00:07:29]Sock 7.Check first char [00:07:29]Sock 7.First char is OK [00:07:29]request: POST /json_proto HTTP/1.0 [00:07:29]Method: POST [00:07:29]URL: /json_proto [00:07:29]Method is POST - this is cgi request [00:07:29]url: /json_proto [00:07:29]query_string will be loaded in cgi processing [00:07:29]execute_cgi json_proto POST (null) [00:07:29]execute_cgi path=json_proto method=POST [00:07:29]POST find Content-Length [00:07:29]Host: 172.17.38.134:8080 [00:07:29]Content-Length: 331 [00:07:29]Content-Type: application/json [00:07:29] [00:07:29]POST finish read [00:07:29]Found Content-Length = 331 [00:07:29]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:07:29]execute_script... [00:07:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:29]POST & json_proto [00:07:29]process_json_proto [00:07:29]json parsed OK: [00:07:29]protocol is kg_v1.0 [00:07:29]action value=get_value [00:07:29]process_action get_value [00:07:29]cmd_get_value [00:07:29]process_action get_value done [00:07:29]requested_data is exist [00:07:29]produce_requested_data [00:07:29]requested_item fm.sale.total is exist - process it [00:07:29]SAM_PROTO_GetFMData [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 13 03 00 [00:07:29]Write to MH i2c: E2 08 00 20 14 80 13 03 00 00 00 00 00 B3 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:29]Read from MH i2c: E2 FD 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 20 14 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 F4 [00:07:29]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 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 17 00 00 [00:07:29]Write to MH i2c: E2 08 00 21 14 80 17 00 00 00 00 00 00 B5 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 21 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [00:07:30]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 22 14 80 17 00 00 00 00 00 00 B6 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 22 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [00:07:30]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 23 14 80 17 00 00 00 00 00 00 B7 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 23 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2F [00:07:30]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 24 14 80 17 00 00 00 00 00 00 B8 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 E1 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 E1 00 24 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [00:07:31]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:31]wFMCommunicate OK [00:07:31]SAM_PROTO_GetFMData done [00:07:31]requested_item fm.sale_refund.total is exist - process it [00:07:31]requested_item fm.buy.total is exist - process it [00:07:31]requested_item shift.sale.total is exist - process it [00:07:31]SAM_PROTO_GetShiftData [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 13 02 00 [00:07:31]Write to MH i2c: E2 08 00 25 14 80 13 02 00 00 00 00 00 B7 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 25 14 00 B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 80 [00:07:31]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 26 14 80 17 00 00 00 00 00 00 BA [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]OFD Sender: No OFD packet to send [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 26 14 00 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 90 [00:07:31]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 27 14 80 17 00 00 00 00 00 00 BB [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 27 14 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 5D [00:07:32]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 28 14 80 17 00 00 00 00 00 00 BC [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 28 14 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 45 [00:07:32]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 29 14 80 17 00 00 00 00 00 00 BD [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 D5 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 D5 00 29 14 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [00:07:32]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:33]wFMCommunicate OK [00:07:33]SAM_PROTO_GetShiftData done [00:07:33]requested_item shift.sale.total_cash is exist - process it [00:07:33]requested_item shift.sale_refund.total is exist - process it [00:07:33]requested_item shift.sale_refund.total_cash is exist - process it [00:07:33]requested_item shift.buy.total is exist - process it [00:07:33]requested_item shift.buy.total_cash is exist - process it [00:07:33]produce_requested_data done [00:07:33]produce_requested_data return {"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:33]process_action_free get_value [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.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [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:33]accept exits with 9 [00:07:33]New connection [00:07:33]New thread 3067424100 created [00:07:33]Thread 3067567460 joined [00:07:33]Waiting for new connection... [00:07:33] Sock 9.Parse request [00:07:33]Sock 9.Check first char [00:07:33]Sock 9.First char is OK [00:07:33]request: POST /json_proto HTTP/1.0 [00:07:33]Method: POST [00:07:33]URL: /json_proto [00:07:33]Method is POST - this is cgi request [00:07:33]url: /json_proto [00:07:33]query_string will be loaded in cgi processing [00:07:33]execute_cgi json_proto POST (null) [00:07:33]execute_cgi path=json_proto method=POST [00:07:33]POST find Content-Length [00:07:33]Host: 172.17.38.134:8080 [00:07:33]Content-Length: 331 [00:07:33]Content-Type: application/json [00:07:33] [00:07:33]POST finish read [00:07:33]Found Content-Length = 331 [00:07:33]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:07:33]execute_script... [00:07:33]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:07:33]POST & json_proto [00:07:33]process_json_proto [00:07:33]json parsed OK: [00:07:33]protocol is kg_v1.0 [00:07:33]action value=get_value [00:07:33]process_action get_value [00:07:33]cmd_get_value [00:07:33]process_action get_value done [00:07:33]requested_data is exist [00:07:33]produce_requested_data [00:07:33]requested_item fm.sale.total is exist - process it [00:07:33]SAM_PROTO_GetFMData [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 13 03 00 [00:07:33]Write to MH i2c: E2 08 00 2A 14 80 13 03 00 00 00 00 00 BD [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 2A 14 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 FE [00:07:33]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 17 00 00 [00:07:33]Write to MH i2c: E2 08 00 2B 14 80 17 00 00 00 00 00 00 BF [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 2B 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [00:07:34]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 2C 14 80 17 00 00 00 00 00 00 C0 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 2C 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:07:34]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 2D 14 80 17 00 00 00 00 00 00 C1 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 2D 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 39 [00:07:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 2E 14 80 17 00 00 00 00 00 00 C2 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 E1 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 E1 00 2E 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B0 [00:07:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:35]wFMCommunicate OK [00:07:35]SAM_PROTO_GetFMData done [00:07:35]requested_item fm.sale_refund.total is exist - process it [00:07:35]requested_item fm.buy.total is exist - process it [00:07:35]requested_item shift.sale.total is exist - process it [00:07:35]SAM_PROTO_GetShiftData [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 13 02 00 [00:07:35]Write to MH i2c: E2 08 00 2F 14 80 13 02 00 00 00 00 00 C1 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 2F 14 00 B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 8A [00:07:36]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 30 14 80 17 00 00 00 00 00 00 C4 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 30 14 00 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 9A [00:07:36]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 31 14 80 17 00 00 00 00 00 00 C5 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]OFD Sender: No OFD packet to send [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 31 14 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 67 [00:07:37]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 32 14 80 17 00 00 00 00 00 00 C6 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 32 14 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 4F [00:07:37]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 33 14 80 17 00 00 00 00 00 00 C7 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 D5 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 D5 00 33 14 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A8 [00:07:38]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:38]wFMCommunicate OK [00:07:38]SAM_PROTO_GetShiftData done [00:07:38]requested_item shift.sale.total_cash is exist - process it [00:07:38]requested_item shift.sale_refund.total is exist - process it [00:07:38]requested_item shift.sale_refund.total_cash is exist - process it [00:07:38]requested_item shift.buy.total is exist - process it [00:07:38]requested_item shift.buy.total_cash is exist - process it [00:07:38]produce_requested_data done [00:07:38]produce_requested_data return {"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:38]process_action_free get_value [00:07:38]json_value_free [00:07:38]json_value_free done [00:07:38]process_json_proto returns [00:07:38]Send response to host [00:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:38]free response buf [00:07:38]execute_script done [00:07:38]execute_script returns [00:07:38]free content buf [00:07:38]Sock 9.Close socket [00:07:38]Sock 9.Thread stoped [00:07:38]accept exits with 7 [00:07:38]New connection [00:07:38]New thread 3067567460 created [00:07:38]Thread 3067424100 joined [00:07:38]Waiting for new connection... [00:07:38] Sock 7.Parse request [00:07:38]Sock 7.Check first char [00:07:38]Sock 7.First char is OK [00:07:38]request: POST /json_proto HTTP/1.0 [00:07:38]Method: POST [00:07:38]URL: /json_proto [00:07:38]Method is POST - this is cgi request [00:07:38]url: /json_proto [00:07:38]query_string will be loaded in cgi processing [00:07:38]execute_cgi json_proto POST (null) [00:07:38]execute_cgi path=json_proto method=POST [00:07:38]POST find Content-Length [00:07:38]Host: 172.17.38.134:8080 [00:07:38]Content-Length: 260 [00:07:38]Content-Type: application/json [00:07:38] [00:07:38]POST finish read [00:07:38]Found Content-Length = 260 [00:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:38]execute_script... [00:07:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:38]POST & json_proto [00:07:38]process_json_proto [00:07:38]json parsed OK: [00:07:38]protocol is kg_v1.0 [00:07:38]action value=close_shift [00:07:38]process_action close_shift [00:07:38]cmd_close_shift [00:07:38]MH_GetDate [00:07:38]Write to MH i2c: F0 00 00 34 14 37 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: F0 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: F0 09 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: F0 09 00 34 14 00 4C 21 72 66 13 9C 7C 64 14 [00:07:38]GetLastDocTimeStamp 1718755607 [00:07:38]current date 1718755660 [00:07:38]FM_GetShiftState [00:07:38]SAM_PROTO_GetShiftState [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 13 01 00 [00:07:38]Write to MH i2c: E2 08 00 35 14 80 13 01 00 00 00 00 00 C6 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 0E 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 0E 00 35 14 00 09 00 01 96 D3 70 66 00 00 00 00 90 00 11 [00:07:38]RAPDU: 09 00 01 96 D3 70 66 00 00 00 00 90 00 [00:07:38]wFMCommunicate OK [00:07:38]SAM_PROTO_GetShiftState done [00:07:38]FM_GetShiftState done [00:07:38]KKMCreateCloseShiftDocument [00:07:38]Load OK [00:07:38]Malloc new data [00:07:38]MH_GetDate [00:07:38]Write to MH i2c: F0 00 00 36 14 39 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: F0 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: F0 09 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: F0 09 00 36 14 00 4C 21 72 66 13 9C 7C 64 16 [00:07:38]Malloc new data [00:07:38]Malloc new data [00:07:38]Malloc new data [00:07:38]Malloc new data [00:07:38]KKMCreateCloseShiftDocument OK [00:07:38]KKMSetCloseShiftData OK [00:07:38]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:07:38]tlvbuf is 019DE030 [00:07:38]KKMLoadAndSignCloseShiftData [00:07:38]SAM_PROTO_ProcessDocument [00:07:38]wFMCommunicate request_size=9 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 01 00 04 05 00 47 00 [00:07:38]Write to MH i2c: E2 0C 00 37 14 80 15 01 00 04 00 05 00 47 00 00 00 1E [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=23 [00:07:38]MH_SAM_APDU [00:07:38]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:07:38]Write to MH i2c: E2 1A 00 38 14 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 C1 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=30 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:07:38]Write to MH i2c: E2 21 00 39 14 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 B6 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=13 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 08 F4 03 04 00 4C 21 72 66 [00:07:38]Write to MH i2c: E2 10 00 3A 14 80 15 02 00 08 00 F4 03 04 00 4C 21 72 66 00 00 1E [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=25 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [00:07:38]Write to MH i2c: E2 1C 00 3B 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 38 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 03 00 [00:07:38]Write to MH i2c: E2 08 00 3C 14 80 15 03 00 00 00 00 00 D1 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 3C 14 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F7 85 00 00 0E 04 04 00 43 01 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 90 00 29 [00:07:39]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F7 85 00 00 0E 04 04 00 43 01 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 90 00 [00:07:39]wFMCommunicate OK [00:07:39]SAM_PROTO_ProcessDocument answer len = 1275 [00:07:39]SAM_PROTO_ProcessDocument remain to read = 1027 [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 17 00 00 [00:07:39]Write to MH i2c: E2 08 00 3D 14 80 17 00 00 00 00 00 00 D1 [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 3D 14 00 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF 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 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:07:39]RAPDU: 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF 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 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:40]wFMCommunicate OK [00:07:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:40]SAM_PROTO_ProcessDocument remain to read = 777 [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 17 00 00 [00:07:40]Write to MH i2c: E2 08 00 3E 14 80 17 00 00 00 00 00 00 D2 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 3E 14 00 F7 03 00 00 EF 03 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 90 00 34 [00:07:40]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:07:40]wFMCommunicate OK [00:07:40]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:40]SAM_PROTO_ProcessDocument remain to read = 527 [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 17 00 00 [00:07:40]Write to MH i2c: E2 08 00 3F 14 80 17 00 00 00 00 00 00 D3 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 FD 00 3F 14 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [00:07:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:41]SAM_PROTO_ProcessDocument remain to read = 277 [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 40 14 80 17 00 00 00 00 00 00 D4 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 40 14 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [00:07:41]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:41]SAM_PROTO_ProcessDocument remain to read = 27 [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 41 14 80 17 00 00 00 00 00 00 D5 [00:07:41]OFD Sender: No OFD packet to send [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 1E 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 1E 00 41 14 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 25 45 C0 F1 5E 41 90 00 CC [00:07:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 25 45 C0 F1 5E 41 90 00 [00:07:41]wFMCommunicate OK [00:07:41]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:07:41]SAM_PROTO_ProcessDocument done [00:07:41]1209 (1) - 1.0 - номер версии ФФД [00:07:41]1041 (16) - 0000000000875095 - номер ФМ [00:07:41]1040 (4) - 34295 - номер ФД [00:07:41]1038 (4) - 323 - номер смены [00:07:41]1118 (4) - 116 - количество кассовых чеков за смену [00:07:41]1111 (4) - 118 - общее количество ФД за смену [00:07:41]1194 (1204) - счетчики итогов смены [00:07:41] 1134 (4) - 116 - количество чеков со всеми признаками расчетов [00:07:41] 1129 (155) - счетчики операций «приход» [00:07:41] 1135 (4) - 113 - количество чеков по признаку расчетов [00:07:42] 1201 (3) - 36531.40 - общая итоговая сумма в чеках [00:07:42] 1136 (3) - 30277.00 - итоговая сумма в чеках наличными [00:07:42] 1138 (3) - 6254.40 - итоговая сумма в чеках безналичными [00:07:42] 1024 (122) - суммы налогов [00:07:42] 1006 (9) - суммы НДС [00:07:42] 1010 (1) - 0% - код ставки НДС [00:07:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:42] 1006 (12) - суммы НДС [00:07:42] 1010 (1) - 12% - код ставки НДС [00:07:42] 1011 (3) - 3880.03 - сумма НДС по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (11) - суммы НСП [00:07:42] 1014 (1) - 1% - код ставки НСП [00:07:42] 1015 (2) - 323.19 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 2% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 3% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 5% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 1,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1130 (151) - счетчики операций «возврат прихода» [00:07:42] 1135 (4) - 3 - количество чеков по признаку расчетов [00:07:42] 1201 (3) - 4220.00 - общая итоговая сумма в чеках [00:07:42] 1136 (3) - 4220.00 - итоговая сумма в чеках наличными [00:07:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:42] 1024 (121) - суммы налогов [00:07:42] 1006 (9) - суммы НДС [00:07:42] 1010 (1) - 0% - код ставки НДС [00:07:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:42] 1006 (11) - суммы НДС [00:07:42] 1010 (1) - 12% - код ставки НДС [00:07:42] 1011 (2) - 448.19 - сумма НДС по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (11) - суммы НСП [00:07:42] 1014 (1) - 1% - код ставки НСП [00:07:42] 1015 (2) - 37.35 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 2% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 3% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 5% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 1,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1131 (141) - счетчики операций «расход» [00:07:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:42] 1024 (117) - суммы налогов [00:07:42] 1006 (9) - суммы НДС [00:07:42] 1010 (1) - 0% - код ставки НДС [00:07:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:42] 1006 (9) - суммы НДС [00:07:42] 1010 (1) - 12% - код ставки НДС [00:07:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 1% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 2% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 3% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 5% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 1,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1132 (141) - счетчики операций «возврат расхода» [00:07:42] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:42] 1024 (117) - суммы налогов [00:07:42] 1006 (9) - суммы НДС [00:07:42] 1010 (1) - 0% - код ставки НДС [00:07:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:42] 1006 (9) - суммы НДС [00:07:42] 1010 (1) - 12% - код ставки НДС [00:07:42] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 1% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 2% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 3% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 5% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 0,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1007 (9) - суммы НСП [00:07:42] 1014 (1) - 1,50% - код ставки НСП [00:07:42] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:42] 1133 (588) - - счетчики коррекции - не используются [00:07:42]1077 (6) - 40981520014913 - ФПД [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1209 (04B9) [00:07:42]Malloc new data [00:07:42]Processing tag 1041 (0411) [00:07:42]Processing tag 1040 (0410) [00:07:42]Malloc new data [00:07:42]Processing tag 1038 (040E) [00:07:42]Malloc new data [00:07:42]Processing tag 1118 (045E) [00:07:42]Malloc new data [00:07:42]Processing tag 1111 (0457) [00:07:42]Malloc new data [00:07:42]Processing tag 1194 (04AA) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1134 (046E) [00:07:42]Malloc new data [00:07:42]Processing tag 1129 (0469) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1135 (046F) [00:07:42]Malloc new data [00:07:42]Processing tag 1201 (04B1) [00:07:42]Malloc new data [00:07:42]Processing tag 1136 (0470) [00:07:42]Malloc new data [00:07:42]Processing tag 1138 (0472) [00:07:42]Malloc new data [00:07:42]Processing tag 1024 (0400) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]SetTLVBufToDocument err=0 [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1130 (046A) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1135 (046F) [00:07:42]Malloc new data [00:07:42]Processing tag 1201 (04B1) [00:07:42]Malloc new data [00:07:42]Processing tag 1136 (0470) [00:07:42]Malloc new data [00:07:42]Processing tag 1138 (0472) [00:07:42]Malloc new data [00:07:42]Processing tag 1024 (0400) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]SetTLVBufToDocument err=0 [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1131 (046B) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1135 (046F) [00:07:42]Malloc new data [00:07:42]Processing tag 1201 (04B1) [00:07:42]Malloc new data [00:07:42]Processing tag 1136 (0470) [00:07:42]Malloc new data [00:07:42]Processing tag 1138 (0472) [00:07:42]Malloc new data [00:07:42]Processing tag 1024 (0400) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]SetTLVBufToDocument err=0 [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1132 (046C) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1135 (046F) [00:07:42]Malloc new data [00:07:42]Processing tag 1201 (04B1) [00:07:42]Malloc new data [00:07:42]Processing tag 1136 (0470) [00:07:42]Malloc new data [00:07:42]Processing tag 1138 (0472) [00:07:42]Malloc new data [00:07:42]Processing tag 1024 (0400) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1006 (03EE) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1010 (03F2) [00:07:42]Malloc new data [00:07:42]Processing tag 1011 (03F3) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:42]Processing tag 1007 (03EF) [00:07:42]Load OK [00:07:42]SetTLVBufToDocument [00:07:42]Processing tag 1014 (03F6) [00:07:42]Malloc new data [00:07:42]Processing tag 1015 (03F7) [00:07:42]Malloc new data [00:07:42]SetTLVBufToDocument err=0 [00:07:43]SetTLVBufToDocument err=0 [00:07:43]SetTLVBufToDocument err=0 [00:07:43]Processing tag 1133 (046D) [00:07:43]Malloc new data [00:07:43]SetTLVBufToDocument err=0 [00:07:43]Processing tag 1077 (0435) [00:07:43]Malloc new data [00:07:43]SetTLVBufToDocument err=0 [00:07:43]Malloc new data [00:07:43]SAM_PROTO_GetFMData [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 13 03 00 [00:07:43]Write to MH i2c: E2 08 00 42 14 80 13 03 00 00 00 00 00 D5 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 42 14 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 16 [00:07:43]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 43 14 80 17 00 00 00 00 00 00 D7 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 43 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:07:44]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 44 14 80 17 00 00 00 00 00 00 D8 [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 44 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:07:44]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 45 14 80 17 00 00 00 00 00 00 D9 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 45 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 51 [00:07:45]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 46 14 80 17 00 00 00 00 00 00 DA [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 E1 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 E1 00 46 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:07:46]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_GetFMData done [00:07:46]Malloc new data [00:07:46]Malloc new data [00:07:46]Malloc new data [00:07:46]Malloc new data [00:07:46]KKMLoadAndSignCloseShiftData err=0 [00:07:46]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асанбаев Н. 19.06.2024 00:07 Смена: 323 РНМ: 0000000000092786 ЗНМ: 0300000172 СНО: Общий режим Чеков за смену: 116 ФД за смену: 118 Всего чеков: 116 ИТОГИ ПРИХОД Чеков: 113 Общий итог: 36531.40 Итого наличными: 30277.00 Итого безнал.: 6254.40 НДС 0% : 0.00 НДС 12% : 3880.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 323.19 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 4220.00 Итого наличными: 4220.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 448.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 37.35 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 26057.00 НС Приход: 13444484.28 НС Возвр.Прихода: 647424.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 34295 ФМ: 0000000000875095 ФПД: 40981520014913 [00:07:46]StoreToDocumentArchive [00:07:46]shift 323 fd 34295 [00:07:46]save to /storage/0323/doc_00034295 [00:07:46]save last doc name /storage/0323/doc_00034295 to /storage/kkm_last_doc_name [00:07:46]save OK [00:07:46]Clear old archive folders... [00:07:46]Remove dir /storage/0266 [00:07:46]opendir ok [00:07:46]file . [00:07:46]file .. [00:07:46]file doc_1718755615 [00:07:46]remove file /storage/0266/doc_1718755615 [00:07:46]remove dir /storage/0266 [00:07:46]NVStorageSaveData kkm_registers [00:07:46]File name is /storage/kkm_registers [00:07:46]Write 24 bytes [00:07:46]NVStorageSaveData done [00:07:46]NVStorageSaveData kkm_registers [00:07:46]File name is /storage/kkm_registers [00:07:46]Write 24 bytes [00:07:46]NVStorageSaveData done [00:07:46]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:07:46]tlvbuf is 019A1360 [00:07:46]SAM_PROTO_ClearQueue [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 09 00 00 [00:07:46]Write to MH i2c: E2 08 00 47 14 80 09 00 00 00 00 00 00 CD [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 03 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [00:07:46]RAPDU: 90 00 [00:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_ClearQueue done [00:07:46]KKMCreateOFDPacket [00:07:46]OFDProtocolAddRootSTLVToBuf [00:07:46]FM_MakeSignedData [00:07:46]FM_MakeSignedData [00:07:46]SAM_PROTO_SignData [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 0D 01 02 [00:07:46]Write to MH i2c: E2 08 00 48 14 80 0D 01 02 00 00 00 00 D5 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 03 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [00:07:46]RAPDU: 90 00 [00:07:46]wFMCommunicate OK [00:07:46]wFMCommunicate request_size=255 [00:07:46]MH_SAM_APDU [00:07:46]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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 4C 21 72 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 AA 04 DB 04 6E 04 04 00 74 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 [00:07:46]Write to MH i2c: E2 02 01 49 14 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 4C 21 72 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 AA 04 DB 04 6E 04 04 00 74 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 EA [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]OFD Sender: No OFD packet to send [00:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 03 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [00:07:47]RAPDU: 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=255 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 70 06 70 04 03 00 70 70 06 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 13 AF 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 97 0E 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:07:47]Write to MH i2c: E2 02 01 4A 14 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 70 06 70 04 03 00 70 70 06 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 13 AF 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 97 0E 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 47 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 03 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [00:07:47]RAPDU: 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=255 [00:07:47]MH_SAM_APDU [00:07:47]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:07:48]Write to MH i2c: E2 02 01 4B 14 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 9F [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 03 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [00:07:48]RAPDU: 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=255 [00:07:48]MH_SAM_APDU [00:07:48]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:07:48]Write to MH i2c: E2 02 01 4C 14 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 A9 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 03 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [00:07:49]RAPDU: 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=255 [00:07:49]MH_SAM_APDU [00:07:49]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:07:49]Write to MH i2c: E2 02 01 4D 14 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 6A [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 03 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 03 00 4D 14 00 90 00 D5 [00:07:49]RAPDU: 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=144 [00:07:49]MH_SAM_APDU [00:07:49]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 F7 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 06 00 25 45 C0 F1 5E 41 [00:07:50]Write to MH i2c: E2 93 00 4E 14 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 F7 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 06 00 25 45 C0 F1 5E 41 00 00 51 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 03 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 03 00 4E 14 00 90 00 D6 [00:07:50]RAPDU: 90 00 [00:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 0D 03 02 [00:07:50]Write to MH i2c: E2 08 00 4F 14 80 0D 03 02 00 00 00 00 DE [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 0B 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 0B 00 4F 14 00 44 88 B4 53 4D 9C F7 BE 90 00 50 [00:07:50]RAPDU: 44 88 B4 53 4D 9C F7 BE 90 00 [00:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_SignData done [00:07:50]FM_MakeSignedData done [00:07:50]CreateOFDProtocolMessage [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 11 00 00 [00:07:50]Write to MH i2c: E2 08 00 50 14 80 11 00 00 00 00 00 00 DE [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:50]Read from MH i2c: E2 17 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 17 00 50 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 33 [00:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:07:50]wFMCommunicate OK [00:07:50]CreateOFDProtocolMessage done [00:07:50]OFDSenderStorePacket 34295 [00:07:50]StoreOFDPacket docnum=34295 [00:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 7D 05 00 00 38 42 75 05 B6 9D 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 4C 21 72 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 AA 04 DB 04 6E 04 04 00 74 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 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 3F 7E 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 70 06 70 04 03 00 70 70 06 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 13 AF 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 97 0E 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 F7 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 06 00 25 45 C0 F1 5E 41 44 88 B4 53 4D 9C F7 BE [00:07:50]CheckFolder [00:07:50]dirname=/storage/ofd_packets [00:07:50]CheckFolder done [00:07:50]ProducePacketName [00:07:50]name=ofd_packets/00034295 [00:07:50]NVStorageSaveData ofd_packets/00034295 [00:07:50]File name is /storage/ofd_packets/00034295 [00:07:50]Write 1435 bytes [00:07:50]NVStorageSaveData done [00:07:50]OFDSenderStorePacket done [00:07:50]KKMCreateOFDPacket done [00:07:50]NVStorageSaveData kkm_last_timestamp [00:07:50]File name is /storage/kkm_last_timestamp [00:07:50]Write 4 bytes [00:07:50]NVStorageSaveData done [00:07:50]ExternCall_PrintAddStr [00:07:50]wPrintStart [00:07:50]Write to MH i2c: 01 00 00 51 14 65 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: 01 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: 01 07 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: 01 07 00 51 14 00 00 00 00 00 FF 0F 7A [00:07:50]RasterBufferAndPrint [00:07:50]line Отчет о закрытии смены [00:07:50]line ФФД: 1.0 [00:07:50]line ИНН: 02508201610067 [00:07:50]line Кассир: Асанбаев Н. [00:07:50]line 19.06.2024 00:07 [00:07:50]line Смена: 323 [00:07:50]line РНМ: 0000000000092786 [00:07:50]line ЗНМ: 0300000172 [00:07:50]line СНО: Общий режим [00:07:50]line Чеков за смену: 116 [00:07:50]line ФД за смену: 118 [00:07:50]line Всего чеков: 116 [00:07:50]line ИТОГИ ПРИХОД [00:07:50]line Чеков: 113 [00:07:50]line Общий итог: 36531.40 [00:07:50]line Итого наличными: 30277.00 [00:07:50]line Итого безнал.: 6254.40 [00:07:50]line НДС 0% : 0.00 [00:07:50]line НДС 12% : 3880.03 [00:07:50]line НСП 0% : 0.00 [00:07:51]line НСП 1,50% : 0.00 [00:07:51]line НСП 0,50% : 0.00 [00:07:51]line НСП 5% : 0.00 [00:07:51]line НСП 3% : 0.00 [00:07:51]line НСП 2% : 0.00 [00:07:51]line НСП 1% : 323.19 [00:07:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:51]line Чеков: 3 [00:07:51]line Общий итог: 4220.00 [00:07:51]line Итого наличными: 4220.00 [00:07:51]line Итого безнал.: 0.00 [00:07:51]line НДС 0% : 0.00 [00:07:51]line НДС 12% : 448.19 [00:07:51]OFD Sender: Processing packet 34295 [packets to send 8, broken 7] [00:07:51]line НСП 0% : 0.00 [00:07:51]ProducePacketName [00:07:51]line НСП 1,50% : 0.00 [00:07:51]name=ofd_packets/00034295 [00:07:51]line НСП 0,50% : 0.00 [00:07:51]OFD Sender: To server: pG, [00:07:51]line НСП 5% : 0.00 [00:07:51]CommunicateWithHost lk.salyk.kg:30040 [00:07:51]line НСП 3% : 0.00 [00:07:51]ConnectInit lk.salyk.kg [00:07:51]line НСП 2% : 0.00 [00:07:51]line НСП 1% : 37.35 [00:07:51]line ИТОГИ РАСХОД [00:07:51]line Чеков: 0 [00:07:51]line Общий итог: 0.00 [00:07:51]line Итого наличными: 0.00 [00:07:51]line Итого безнал.: 0.00 [00:07:51]line НДС 0% : 0.00 [00:07:51]line НДС 12% : 0.00 [00:07:51]line НСП 0% : 0.00 [00:07:51]line НСП 1,50% : 0.00 [00:07:51]line НСП 0,50% : 0.00 [00:07:51]line НСП 5% : 0.00 [00:07:51]line НСП 3% : 0.00 [00:07:51]line НСП 2% : 0.00 [00:07:51]line НСП 1% : 0.00 [00:07:51]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:51]line Чеков: 0 [00:07:51]line Общий итог: 0.00 [00:07:51]line Итого наличными: 0.00 [00:07:51]line Итого безнал.: 0.00 [00:07:51]line НДС 0% : 0.00 [00:07:51]line НДС 12% : 0.00 [00:07:51]line НСП 0% : 0.00 [00:07:51]line НСП 1,50% : 0.00 [00:07:51]line НСП 0,50% : 0.00 [00:07:51]line НСП 5% : 0.00 [00:07:51]line НСП 3% : 0.00 [00:07:51]line НСП 2% : 0.00 [00:07:51]line НСП 1% : 0.00 [00:07:51]line Сумма внесений: 0.00 [00:07:51]line Сумма выплат: 0.00 [00:07:51]line Нал. в кассе: 26057.00 [00:07:51]line НС Приход: 13444484.28 [00:07:51]line НС Возвр.Прихода: 647424.00 [00:07:51]line НС Расход: 0.00 [00:07:51]line НС Возвр.Расхода: 0.00 [00:07:51]line ФД: 34295 [00:07:51]line ФМ: 0000000000875095 [00:07:51]line ФПД: 40981520014913 [00:07:51]written 0, free lines is 4095 [00:07:51]Connected sock=10 [00:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 7D 05 00 00 38 42 75 05 B6 9D 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 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 4C 21 72 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 AA 04 DB 04 6E 04 04 00 74 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 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 3F 7E 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 70 70 06 70 04 03 00 70 70 06 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 13 AF 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 97 0E 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 Write to MH i2c: F6 01 03 00 01 00 00 A1 02 14 F7 B5 03 [00:07:51]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF Write i2c OK [00:07:51]03 MH_I2C_Read... [00:07:51]09 Read from MH i2c: 00 01 F6 [00:07:51]03 MH_I2C_Read... [00:07:51]01 Read from MH i2c: 00 01 04 07 F7 00 03 [00:07:51]00 MH_I2C_Read... [00:07:51]00 Read from MH i2c: EF 01 03 07 09 00 00 A1 F6 14 03 00 01 00 00 00 05 00 F7 00 03 89 00 0A 00 4F EF [00:07:52]03 RasterBufferAndPrint [00:07:52]09 line [00:07:52]00 line [00:07:52]F6 line [00:07:52]03 line [00:07:52]01 line [00:07:52]00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 written 0, free lines is 2891 [00:07:52]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE MH_Cut [00:07:52]03 Write to MH i2c: 09 D1 00 01 F2 00 03 A8 01 14 00 01 00 8E F3 [00:07:52]03 00 00 EE 03 09 00 F2 03 01 00 Write i2c OK [00:07:52]01 MH_I2C_Read... [00:07:52]F3 Read from MH i2c: 03 D1 00 [00:07:52]00 MH_I2C_Read... [00:07:52]EF 03 09 00 F6 03 01 00 00 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 [00:07:52]00 MH_I2C_Read... [00:07:52]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 A8 02 14 F7 00 03 8D 00 [00:07:52]00 Write to MH i2c: EF 01 03 00 00 A9 14 BD [00:07:52]09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:07:52]00 MH_I2C_Read... [00:07:52]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 F7 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 06 00 25 45 C0 F1 5E 41 44 88 B4 53 4D 9C F7 BE [00:07:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 2F 6B 47 00 4B 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F7 85 00 00 F4 03 04 00 27 C8 71 66 B6 04 01 00 00 1B 94 4E DC 7C EE 52 C9 [00:07:52]CommunicateWithHost err = 0 [00:07:52]CheckOFDResponse [00:07:52]1017 (14) - 77093643461234 [00:07:52]1041 (16) - 0000000000875095 [00:07:52]1040 (4) - 34295 [00:07:52]1012 (4) - 18.06.2024 17:47 [00:07:52]1206 (1) - 0 [00:07:52]OFD Sender: Remove packet 34295 [00:07:52]ProducePacketName [00:07:52]name=ofd_packets/00034295 [00:07:52]NVStorageDeleteData [00:07:53]*** Cut start [00:07:53]*** Partial cut [00:07:53]*** CUTSNS_PIN = 1 [00:07:53]*** CUTSNS_PIN = 0 [00:07:53]*** Brake cut motor [00:07:53]OFD Sender: No OFD packet to send [00:07:53]Read from MH i2c: 01 [00:07:53]MH_I2C_Read... [00:07:53]*** Stop cut motor [00:07:53]*** Cut end [00:07:53]Read from MH i2c: 01 07 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 FF 0F D2 [00:07:53]process_action close_shift done [00:07:53]requested_data is exist [00:07:53]produce_requested_data [00:07:53]requested_item fd.num is exist - process it [00:07:53]SAM_PROTO_GetFieldsCounters [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 00 00 [00:07:53]Write to MH i2c: E2 08 00 AA 14 80 13 00 00 00 00 00 00 3A [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 62 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 62 00 AA 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [00:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetFieldsCounters done [00:07:53]requested_item shift.num is exist - process it [00:07:53]requested_item shift.opened is exist - process it [00:07:53]req_shift_opened [00:07:53]FM_GetShiftState [00:07:53]SAM_PROTO_GetShiftState [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 01 00 [00:07:53]Write to MH i2c: E2 08 00 AB 14 80 13 01 00 00 00 00 00 3C [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0E 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0E 00 AB 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 47 [00:07:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_GetShiftState done [00:07:54]FM_GetShiftState done [00:07:54]req_shift_opened done [00:07:54]requested_item shift.open_date is exist - process it [00:07:54]req_shift_open_date [00:07:54]FM_GetShiftState [00:07:54]SAM_PROTO_GetShiftState [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 13 01 00 [00:07:54]Write to MH i2c: E2 08 00 AC 14 80 13 01 00 00 00 00 00 3D [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0E 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0E 00 AC 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 48 [00:07:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_GetShiftState done [00:07:54]FM_GetShiftState done [00:07:54]req_shift_open_date done [00:07:54]produce_requested_data done [00:07:54]produce_requested_data return {"fd.num":34295,"shift.num":323,"shift.opened":0,"shift.open_date":0} [00:07:54]process_action_free close_shift [00:07:54]json_value_free [00:07:54]json_value_free done [00:07:54]process_json_proto returns [00:07:54]Send response to host [00:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":34295,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [00:07:54]free response buf [00:07:54]execute_script done [00:07:54]execute_script returns [00:07:54]free content buf [00:07:54]Sock 7.Close socket [00:07:54]Sock 7.Thread stoped [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [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:47]accept exits with 9 [00:26:47]New connection [00:26:47]New thread 3067424100 created [00:26:47]Thread 3067567460 joined [00:26:47]Waiting for new connection... [00:26:47] Sock 9.Parse request [00:26:47]Sock 9.Check first char [00:26:47]Sock 9.First char is OK [00:26:47]request: POST /json_proto HTTP/1.0 [00:26:47]Method: POST [00:26:47]URL: /json_proto [00:26:47]Method is POST - this is cgi request [00:26:47]url: /json_proto [00:26:47]query_string will be loaded in cgi processing [00:26:47]execute_cgi json_proto POST (null) [00:26:47]execute_cgi path=json_proto method=POST [00:26:47]POST find Content-Length [00:26:47]Host: 172.17.38.134:8080 [00:26:47]Content-Length: 215 [00:26:47]Content-Type: application/json [00:26:47] [00:26:47]POST finish read [00:26:47]Found Content-Length = 215 [00:26:47]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:26:47]execute_script... [00:26:47]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:26:47]POST & json_proto [00:26:47]process_json_proto [00:26:47]json parsed OK: [00:26:47]protocol is kg_v1.0 [00:26:47]action value=get_value [00:26:47]process_action get_value [00:26:47]cmd_get_value [00:26:47]process_action get_value done [00:26:47]requested_data is exist [00:26:47]produce_requested_data [00:26:47]requested_item kkm.sn is exist - process it [00:26:47]requested_item kkm.ver is exist - process it [00:26:47]requested_item fm.sn is exist - process it [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 11 00 00 [00:26:47]Write to MH i2c: E2 08 00 AD 14 80 11 00 00 00 00 00 00 3B [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 17 00 AD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 90 [00:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:26:47]wFMCommunicate OK [00:26:47]requested_item fd.num is exist - process it [00:26:47]SAM_PROTO_GetFieldsCounters [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 13 00 00 [00:26:47]Write to MH i2c: E2 08 00 AE 14 80 13 00 00 00 00 00 00 3E [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 62 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 62 00 AE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [00:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F7 85 00 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_GetFieldsCounters done [00:26:47]requested_item shift.num is exist - process it [00:26:47]requested_item shift.opened is exist - process it [00:26:47]req_shift_opened [00:26:47]FM_GetShiftState [00:26:47]SAM_PROTO_GetShiftState [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 13 01 00 [00:26:47]Write to MH i2c: E2 08 00 AF 14 80 13 01 00 00 00 00 00 40 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0E 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0E 00 AF 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4B [00:26:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_GetShiftState done [00:26:47]FM_GetShiftState done [00:26:47]req_shift_opened done [00:26:47]requested_item shift.open_date is exist - process it [00:26:47]req_shift_open_date [00:26:47]FM_GetShiftState [00:26:47]SAM_PROTO_GetShiftState [00:26:47]wFMCommunicate request_size=4 [00:26:47]MH_SAM_APDU [00:26:47]CAPDU: 80 13 01 00 [00:26:47]Write to MH i2c: E2 08 00 B0 14 80 13 01 00 00 00 00 00 41 [00:26:47]Write i2c OK [00:26:47]MH_I2C_Read... [00:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:47]Read from MH i2c: E2 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0E 00 [00:26:47]MH_I2C_Read... [00:26:47]Read from MH i2c: E2 0E 00 B0 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4C [00:26:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:47]wFMCommunicate OK [00:26:47]SAM_PROTO_GetShiftState done [00:26:47]FM_GetShiftState done [00:26:47]req_shift_open_date done [00:26:47]produce_requested_data done [00:26:47]produce_requested_data return {"kkm.sn":"0300000172","kkm.ver":"001","fm.sn":"0000000000875095","fd.num":34295,"shift.num":323,"shift.opened":0,"shift.open_date":0} [00:26:47]process_action_free get_value [00:26:47]json_value_free [00:26:47]json_value_free done [00:26:47]process_json_proto returns [00:26:47]Send response to host [00:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000172","kkm.ver":"001","fm.sn":"0000000000875095","fd.num":34295,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [00:26:47]free response buf [00:26:47]execute_script done [00:26:47]execute_script returns [00:26:47]free content buf [00:26:47]Sock 9.Close socket [00:26:47]Sock 9.Thread stoped [00:26:47]accept exits with 7 [00:26:47]New connection [00:26:47]New thread 3067567460 created [00:26:47]Thread 3067424100 joined [00:26:47]Waiting for new connection... [00:26:47] Sock 7.Parse request [00:26:47]Sock 7.Check first char [00:26:47]Sock 7.First char is OK [00:26:47]request: POST /json_proto HTTP/1.0 [00:26:47]Method: POST [00:26:47]URL: /json_proto [00:26:47]Method is POST - this is cgi request [00:26:47]url: /json_proto [00:26:47]query_string will be loaded in cgi processing [00:26:47]execute_cgi json_proto POST (null) [00:26:47]execute_cgi path=json_proto method=POST [00:26:47]POST find Content-Length [00:26:47]Host: 172.17.38.134:8080 [00:26:47]Content-Length: 331 [00:26:47]Content-Type: application/json [00:26:47] [00:26:47]POST finish read [00:26:47]Found Content-Length = 331 [00:26:47]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:26:47]execute_script... [00:26:48]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:26:48]POST & json_proto [00:26:48]process_json_proto [00:26:48]json parsed OK: [00:26:48]protocol is kg_v1.0 [00:26:48]action value=get_value [00:26:48]process_action get_value [00:26:48]cmd_get_value [00:26:48]process_action get_value done [00:26:48]requested_data is exist [00:26:48]produce_requested_data [00:26:48]requested_item fm.sale.total is exist - process it [00:26:48]SAM_PROTO_GetFMData [00:26:48]wFMCommunicate request_size=4 [00:26:48]MH_SAM_APDU [00:26:48]CAPDU: 80 13 03 00 [00:26:48]Write to MH i2c: E2 08 00 B1 14 80 13 03 00 00 00 00 00 44 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:48]Read from MH i2c: E2 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 B1 14 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 85 [00:26:48]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:26:48]wFMCommunicate OK [00:26:48]wFMCommunicate request_size=4 [00:26:48]MH_SAM_APDU [00:26:48]CAPDU: 80 17 00 00 [00:26:48]Write to MH i2c: E2 08 00 B2 14 80 17 00 00 00 00 00 00 46 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:48]Read from MH i2c: E2 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 [00:26:48]MH_I2C_Read... [00:26:48]Read from MH i2c: E2 FD 00 B2 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [00:26:48]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:48]wFMCommunicate OK [00:26:48]wFMCommunicate request_size=4 [00:26:48]MH_SAM_APDU [00:26:48]CAPDU: 80 17 00 00 [00:26:48]Write to MH i2c: E2 08 00 B3 14 80 17 00 00 00 00 00 00 47 [00:26:48]Write i2c OK [00:26:48]MH_I2C_Read... [00:26:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:49]Read from MH i2c: E2 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 FD 00 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 FD 00 B3 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [00:26:49]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:49]wFMCommunicate OK [00:26:49]wFMCommunicate request_size=4 [00:26:49]MH_SAM_APDU [00:26:49]CAPDU: 80 17 00 00 [00:26:49]Write to MH i2c: E2 08 00 B4 14 80 17 00 00 00 00 00 00 48 [00:26:49]Write i2c OK [00:26:49]MH_I2C_Read... [00:26:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:49]Read from MH i2c: E2 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 FD 00 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 FD 00 B4 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C0 [00:26:49]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:49]wFMCommunicate OK [00:26:49]wFMCommunicate request_size=4 [00:26:49]MH_SAM_APDU [00:26:49]CAPDU: 80 17 00 00 [00:26:49]Write to MH i2c: E2 08 00 B5 14 80 17 00 00 00 00 00 00 49 [00:26:49]Write i2c OK [00:26:49]MH_I2C_Read... [00:26:49]OFD Sender: No OFD packet to send [00:26:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:26:49]Read from MH i2c: E2 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 E1 00 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 E1 00 B5 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 37 [00:26:49]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:49]wFMCommunicate OK [00:26:49]SAM_PROTO_GetFMData done [00:26:49]requested_item fm.sale_refund.total is exist - process it [00:26:49]requested_item fm.buy.total is exist - process it [00:26:49]requested_item shift.sale.total is exist - process it [00:26:49]SAM_PROTO_GetShiftData [00:26:49]wFMCommunicate request_size=4 [00:26:49]MH_SAM_APDU [00:26:49]CAPDU: 80 13 02 00 [00:26:49]Write to MH i2c: E2 08 00 B6 14 80 13 02 00 00 00 00 00 48 [00:26:49]Write i2c OK [00:26:49]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 B6 14 00 B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 11 [00:26:50]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 14 BE 37 70 04 03 00 F4 32 2E 72 04 03 00 20 8B 09 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A3 EB 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3F 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 70 06 70 04 03 00 70 70 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 13 AF EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:26:50]wFMCommunicate OK [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 17 00 00 [00:26:50]Write to MH i2c: E2 08 00 B7 14 80 17 00 00 00 00 00 00 4B [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 B7 14 00 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 21 [00:26:50]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 97 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:26:50]wFMCommunicate OK [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 17 00 00 [00:26:50]Write to MH i2c: E2 08 00 B8 14 80 17 00 00 00 00 00 00 4C [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 B8 14 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 EE [00:26:50]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:26:50]wFMCommunicate OK [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 17 00 00 [00:26:50]Write to MH i2c: E2 08 00 B9 14 80 17 00 00 00 00 00 00 4D [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:50]Read from MH i2c: E2 FD 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 FD 00 B9 14 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 D6 [00:26:50]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:26:50]wFMCommunicate OK [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 17 00 00 [00:26:50]Write to MH i2c: E2 08 00 BA 14 80 17 00 00 00 00 00 00 4E [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 D5 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 D5 00 BA 14 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [00:26:51]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:51]wFMCommunicate OK [00:26:51]SAM_PROTO_GetShiftData done [00:26:51]requested_item shift.sale.total_cash is exist - process it [00:26:51]requested_item shift.sale_refund.total is exist - process it [00:26:51]requested_item shift.sale_refund.total_cash is exist - process it [00:26:51]requested_item shift.buy.total is exist - process it [00:26:51]requested_item shift.buy.total_cash is exist - process it [00:26:51]produce_requested_data done [00:26:51]produce_requested_data return {"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:51]process_action_free get_value [00:26:51]json_value_free [00:26:51]json_value_free done [00:26:51]process_json_proto returns [00:26:51]Send response to host [00:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.00,"fm.buy.total":0.00,"shift.sale.total":36531.40,"shift.sale.total_cash":30277.00,"shift.sale_refund.total":4220.00,"shift.sale_refund.total_cash":4220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:51]free response buf [00:26:51]execute_script done [00:26:51]execute_script returns [00:26:51]free content buf [00:26:51]Sock 7.Close socket [00:26:51]Sock 7.Thread stoped [00:26:51]accept exits with 9 [00:26:51]New connection [00:26:51]New thread 3067424100 created [00:26:51]Thread 3067567460 joined [00:26:51]Waiting for new connection... [00:26:51] Sock 9.Parse request [00:26:51]Sock 9.Check first char [00:26:51]Sock 9.First char is OK [00:26:51]request: POST /json_proto HTTP/1.0 [00:26:51]Method: POST [00:26:51]URL: /json_proto [00:26:51]Method is POST - this is cgi request [00:26:51]url: /json_proto [00:26:51]query_string will be loaded in cgi processing [00:26:51]execute_cgi json_proto POST (null) [00:26:51]execute_cgi path=json_proto method=POST [00:26:51]POST find Content-Length [00:26:51]Host: 172.17.38.134:8080 [00:26:51]Content-Length: 271 [00:26:51]Content-Type: application/json [00:26:51] [00:26:51]POST finish read [00:26:51]Found Content-Length = 271 [00:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:51]execute_script... [00:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:51]POST & json_proto [00:26:51]process_json_proto [00:26:51]json parsed OK: [00:26:51]protocol is kg_v1.0 [00:26:51]action value=open_shift [00:26:51]process_action open_shift [00:26:51]cmd_open_shift [00:26:51]MH_GetDate [00:26:51]Write to MH i2c: F0 00 00 BB 14 BE [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 09 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 09 00 BB 14 00 CD 25 72 66 13 9C 7C 64 20 [00:26:51]GetLastDocTimeStamp 1718755660 [00:26:51]current date 1718756813 [00:26:51]FM_GetShiftState [00:26:51]SAM_PROTO_GetShiftState [00:26:51]wFMCommunicate request_size=4 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 13 01 00 [00:26:51]Write to MH i2c: E2 08 00 BC 14 80 13 01 00 00 00 00 00 4D [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0E 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0E 00 BC 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 58 [00:26:51]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:51]wFMCommunicate OK [00:26:51]SAM_PROTO_GetShiftState done [00:26:51]FM_GetShiftState done [00:26:51]KKMCreateOpenShiftDocument [00:26:51]Load OK [00:26:51]Malloc new data [00:26:51]MH_GetDate [00:26:51]Write to MH i2c: F0 00 00 BD 14 C0 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 09 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 09 00 BD 14 00 CD 25 72 66 13 9C 7C 64 22 [00:26:51]Malloc new data [00:26:51]KKMCreateOpenShiftDocument OK [00:26:51]KKMSetOpenShiftData OK [00:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:26:51]tlvbuf is 019AE770 [00:26:51]KKMLoadAndSignOpenShiftData [00:26:51]SAM_PROTO_ProcessDocument [00:26:51]wFMCommunicate request_size=9 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:26:51]Write to MH i2c: E2 0C 00 BE 14 80 15 01 00 04 00 02 00 CB 00 00 00 26 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 BE 14 00 90 00 46 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=23 [00:26:51]MH_SAM_APDU [00:26:51]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:26:51]Write to MH i2c: E2 1A 00 BF 14 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 48 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=34 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:26:51]Write to MH i2c: E2 25 00 C0 14 80 15 02 00 1D 00 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 15 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=87 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 [00:26:51]Write to MH i2c: E2 5A 00 C1 14 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 00 00 C9 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 C1 14 00 90 00 49 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=51 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:26:51]Write to MH i2c: E2 36 00 C2 14 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 FB [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=13 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 02 00 08 F4 03 04 00 CD 25 72 66 [00:26:51]Write to MH i2c: E2 10 00 C3 14 80 15 02 00 08 00 F4 03 04 00 CD 25 72 66 00 00 2C [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=25 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 [00:26:51]Write to MH i2c: E2 1C 00 C4 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 00 00 C1 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=4 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 15 03 00 [00:26:51]Write to MH i2c: E2 08 00 C5 14 80 15 03 00 00 00 00 00 5A [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:26:52]Read from MH i2c: E2 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 38 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 38 00 C5 14 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F8 85 00 00 0E 04 04 00 44 01 00 00 35 04 06 00 26 17 91 53 50 E6 90 00 41 [00:26:52]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F8 85 00 00 0E 04 04 00 44 01 00 00 35 04 06 00 26 17 91 53 50 E6 90 00 [00:26:52]wFMCommunicate OK [00:26:52]SAM_PROTO_ProcessDocument answer len = 51 [00:26:52]SAM_PROTO_ProcessDocument done [00:26:52]SetTLVBufToDocument [00:26:52]Processing tag 1209 (04B9) [00:26:52]Malloc new data [00:26:52]Processing tag 1041 (0411) [00:26:52]Processing tag 1040 (0410) [00:26:52]Malloc new data [00:26:52]Processing tag 1038 (040E) [00:26:52]Malloc new data [00:26:52]Processing tag 1077 (0435) [00:26:52]Malloc new data [00:26:52]SetTLVBufToDocument err=0 [00:26:52]KKMLoadAndSignOpenShiftData store KKM data [00:26:52]KKMLoadAndSignOpenShiftData err=0 [00:26:52]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байбугуева Г. Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 Место: АЗС № 120 "Партнер Нефть" 19.06.2024 00:26 Смена: 324 РНМ: 0000000000092786 ЗНМ: 0300000172 ФД: 34296 ФМ: 0000000000875095 ФПД: 41882664259814 [00:26:52]StoreToDocumentArchive [00:26:52]shift 324 fd 34296 [00:26:52]Create dir for shift 0324 [00:26:52]save to /storage/0324/doc_00034296 [00:26:52]save last doc name /storage/0324/doc_00034296 to /storage/kkm_last_doc_name [00:26:52]save OK [00:26:52]Clear old archive folders... [00:26:52]Remove dir /storage/0323 [00:26:52]opendir ok [00:26:52]file . [00:26:52]file .. [00:26:52]file doc_00034178 [00:26:52]remove file /storage/0323/doc_00034178 [00:26:52]file doc_00034179 [00:26:52]remove file /storage/0323/doc_00034179 [00:26:52]file doc_00034180 [00:26:52]remove file /storage/0323/doc_00034180 [00:26:52]file doc_00034181 [00:26:52]remove file /storage/0323/doc_00034181 [00:26:52]file doc_00034182 [00:26:52]remove file /storage/0323/doc_00034182 [00:26:52]file doc_00034183 [00:26:52]remove file /storage/0323/doc_00034183 [00:26:52]file doc_00034184 [00:26:52]remove file /storage/0323/doc_00034184 [00:26:52]file doc_00034185 [00:26:52]remove file /storage/0323/doc_00034185 [00:26:52]file doc_00034186 [00:26:52]remove file /storage/0323/doc_00034186 [00:26:52]file doc_00034187 [00:26:52]remove file /storage/0323/doc_00034187 [00:26:52]file doc_00034188 [00:26:52]remove file /storage/0323/doc_00034188 [00:26:52]file doc_00034189 [00:26:52]remove file /storage/0323/doc_00034189 [00:26:52]file doc_00034190 [00:26:52]remove file /storage/0323/doc_00034190 [00:26:52]file doc_00034191 [00:26:52]remove file /storage/0323/doc_00034191 [00:26:52]file doc_00034192 [00:26:52]remove file /storage/0323/doc_00034192 [00:26:52]file doc_00034193 [00:26:52]remove file /storage/0323/doc_00034193 [00:26:52]file doc_00034194 [00:26:52]remove file /storage/0323/doc_00034194 [00:26:52]file doc_00034195 [00:26:52]remove file /storage/0323/doc_00034195 [00:26:52]file doc_00034196 [00:26:52]remove file /storage/0323/doc_00034196 [00:26:52]file doc_00034197 [00:26:52]remove file /storage/0323/doc_00034197 [00:26:52]file doc_00034198 [00:26:52]remove file /storage/0323/doc_00034198 [00:26:52]file doc_00034199 [00:26:52]remove file /storage/0323/doc_00034199 [00:26:52]file doc_00034200 [00:26:52]remove file /storage/0323/doc_00034200 [00:26:52]file doc_00034201 [00:26:52]remove file /storage/0323/doc_00034201 [00:26:52]file doc_00034202 [00:26:52]remove file /storage/0323/doc_00034202 [00:26:52]file doc_00034203 [00:26:52]remove file /storage/0323/doc_00034203 [00:26:52]file doc_00034204 [00:26:52]remove file /storage/0323/doc_00034204 [00:26:52]file doc_00034205 [00:26:52]remove file /storage/0323/doc_00034205 [00:26:52]file doc_00034206 [00:26:52]remove file /storage/0323/doc_00034206 [00:26:52]file doc_00034207 [00:26:52]remove file /storage/0323/doc_00034207 [00:26:52]file doc_00034208 [00:26:52]remove file /storage/0323/doc_00034208 [00:26:52]file doc_00034209 [00:26:52]remove file /storage/0323/doc_00034209 [00:26:52]file doc_00034210 [00:26:52]remove file /storage/0323/doc_00034210 [00:26:52]file doc_00034211 [00:26:52]remove file /storage/0323/doc_00034211 [00:26:52]file doc_00034212 [00:26:52]remove file /storage/0323/doc_00034212 [00:26:52]file doc_00034213 [00:26:52]remove file /storage/0323/doc_00034213 [00:26:52]file doc_00034214 [00:26:52]remove file /storage/0323/doc_00034214 [00:26:52]file doc_00034215 [00:26:52]remove file /storage/0323/doc_00034215 [00:26:52]file doc_00034216 [00:26:52]remove file /storage/0323/doc_00034216 [00:26:52]file doc_00034217 [00:26:52]remove file /storage/0323/doc_00034217 [00:26:52]file doc_00034218 [00:26:52]remove file /storage/0323/doc_00034218 [00:26:52]file doc_00034219 [00:26:52]remove file /storage/0323/doc_00034219 [00:26:52]file doc_00034220 [00:26:52]remove file /storage/0323/doc_00034220 [00:26:52]file doc_00034221 [00:26:52]remove file /storage/0323/doc_00034221 [00:26:52]file doc_00034222 [00:26:52]remove file /storage/0323/doc_00034222 [00:26:52]file doc_00034223 [00:26:52]remove file /storage/0323/doc_00034223 [00:26:52]file doc_00034224 [00:26:52]remove file /storage/0323/doc_00034224 [00:26:52]file doc_00034225 [00:26:52]remove file /storage/0323/doc_00034225 [00:26:52]file doc_00034226 [00:26:52]remove file /storage/0323/doc_00034226 [00:26:52]file doc_00034227 [00:26:52]remove file /storage/0323/doc_00034227 [00:26:52]file doc_00034228 [00:26:52]remove file /storage/0323/doc_00034228 [00:26:52]file doc_00034229 [00:26:52]remove file /storage/0323/doc_00034229 [00:26:52]file doc_00034230 [00:26:52]remove file /storage/0323/doc_00034230 [00:26:52]file doc_00034231 [00:26:52]remove file /storage/0323/doc_00034231 [00:26:52]file doc_00034232 [00:26:52]remove file /storage/0323/doc_00034232 [00:26:52]file doc_00034233 [00:26:52]remove file /storage/0323/doc_00034233 [00:26:52]file doc_00034234 [00:26:52]remove file /storage/0323/doc_00034234 [00:26:52]file doc_00034235 [00:26:52]remove file /storage/0323/doc_00034235 [00:26:52]file doc_00034236 [00:26:52]remove file /storage/0323/doc_00034236 [00:26:52]file doc_00034237 [00:26:52]remove file /storage/0323/doc_00034237 [00:26:52]file doc_00034238 [00:26:52]remove file /storage/0323/doc_00034238 [00:26:52]file doc_00034239 [00:26:52]remove file /storage/0323/doc_00034239 [00:26:52]file doc_00034240 [00:26:52]remove file /storage/0323/doc_00034240 [00:26:52]file doc_00034241 [00:26:52]remove file /storage/0323/doc_00034241 [00:26:52]file doc_00034242 [00:26:52]remove file /storage/0323/doc_00034242 [00:26:52]file doc_00034243 [00:26:52]remove file /storage/0323/doc_00034243 [00:26:52]file doc_00034244 [00:26:52]remove file /storage/0323/doc_00034244 [00:26:52]file doc_00034245 [00:26:52]remove file /storage/0323/doc_00034245 [00:26:52]file doc_00034246 [00:26:52]remove file /storage/0323/doc_00034246 [00:26:52]file doc_00034247 [00:26:52]remove file /storage/0323/doc_00034247 [00:26:52]file doc_00034248 [00:26:52]remove file /storage/0323/doc_00034248 [00:26:52]file doc_00034249 [00:26:52]remove file /storage/0323/doc_00034249 [00:26:52]file doc_00034250 [00:26:52]remove file /storage/0323/doc_00034250 [00:26:52]file doc_00034251 [00:26:52]remove file /storage/0323/doc_00034251 [00:26:52]file doc_00034252 [00:26:52]remove file /storage/0323/doc_00034252 [00:26:52]file doc_00034253 [00:26:52]remove file /storage/0323/doc_00034253 [00:26:52]file doc_00034254 [00:26:52]remove file /storage/0323/doc_00034254 [00:26:52]file doc_00034255 [00:26:52]remove file /storage/0323/doc_00034255 [00:26:52]file doc_00034256 [00:26:52]remove file /storage/0323/doc_00034256 [00:26:52]file doc_00034257 [00:26:52]remove file /storage/0323/doc_00034257 [00:26:52]file doc_00034258 [00:26:52]remove file /storage/0323/doc_00034258 [00:26:52]file doc_00034259 [00:26:52]remove file /storage/0323/doc_00034259 [00:26:52]file doc_00034260 [00:26:52]remove file /storage/0323/doc_00034260 [00:26:52]file doc_00034261 [00:26:52]remove file /storage/0323/doc_00034261 [00:26:52]file doc_00034262 [00:26:52]remove file /storage/0323/doc_00034262 [00:26:52]file doc_00034263 [00:26:52]remove file /storage/0323/doc_00034263 [00:26:52]file doc_00034264 [00:26:52]remove file /storage/0323/doc_00034264 [00:26:52]file doc_00034265 [00:26:52]remove file /storage/0323/doc_00034265 [00:26:52]file doc_00034266 [00:26:52]remove file /storage/0323/doc_00034266 [00:26:52]file doc_00034267 [00:26:52]remove file /storage/0323/doc_00034267 [00:26:52]file doc_00034268 [00:26:52]remove file /storage/0323/doc_00034268 [00:26:52]file doc_00034269 [00:26:52]remove file /storage/0323/doc_00034269 [00:26:52]file doc_00034270 [00:26:52]remove file /storage/0323/doc_00034270 [00:26:52]file doc_00034271 [00:26:52]remove file /storage/0323/doc_00034271 [00:26:52]file doc_00034272 [00:26:52]remove file /storage/0323/doc_00034272 [00:26:52]file doc_00034273 [00:26:52]remove file /storage/0323/doc_00034273 [00:26:52]file doc_00034274 [00:26:52]remove file /storage/0323/doc_00034274 [00:26:52]file doc_00034275 [00:26:52]remove file /storage/0323/doc_00034275 [00:26:52]file doc_00034276 [00:26:52]remove file /storage/0323/doc_00034276 [00:26:52]file doc_00034277 [00:26:52]remove file /storage/0323/doc_00034277 [00:26:52]file doc_00034278 [00:26:52]remove file /storage/0323/doc_00034278 [00:26:52]file doc_00034279 [00:26:52]remove file /storage/0323/doc_00034279 [00:26:52]file doc_00034280 [00:26:52]remove file /storage/0323/doc_00034280 [00:26:52]file doc_00034281 [00:26:52]remove file /storage/0323/doc_00034281 [00:26:52]file doc_00034282 [00:26:52]remove file /storage/0323/doc_00034282 [00:26:52]file doc_00034283 [00:26:52]remove file /storage/0323/doc_00034283 [00:26:52]file doc_00034284 [00:26:52]remove file /storage/0323/doc_00034284 [00:26:52]file doc_00034285 [00:26:52]remove file /storage/0323/doc_00034285 [00:26:52]file doc_00034286 [00:26:52]remove file /storage/0323/doc_00034286 [00:26:52]file doc_00034287 [00:26:52]remove file /storage/0323/doc_00034287 [00:26:52]file doc_00034288 [00:26:52]remove file /storage/0323/doc_00034288 [00:26:52]file doc_00034289 [00:26:52]remove file /storage/0323/doc_00034289 [00:26:52]file doc_00034290 [00:26:52]remove file /storage/0323/doc_00034290 [00:26:52]file doc_00034291 [00:26:52]remove file /storage/0323/doc_00034291 [00:26:52]file doc_00034292 [00:26:52]remove file /storage/0323/doc_00034292 [00:26:52]file doc_00034293 [00:26:52]remove file /storage/0323/doc_00034293 [00:26:52]file doc_00034294 [00:26:52]remove file /storage/0323/doc_00034294 [00:26:52]file doc_00034295 [00:26:52]remove file /storage/0323/doc_00034295 [00:26:52]remove dir /storage/0323 [00:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:26:52]tlvbuf is 019DE8B0 [00:26:52]SAM_PROTO_ClearQueue [00:26:52]wFMCommunicate request_size=4 [00:26:52]MH_SAM_APDU [00:26:52]CAPDU: 80 09 00 00 [00:26:52]Write to MH i2c: E2 08 00 C6 14 80 09 00 00 00 00 00 00 4C [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:52]Read from MH i2c: E2 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 03 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [00:26:52]RAPDU: 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_ClearQueue done [00:26:53]KKMCreateOFDPacket [00:26:53]OFDProtocolAddRootSTLVToBuf [00:26:53]FM_MakeSignedData [00:26:53]FM_MakeSignedData [00:26:53]SAM_PROTO_SignData [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 0D 01 02 [00:26:53]Write to MH i2c: E2 08 00 C7 14 80 0D 01 02 00 00 00 00 54 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [00:26:53]RAPDU: 90 00 [00:26:53]wFMCommunicate OK [00:26:53]wFMCommunicate request_size=255 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 25 72 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F8 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 [00:26:53]Write to MH i2c: E2 02 01 C8 14 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 25 72 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F8 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 00 00 F1 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 C8 14 00 90 00 50 [00:26:53]RAPDU: 90 00 [00:26:53]wFMCommunicate OK [00:26:53]wFMCommunicate request_size=13 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 0D 02 02 08 06 00 26 17 91 53 50 E6 [00:26:53]Write to MH i2c: E2 10 00 C9 14 80 0D 02 02 08 00 06 00 26 17 91 53 50 E6 00 00 C4 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 C9 14 00 90 00 51 [00:26:53]RAPDU: 90 00 [00:26:53]wFMCommunicate OK [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 0D 03 02 [00:26:53]Write to MH i2c: E2 08 00 CA 14 80 0D 03 02 00 00 00 00 59 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0B 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0B 00 CA 14 00 81 AA 6C 68 07 E1 26 A9 90 00 10 [00:26:53]RAPDU: 81 AA 6C 68 07 E1 26 A9 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_SignData done [00:26:53]FM_MakeSignedData done [00:26:53]CreateOFDProtocolMessage [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 11 00 00 [00:26:53]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 17 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 AE [00:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:26:53]wFMCommunicate OK [00:26:53]CreateOFDProtocolMessage done [00:26:53]OFDSenderStorePacket 34296 [00:26:53]StoreOFDPacket docnum=34296 [00:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 12 01 00 00 E0 16 0A 01 CF EF 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 25 72 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F8 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 06 00 26 17 91 53 50 E6 81 AA 6C 68 07 E1 26 A9 [00:26:53]CheckFolder [00:26:53]dirname=/storage/ofd_packets [00:26:53]CheckFolder done [00:26:53]ProducePacketName [00:26:53]name=ofd_packets/00034296 [00:26:53]NVStorageSaveData ofd_packets/00034296 [00:26:53]File name is /storage/ofd_packets/00034296 [00:26:53]Write 304 bytes [00:26:53]NVStorageSaveData done [00:26:53]OFDSenderStorePacket done [00:26:53]KKMCreateOFDPacket done [00:26:53]NVStorageSaveData kkm_last_timestamp [00:26:53]File name is /storage/kkm_last_timestamp [00:26:53]Write 4 bytes [00:26:53]NVStorageSaveData done [00:26:53]ExternCall_PrintAddStr [00:26:53]wPrintStart [00:26:53]Write to MH i2c: 01 00 00 CC 14 E0 [00:26:53]OFD Sender: Processing packet 34296 [packets to send 8, broken 7] [00:26:53]ProducePacketName [00:26:53]name=ofd_packets/00034296 [00:26:53]OFD Sender: To server: pG, [00:26:53]CommunicateWithHost lk.salyk.kg:30040 [00:26:53]ConnectInit lk.salyk.kg [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 07 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 07 00 CC 14 00 00 00 00 00 FF 0F F5 [00:26:53]RasterBufferAndPrint [00:26:53]line Отчет об открытии смены [00:26:53]line ФФД: 1.0 [00:26:53]line ИНН: 02508201610067 [00:26:53]line Кассир: Байбугуева Г. [00:26:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:26:53]line Место: АЗС № 120 "Партнер Нефть" [00:26:53]line 19.06.2024 00:26 [00:26:53]line Смена: 324 [00:26:53]line РНМ: 0000000000092786 [00:26:53]line ЗНМ: 0300000172 [00:26:53]line ФД: 34296 [00:26:53]line ФМ: 0000000000875095 [00:26:53]line ФПД: 41882664259814 [00:26:53]written 0, free lines is 4095 [00:26:53]Connected sock=10 [00:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 12 01 00 00 E0 16 0A 01 CF EF 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 25 72 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F8 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 35 04 06 00 26 17 91 53 50 E6 81 AA 6C 68 07 E1 26 A9 [00:26:54]Write to MH i2c: 01 00 00 DE 14 F2 [00:26:54]Write i2c OK [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: 01 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: 01 07 00 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: 01 07 00 DE 14 00 00 00 00 00 6B 0E 72 [00:26:54]RasterBufferAndPrint [00:26:54]line [00:26:54]line [00:26:54]line [00:26:54]line [00:26:54]line [00:26:54]written 0, free lines is 3709 [00:26:54]MH_Cut [00:26:54]Write to MH i2c: D1 01 00 E5 14 01 CB [00:26:54]Write i2c OK [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: D1 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: D1 01 00 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: D1 01 00 E5 14 00 CA [00:26:54]Write to MH i2c: 01 00 00 E6 14 FA [00:26:54]Write i2c OK [00:26:54]MH_I2C_Read... [00:26:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8C 0D 47 00 3A 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F8 85 00 00 F4 03 04 00 9C CC 71 66 B6 04 01 00 00 F3 C2 0E C3 0F D3 54 85 [00:26:54]CommunicateWithHost err = 0 [00:26:54]CheckOFDResponse [00:26:54]1017 (14) - 77093643461234 [00:26:54]1041 (16) - 0000000000875095 [00:26:54]1040 (4) - 34296 [00:26:54]1012 (4) - 18.06.2024 18:06 [00:26:54]1206 (1) - 0 [00:26:54]OFD Sender: Remove packet 34296 [00:26:54]ProducePacketName [00:26:54]name=ofd_packets/00034296 [00:26:54]NVStorageDeleteData [00:26:54]*** Cut start [00:26:54]*** Partial cut [00:26:54]*** CUTSNS_PIN = 1 [00:26:54]*** CUTSNS_PIN = 0 [00:26:54]*** Brake cut motor [00:26:54]OFD Sender: No OFD packet to send [00:26:55]Read from MH i2c: 01 [00:26:55]MH_I2C_Read... [00:26:55]*** Stop cut motor [00:26:55]*** Cut end [00:26:55]Read from MH i2c: 01 07 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: 01 07 00 E6 14 00 00 00 00 00 FF 0F 0F [00:26:55]process_action open_shift done [00:26:55]requested_data is exist [00:26:55]produce_requested_data [00:26:55]requested_item fd.num is exist - process it [00:26:55]SAM_PROTO_GetFieldsCounters [00:26:55]wFMCommunicate request_size=4 [00:26:55]MH_SAM_APDU [00:26:55]CAPDU: 80 13 00 00 [00:26:55]Write to MH i2c: E2 08 00 E7 14 80 13 00 00 00 00 00 00 77 [00:26:55]Write i2c OK [00:26:55]MH_I2C_Read... [00:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:55]Read from MH i2c: E2 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 62 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 62 00 E7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F8 85 00 00 0E 04 04 00 44 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 63 [00:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F8 85 00 00 0E 04 04 00 44 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:26:55]wFMCommunicate OK [00:26:55]SAM_PROTO_GetFieldsCounters done [00:26:55]requested_item shift.num is exist - process it [00:26:55]requested_item shift.opened is exist - process it [00:26:55]req_shift_opened [00:26:55]FM_GetShiftState [00:26:55]SAM_PROTO_GetShiftState [00:26:55]wFMCommunicate request_size=4 [00:26:55]MH_SAM_APDU [00:26:55]CAPDU: 80 13 01 00 [00:26:55]Write to MH i2c: E2 08 00 E8 14 80 13 01 00 00 00 00 00 79 [00:26:55]Write i2c OK [00:26:55]MH_I2C_Read... [00:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:55]Read from MH i2c: E2 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 0E 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 0E 00 E8 14 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 4F [00:26:55]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [00:26:55]wFMCommunicate OK [00:26:55]SAM_PROTO_GetShiftState done [00:26:55]FM_GetShiftState done [00:26:55]req_shift_opened done [00:26:55]requested_item shift.open_date is exist - process it [00:26:55]req_shift_open_date [00:26:55]req_shift_open_date done [00:26:55]produce_requested_data done [00:26:55]produce_requested_data return {"fd.num":34296,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813} [00:26:55]process_action_free open_shift [00:26:55]json_value_free [00:26:55]json_value_free done [00:26:55]process_json_proto returns [00:26:55]Send response to host [00:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":34296,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813}}} [00:26:55]free response buf [00:26:55]execute_script done [00:26:55]execute_script returns [00:26:55]free content buf [00:26:55]Sock 9.Close socket [00:26:55]Sock 9.Thread stoped [00:26:55]accept exits with 7 [00:26:55]New connection [00:26:55]New thread 3067567460 created [00:26:55]Thread 3067424100 joined [00:26:55]Waiting for new connection... [00:26:55] Sock 7.Parse request [00:26:55]Sock 7.Check first char [00:26:55]Sock 7.First char is OK [00:26:55]request: POST /json_proto HTTP/1.0 [00:26:55]Method: POST [00:26:55]URL: /json_proto [00:26:55]Method is POST - this is cgi request [00:26:55]url: /json_proto [00:26:55]query_string will be loaded in cgi processing [00:26:55]execute_cgi json_proto POST (null) [00:26:55]execute_cgi path=json_proto method=POST [00:26:55]POST find Content-Length [00:26:55]Host: 172.17.38.134:8080 [00:26:55]Content-Length: 331 [00:26:55]Content-Type: application/json [00:26:55] [00:26:55]POST finish read [00:26:55]Found Content-Length = 331 [00:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:55]execute_script... [00:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:55]POST & json_proto [00:26:55]process_json_proto [00:26:55]json parsed OK: [00:26:55]protocol is kg_v1.0 [00:26:55]action value=get_value [00:26:55]process_action get_value [00:26:55]cmd_get_value [00:26:55]process_action get_value done [00:26:55]requested_data is exist [00:26:55]produce_requested_data [00:26:55]requested_item fm.sale.total is exist - process it [00:26:55]SAM_PROTO_GetFMData [00:26:55]wFMCommunicate request_size=4 [00:26:55]MH_SAM_APDU [00:26:55]CAPDU: 80 13 03 00 [00:26:55]Write to MH i2c: E2 08 00 E9 14 80 13 03 00 00 00 00 00 7C [00:26:55]Write i2c OK [00:26:55]MH_I2C_Read... [00:26:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:55]Read from MH i2c: E2 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 FD 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 FD 00 E9 14 00 C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 BD [00:26:56]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 70 83 00 00 69 04 A0 00 6F 04 04 00 7D 82 00 00 B1 04 04 00 AC A7 22 50 70 04 04 00 D8 BE C4 44 72 04 04 00 D4 E8 5D 0B 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 84 A4 82 08 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 86 7E B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 F3 00 00 00 B1 04 04 00 00 E4 DB 03 70 04 04 00 AC 50 C8 03 72 04 03 00 54 93 13 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 7A E9 68 EF 03 09 00 90 00 [00:26:56]wFMCommunicate OK [00:26:56]wFMCommunicate request_size=4 [00:26:56]MH_SAM_APDU [00:26:56]CAPDU: 80 17 00 00 [00:26:56]Write to MH i2c: E2 08 00 EA 14 80 17 00 00 00 00 00 00 7E [00:26:56]Write i2c OK [00:26:56]MH_I2C_Read... [00:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:56]Read from MH i2c: E2 [00:26:56]MH_I2C_Read... [00:26:56]Read from MH i2c: E2 FD 00 [00:26:56]MH_I2C_Read... [00:26:56]Read from MH i2c: E2 FD 00 EA 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:26:56]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 BE 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:56]wFMCommunicate OK [00:26:56]wFMCommunicate request_size=4 [00:26:56]MH_SAM_APDU [00:26:56]CAPDU: 80 17 00 00 [00:26:56]Write to MH i2c: E2 08 00 EB 14 80 17 00 00 00 00 00 00 7F [00:26:56]Write i2c OK [00:26:56]MH_I2C_Read... [00:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:56]Read from MH i2c: E2 [00:26:56]MH_I2C_Read... [00:26:56]Read from MH i2c: E2 FD 00 [00:26:56]MH_I2C_Read... [00:26:56]Read from MH i2c: E2 FD 00 EB 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [00:26:56]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:56]wFMCommunicate OK [00:26:56]wFMCommunicate request_size=4 [00:26:56]MH_SAM_APDU [00:26:56]CAPDU: 80 17 00 00 [00:26:56]Write to MH i2c: E2 08 00 EC 14 80 17 00 00 00 00 00 00 80 [00:26:56]Write i2c OK [00:26:56]MH_I2C_Read... [00:26:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:57]Read from MH i2c: E2 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: E2 FD 00 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: E2 FD 00 EC 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F8 [00:26:57]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:57]wFMCommunicate OK [00:26:57]wFMCommunicate request_size=4 [00:26:57]MH_SAM_APDU [00:26:57]CAPDU: 80 17 00 00 [00:26:57]Write to MH i2c: E2 08 00 ED 14 80 17 00 00 00 00 00 00 81 [00:26:57]Write i2c OK [00:26:57]MH_I2C_Read... [00:26:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:26:57]Read from MH i2c: E2 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: E2 E1 00 [00:26:57]MH_I2C_Read... [00:26:57]Read from MH i2c: E2 E1 00 ED 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [00:26:57]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:57]wFMCommunicate OK [00:26:57]SAM_PROTO_GetFMData done [00:26:57]requested_item fm.sale_refund.total is exist - process it [00:26:57]requested_item fm.buy.total is exist - process it [00:26:57]requested_item shift.sale.total is exist - process it [00:26:57]SAM_PROTO_GetShiftData [00:26:57]wFMCommunicate request_size=4 [00:26:57]MH_SAM_APDU [00:26:57]CAPDU: 80 13 02 00 [00:26:57]Write to MH i2c: E2 08 00 EE 14 80 13 02 00 00 00 00 00 80 [00:26:57]Write i2c OK [00:26:57]MH_I2C_Read... [00:26:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:58]Read from MH i2c: E2 [00:26:58]MH_I2C_Read... [00:26:58]Read from MH i2c: E2 FD 00 [00:26:58]MH_I2C_Read... [00:26:58]Read from MH i2c: E2 FD 00 EE 14 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 F3 [00:26:58]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:26:58]wFMCommunicate OK [00:26:58]wFMCommunicate request_size=4 [00:26:58]MH_SAM_APDU [00:26:58]CAPDU: 80 17 00 00 [00:26:58]Write to MH i2c: E2 08 00 EF 14 80 17 00 00 00 00 00 00 83 [00:26:58]Write i2c OK [00:26:58]MH_I2C_Read... [00:26:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:58]Read from MH i2c: E2 [00:26:58]MH_I2C_Read... [00:26:58]Read from MH i2c: E2 FD 00 [00:26:58]MH_I2C_Read... [00:26:58]Read from MH i2c: E2 FD 00 EF 14 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 8B [00:26:58]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:26:58]wFMCommunicate OK [00:26:58]wFMCommunicate request_size=4 [00:26:58]MH_SAM_APDU [00:26:58]CAPDU: 80 17 00 00 [00:26:58]Write to MH i2c: E2 08 00 F0 14 80 17 00 00 00 00 00 00 84 [00:26:58]Write i2c OK [00:26:58]MH_I2C_Read... [00:26:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:59]Read from MH i2c: E2 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: E2 FD 00 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: E2 FD 00 F0 14 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 56 [00:26:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:26:59]wFMCommunicate OK [00:26:59]wFMCommunicate request_size=4 [00:26:59]MH_SAM_APDU [00:26:59]CAPDU: 80 17 00 00 [00:26:59]Write to MH i2c: E2 08 00 F1 14 80 17 00 00 00 00 00 00 85 [00:26:59]Write i2c OK [00:26:59]MH_I2C_Read... [00:26:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:59]Read from MH i2c: E2 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: E2 FD 00 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: E2 FD 00 F1 14 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 F7 [00:26:59]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:26:59]wFMCommunicate OK [00:26:59]wFMCommunicate request_size=4 [00:26:59]MH_SAM_APDU [00:26:59]CAPDU: 80 17 00 00 [00:26:59]Write to MH i2c: E2 08 00 F2 14 80 17 00 00 00 00 00 00 86 [00:26:59]Write i2c OK [00:26:59]MH_I2C_Read... [00:26:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:26:59]Read from MH i2c: E2 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: E2 BD 00 [00:26:59]MH_I2C_Read... [00:26:59]Read from MH i2c: E2 BD 00 F2 14 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 6C [00:27:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 OFD Sender: No OFD packet to send [00:27:00]00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:00]wFMCommunicate OK [00:27:00]SAM_PROTO_GetShiftData done [00:27:00]requested_item shift.sale.total_cash is exist - process it [00:27:00]requested_item shift.sale_refund.total is exist - process it [00:27:00]requested_item shift.sale_refund.total_cash is exist - process it [00:27:00]requested_item shift.buy.total is exist - process it [00:27:00]requested_item shift.buy.total_cash is exist - process it [00:27:00]produce_requested_data done [00:27:00]produce_requested_data return {"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.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:27:00]process_action_free get_value [00:27:00]json_value_free [00:27:00]json_value_free done [00:27:00]process_json_proto returns [00:27:00]Send response to host [00:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":13444484.28,"fm.sale_refund.total":647424.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:27:00]free response buf [00:27:00]execute_script done [00:27:00]execute_script returns [00:27:00]free content buf [00:27:00]Sock 7.Close socket [00:27:00]Sock 7.Thread stoped [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]accept exits with 9 [00:28:55]New connection [00:28:55]New thread 3067424100 created [00:28:55]Thread 3067567460 joined [00:28:55]Waiting for new connection... [00:28:55] Sock 9.Parse request [00:28:55]Sock 9.Check first char [00:28:55]Sock 9.First char is OK [00:28:55]request: POST /json_proto HTTP/1.0 [00:28:55]Method: POST [00:28:55]URL: /json_proto [00:28:55]Method is POST - this is cgi request [00:28:55]url: /json_proto [00:28:55]query_string will be loaded in cgi processing [00:28:55]execute_cgi json_proto POST (null) [00:28:55]execute_cgi path=json_proto method=POST [00:28:55]POST find Content-Length [00:28:55]Host: 172.17.38.134:8080 [00:28:55]Content-Length: 621 [00:28:55]Content-Type: application/json [00:28:55] [00:28:55]POST finish read [00:28:55]Found Content-Length = 621 [00:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184078", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [00:28:55]execute_script... [00:28: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 : (3)184078", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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" ] } } [00:28:55]POST & json_proto [00:28:55]process_json_proto [00:28:55]json parsed OK: [00:28:55]protocol is kg_v1.0 [00:28:55]action value=close_receipt [00:28:55]process_action close_receipt [00:28:55]cmd_close_receipt [00:28:55]MH_GetDate [00:28:55]Write to MH i2c: F0 00 00 F3 14 F6 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: F0 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: F0 09 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: F0 09 00 F3 14 00 49 26 72 66 13 9C 7C 64 D5 [00:28:55]GetLastDocTimeStamp 1718756813 [00:28:55]current date 1718756937 [00:28:55]FM_GetShiftState [00:28:55]SAM_PROTO_GetShiftState [00:28:55]wFMCommunicate request_size=4 [00:28:55]MH_SAM_APDU [00:28:55]CAPDU: 80 13 01 00 [00:28:55]Write to MH i2c: E2 08 00 F4 14 80 13 01 00 00 00 00 00 85 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]OFD Sender: No OFD packet to send [00:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:55]Read from MH i2c: E2 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 0E 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 0E 00 F4 14 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 5B [00:28:55]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [00:28:55]wFMCommunicate OK [00:28:55]SAM_PROTO_GetShiftState done [00:28:55]FM_GetShiftState done [00:28:55]opened in 1718756813 [00:28:55]opened+sec_in_day 1718843213 [00:28:55]quantity*price = 14000 [00:28:55]sum+1 = 14001 [00:28:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 1 19.06.2024 00:28 Смена: 324 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34297 ФПД: 147505032953915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T002857&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34297&fm=147505032953915&tin=02508201610067®Number=0000000000092786&sum=14000 0 [00:28:56]StoreToDocumentArchive [00:28:56]shift 324 fd 34297 [00:28:56]save to /storage/0324/doc_00034297 [00:28:56]save last doc name /storage/0324/doc_00034297 to /storage/kkm_last_doc_name [00:28:56]save OK [00:28:56]Clear old archive folders... [00:28:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:28:56]tlvbuf is 018F8940 [00:28:56]SAM_PROTO_ClearQueue [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 09 00 00 [00:28:56]Write to MH i2c: E2 08 00 01 15 80 09 00 00 00 00 00 00 88 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]SAM_PROTO_ClearQueue done [00:28:56]KKMCreateOFDPacket [00:28:56]OFDProtocolAddRootSTLVToBuf [00:28:56]FM_MakeSignedData [00:28:56]FM_MakeSignedData [00:28:56]SAM_PROTO_SignData [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 01 02 [00:28:56]Write to MH i2c: E2 08 00 02 15 80 0D 01 02 00 00 00 00 90 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=255 [00:28:56]MH_SAM_APDU [00:28:56]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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 01 00 00 00 F4 03 04 00 49 26 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 [00:28:56]Write to MH i2c: E2 02 01 03 15 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 01 00 00 00 F4 03 04 00 49 26 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 00 00 19 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 03 15 00 90 00 8C [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=32 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 39 35 10 04 04 00 F9 85 00 00 35 04 06 00 86 27 B1 17 80 3B [00:28:56]Write to MH i2c: E2 23 00 04 15 80 0D 02 02 1B 00 30 30 30 38 37 35 30 39 35 10 04 04 00 F9 85 00 00 35 04 06 00 86 27 B1 17 80 3B 00 00 A0 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [00:28:56]RAPDU: 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 0D 03 02 [00:28:56]Write to MH i2c: E2 08 00 05 15 80 0D 03 02 00 00 00 00 95 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 0B 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 0B 00 05 15 00 DD FA 7E 0F 9A BB A6 C2 90 00 B7 [00:28:56]RAPDU: DD FA 7E 0F 9A BB A6 C2 90 00 [00:28:56]wFMCommunicate OK [00:28:56]SAM_PROTO_SignData done [00:28:56]FM_MakeSignedData done [00:28:56]CreateOFDProtocolMessage [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 11 00 00 [00:28:56]Write to MH i2c: E2 08 00 06 15 80 11 00 00 00 00 00 00 95 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 17 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 17 00 06 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 EA [00:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:28:56]wFMCommunicate OK [00:28:56]CreateOFDProtocolMessage done [00:28:56]OFDSenderStorePacket 34297 [00:28:56]StoreOFDPacket docnum=34297 [00:28:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 AF 16 1D 01 33 F4 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 01 00 00 00 F4 03 04 00 49 26 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F9 85 00 00 35 04 06 00 86 27 B1 17 80 3B DD FA 7E 0F 9A BB A6 C2 [00:28:56]CheckFolder [00:28:56]dirname=/storage/ofd_packets [00:28:56]CheckFolder done [00:28:56]ProducePacketName [00:28:56]name=ofd_packets/00034297 [00:28:56]NVStorageSaveData ofd_packets/00034297 [00:28:56]File name is /storage/ofd_packets/00034297 [00:28:56]Write 323 bytes [00:28:56]NVStorageSaveData done [00:28:56]OFDSenderStorePacket done [00:28:56]KKMCreateOFDPacket done [00:28:56]NVStorageSaveData kkm_last_timestamp [00:28:56]File name is /storage/kkm_last_timestamp [00:28:56]Write 4 bytes [00:28:56]NVStorageSaveData done [00:28:56]OFD Sender: Processing packet 34297 [packets to send 8, broken 7] [00:28:56]ProducePacketName [00:28:56]name=ofd_packets/00034297 [00:28:56]OFD Sender: To server: pG, [00:28:56]CommunicateWithHost lk.salyk.kg:30040 [00:28:56]ConnectInit lk.salyk.kg [00:28:56]ExternCall_PrintAddStr [00:28:56]wPrintStart [00:28:56]Write to MH i2c: 01 00 00 07 15 1C [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: 01 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: 01 07 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: 01 07 00 07 15 00 00 00 00 00 FF 0F 31 [00:28:56]RasterBufferAndPrint [00:28:56]line Счет N : (3)184078 [00:28:56]line ИНН: 02508201610067 [00:28:56]line Контрольно-Кассовый Чек [00:28:56]line ПРОДАЖА [00:28:56]line Товар: 48743570 [00:28:56]line Сигареты Winston XStyle Blue [00:28:56]line 1.000 * 140.00 [00:28:56]line = 140.00 [00:28:56]line НДС 12% НСП 1% [00:28:56]line > о реализуемом товаре [00:28:56]line ИТОГО: 140.00 [00:28:56]line НСП 1% : 1.24 [00:28:56]line НДС 12% : 14.87 [00:28:56]line Наличными: 140.00 [00:28:56]line Безнал.: 0.00 [00:28:56]line Место: АЗС № 120 "Партнер Нефть" [00:28:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:28:56]line СНО: Общий режим [00:28:56]line Чек 1 19.06.2024 00:28 [00:28:56]line Смена: 324 ФФД: 1.0 [00:28:56]line ЗНМ: 0300000172 [00:28:56]line РНМ: 0000000000092786 [00:28:56]line Версия ККМ: 001 [00:28:56]line ФМ: 0000000000875095 [00:28:56]line ФД: 34297 [00:28:56]line ФПД: 147505032953915 [00:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T002857&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34297&fm=147505032953915&tin=02508201610067®Number=0000000000092786&sum=14000 [00:28:57]line 0 [00:28:57]Connected sock=11 [00:28:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 25 01 00 00 AF 16 1D 01 33 F4 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 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 01 00 00 00 F4 03 04 00 49 26 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F9 85 00 00 35 04 06 00 86 27 B1 17 80 3B DD FA 7E 0F 9A BB A6 C2 [00:28:57]written 0, free lines is 4095 [00:28:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 85 9B 47 00 CE 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 F9 85 00 00 F4 03 04 00 18 CD 71 66 B6 04 01 00 00 3E F6 36 84 13 4F F0 FD [00:28:57]CommunicateWithHost err = 0 [00:28:57]CheckOFDResponse [00:28:57]1017 (14) - 77093643461234 [00:28:57]1041 (16) - 0000000000875095 [00:28:57]1040 (4) - 34297 [00:28:57]1012 (4) - 18.06.2024 18:08 [00:28:57]1206 (1) - 0 [00:28:57]OFD Sender: Remove packet 34297 [00:28:57]ProducePacketName [00:28:57]name=ofd_packets/00034297 [00:28:57]NVStorageDeleteData [00:28:57]Write to MH i2c: 01 00 00 2F 15 44 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 07 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 07 00 2F 15 00 00 00 00 00 ED 0C 44 [00:28:57]RasterBufferAndPrint [00:28:57]line [00:28:57]line [00:28:57]line [00:28:57]line [00:28:57]line [00:28:57]written 0, free lines is 3318 [00:28:57]MH_Cut [00:28:57]Write to MH i2c: D1 01 00 36 15 01 1D [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: D1 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: D1 01 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: D1 01 00 36 15 00 1C [00:28:57]Write to MH i2c: 01 00 00 37 15 4C [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]OFD Sender: No OFD packet to send [00:28:58]*** Cut start [00:28:58]*** Partial cut [00:28:58]*** CUTSNS_PIN = 1 [00:28:58]*** CUTSNS_PIN = 0 [00:28:58]*** Brake cut motor [00:28:59]Read from MH i2c: 01 [00:28:59]MH_I2C_Read... [00:28:59]*** Stop cut motor [00:28:59]*** Cut end [00:28:59]Read from MH i2c: 01 07 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [00:28:59]process_action close_receipt done [00:28:59]requested_data is exist [00:28:59]produce_requested_data [00:28:59]requested_item fm.sn is exist - process it [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 11 00 00 [00:28:59]Write to MH i2c: E2 08 00 38 15 80 11 00 00 00 00 00 00 C7 [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 17 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 17 00 38 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 1C [00:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [00:28:59]wFMCommunicate OK [00:28:59]requested_item fd.num is exist - process it [00:28:59]SAM_PROTO_GetFieldsCounters [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 13 00 00 [00:28:59]Write to MH i2c: E2 08 00 39 15 80 13 00 00 00 00 00 00 CA [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 62 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 62 00 39 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F9 85 00 00 0E 04 04 00 44 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 BA [00:28:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 F9 85 00 00 0E 04 04 00 44 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:59]wFMCommunicate OK [00:28:59]SAM_PROTO_GetFieldsCounters done [00:28:59]requested_item shift.num is exist - process it [00:28:59]requested_item shift.opened is exist - process it [00:28:59]req_shift_opened [00:28:59]FM_GetShiftState [00:28:59]SAM_PROTO_GetShiftState [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 13 01 00 [00:28:59]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 0E 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 A2 [00:28:59]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [00:28:59]wFMCommunicate OK [00:28:59]SAM_PROTO_GetShiftState done [00:28:59]FM_GetShiftState done [00:28:59]req_shift_opened done [00:28:59]requested_item shift.open_date is exist - process it [00:28:59]req_shift_open_date [00:28:59]req_shift_open_date done [00:28:59]produce_requested_data done [00:28:59]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34297,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813} [00:28:59]process_action_free close_receipt [00:28:59]json_value_free [00:28:59]json_value_free done [00:28:59]process_json_proto returns [00:28:59]Send response to host [00:28:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34297,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813}}} [00:28:59]free response buf [00:28:59]execute_script done [00:28:59]execute_script returns [00:28:59]free content buf [00:28:59]Sock 9.Close socket [00:28:59]Sock 9.Thread stoped [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]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:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]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:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:22:57]accept exits with 7 [01:22:57]New connection [01:22:57]New thread 3067567460 created [01:22:57]Thread 3067424100 joined [01:22:57]Waiting for new connection... [01:22:57] Sock 7.Parse request [01:22:57]Sock 7.Check first char [01:22:57]Sock 7.First char is OK [01:22:57]request: POST /json_proto HTTP/1.0 [01:22:57]Method: POST [01:22:57]URL: /json_proto [01:22:57]Method is POST - this is cgi request [01:22:57]url: /json_proto [01:22:57]query_string will be loaded in cgi processing [01:22:57]execute_cgi json_proto POST (null) [01:22:57]execute_cgi path=json_proto method=POST [01:22:57]POST find Content-Length [01:22:57]Host: 172.17.38.134:8080 [01:22:57]Content-Length: 785 [01:22:57]Content-Type: application/json [01:22:57] [01:22:57]POST finish read [01:22:57]Found Content-Length = 785 [01:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184079", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:57]execute_script... [01:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184079", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:57]POST & json_proto [01:22:57]process_json_proto [01:22:57]json parsed OK: [01:22:57]protocol is kg_v1.0 [01:22:57]action value=close_receipt [01:22:57]process_action close_receipt [01:22:57]cmd_close_receipt [01:22:57]MH_GetDate [01:22:57]Write to MH i2c: F0 00 00 3B 15 3F [01:22:57]Write i2c OK [01:22:57]MH_I2C_Read... [01:22:57]Read from MH i2c: F0 [01:22:57]MH_I2C_Read... [01:22:57]Read from MH i2c: F0 09 00 [01:22:57]MH_I2C_Read... [01:22:57]Read from MH i2c: F0 09 00 3B 15 00 F3 32 72 66 13 9C 7C 64 D4 [01:22:57]GetLastDocTimeStamp 1718756937 [01:22:57]current date 1718760179 [01:22:57]FM_GetShiftState [01:22:57]SAM_PROTO_GetShiftState [01:22:57]wFMCommunicate request_size=4 [01:22:57]MH_SAM_APDU [01:22:57]CAPDU: 80 13 01 00 [01:22:57]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [01:22:57]Write i2c OK [01:22:57]MH_I2C_Read... [01:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:57]Read from MH i2c: E2 [01:22:57]MH_I2C_Read... [01:22:57]Read from MH i2c: E2 0E 00 [01:22:57]MH_I2C_Read... [01:22:57]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 A4 [01:22:57]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [01:22:57]wFMCommunicate OK [01:22:57]SAM_PROTO_GetShiftState done [01:22:57]FM_GetShiftState done [01:22:57]opened in 1718756813 [01:22:57]opened+sec_in_day 1718843213 [01:22:57]quantity*price = 15100 [01:22:57]sum+1 = 15101 [01:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 19.06.2024 01:22 Смена: 324 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875095 ФД: 34298 ФПД: 266731648173235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T012259&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34298&fm=266731648173235&tin=02508201610067®Number=0000000000092786&sum=15100 0 [01:22:58]StoreToDocumentArchive [01:22:58]shift 324 fd 34298 [01:22:58]save to /storage/0324/doc_00034298 [01:22:58]save last doc name /storage/0324/doc_00034298 to /storage/kkm_last_doc_name [01:22:58]save OK [01:22:58]Clear old archive folders... [01:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=276 [01:22:58]tlvbuf is 018F83C0 [01:22:58]SAM_PROTO_ClearQueue [01:22:58]wFMCommunicate request_size=4 [01:22:58]MH_SAM_APDU [01:22:58]CAPDU: 80 09 00 00 [01:22:58]Write to MH i2c: E2 08 00 49 15 80 09 00 00 00 00 00 00 D0 [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:58]Read from MH i2c: E2 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [01:22:58]RAPDU: 90 00 [01:22:58]wFMCommunicate OK [01:22:58]SAM_PROTO_ClearQueue done [01:22:58]KKMCreateOFDPacket [01:22:58]OFDProtocolAddRootSTLVToBuf [01:22:58]FM_MakeSignedData [01:22:58]FM_MakeSignedData [01:22:58]SAM_PROTO_SignData [01:22:58]wFMCommunicate request_size=4 [01:22:58]MH_SAM_APDU [01:22:58]CAPDU: 80 0D 01 02 [01:22:58]Write to MH i2c: E2 08 00 4A 15 80 0D 01 02 00 00 00 00 D8 [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:58]Read from MH i2c: E2 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [01:22:58]RAPDU: 90 00 [01:22:58]wFMCommunicate OK [01:22:58]wFMCommunicate request_size=255 [01:22:58]MH_SAM_APDU [01:22:58]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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F3 32 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 [01:22:58]Write to MH i2c: E2 02 01 4B 15 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F3 32 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 00 00 75 [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:58]Read from MH i2c: E2 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [01:22:58]RAPDU: 90 00 [01:22:58]wFMCommunicate OK [01:22:58]wFMCommunicate request_size=35 [01:22:58]MH_SAM_APDU [01:22:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FA 85 00 00 35 04 06 00 F2 97 4D 23 C4 B3 [01:22:58]Write to MH i2c: E2 26 00 4C 15 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FA 85 00 00 35 04 06 00 F2 97 4D 23 C4 B3 00 00 BF [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:58]Read from MH i2c: E2 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [01:22:58]RAPDU: 90 00 [01:22:58]wFMCommunicate OK [01:22:58]wFMCommunicate request_size=4 [01:22:58]MH_SAM_APDU [01:22:58]CAPDU: 80 0D 03 02 [01:22:58]Write to MH i2c: E2 08 00 4D 15 80 0D 03 02 00 00 00 00 DD [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:58]Read from MH i2c: E2 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 0B 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 0B 00 4D 15 00 CF 69 3C C8 0A 86 39 54 90 00 37 [01:22:58]RAPDU: CF 69 3C C8 0A 86 39 54 90 00 [01:22:58]wFMCommunicate OK [01:22:58]SAM_PROTO_SignData done [01:22:58]FM_MakeSignedData done [01:22:58]CreateOFDProtocolMessage [01:22:58]wFMCommunicate request_size=4 [01:22:58]MH_SAM_APDU [01:22:58]CAPDU: 80 11 00 00 [01:22:58]Write to MH i2c: E2 08 00 4E 15 80 11 00 00 00 00 00 00 DD [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:58]Read from MH i2c: E2 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 17 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: E2 17 00 4E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 32 [01:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:22:58]wFMCommunicate OK [01:22:58]CreateOFDProtocolMessage done [01:22:58]OFDSenderStorePacket 34298 [01:22:58]StoreOFDPacket docnum=34298 [01:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 E5 AB 20 01 8A 93 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F3 32 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FA 85 00 00 35 04 06 00 F2 97 4D 23 C4 B3 CF 69 3C C8 0A 86 39 54 [01:22:58]CheckFolder [01:22:58]dirname=/storage/ofd_packets [01:22:58]CheckFolder done [01:22:58]ProducePacketName [01:22:58]name=ofd_packets/00034298 [01:22:58]NVStorageSaveData ofd_packets/00034298 [01:22:58]File name is /storage/ofd_packets/00034298 [01:22:58]Write 326 bytes [01:22:58]NVStorageSaveData done [01:22:58]OFDSenderStorePacket done [01:22:58]KKMCreateOFDPacket done [01:22:58]NVStorageSaveData kkm_last_timestamp [01:22:58]File name is /storage/kkm_last_timestamp [01:22:58]Write 4 bytes [01:22:58]NVStorageSaveData done [01:22:58]ExternCall_PrintAddStr [01:22:58]wPrintStart [01:22:58]Write to MH i2c: 01 00 00 4F 15 64 [01:22:58]Write i2c OK [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: 01 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: 01 07 00 [01:22:58]MH_I2C_Read... [01:22:58]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 FF 0F 79 [01:22:58]RasterBufferAndPrint [01:22:58]line Счет N : (3)184079 [01:22:58]line ИНН: 02508201610067 [01:22:58]line Контрольно-Кассовый Чек [01:22:58]line ПРОДАЖА [01:22:58]line Товар: 48742245 [01:22:58]line Сигареты Parliament Silver Blue [01:22:58]line 1.000 * 151.00 [01:22:58]line = 151.00 [01:22:58]line НДС 12% НСП 1% [01:22:58]line > о реализуемом товаре [01:22:58]line ИТОГО: 151.00 [01:22:58]line НСП 1% : 1.34 [01:22:58]line НДС 12% : 16.03 [01:22:58]line Наличными: 0.00 [01:22:58]line Безнал.: 151.00 [01:22:58]line Место: АЗС № 120 "Партнер Нефть" [01:22:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:22:58]line СНО: Общий режим [01:22:58]line Чек 2 19.06.2024 01:22 [01:22:58]line Смена: 324 ФФД: 1.0 [01:22:58]line ЗНМ: 0300000172 [01:22:58]line РНМ: 0000000000092786 [01:22:58]line Версия ККМ: 001 [01:22:58]line Платежная система: O! деньги [01:22:58]line ФМ: 0000000000875095 [01:22:58]line ФД: 34298 [01:22:58]line ФПД: 266731648173235 [01:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T012259&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34298&fm=266731648173235&tin=02508201610067®Number=0000000000092786&sum=15100 [01:22:59]line 0 [01:22:59]OFD Sender: Processing packet 34298 [packets to send 8, broken 7] [01:22:59]ProducePacketName [01:22:59]name=ofd_packets/00034298 [01:22:59]OFD Sender: To server: pG, [01:22:59]CommunicateWithHost lk.salyk.kg:30040 [01:22:59]ConnectInit lk.salyk.kg [01:22:59]written 0, free lines is 4095 [01:22:59]Connected sock=10 [01:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 28 01 00 00 E5 AB 20 01 8A 93 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 F3 32 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FA 85 00 00 35 04 06 00 F2 97 4D 23 C4 B3 CF 69 3C C8 0A 86 39 54 [01:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 8B AF 47 00 BB FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FA 85 00 00 F4 03 04 00 C2 D9 71 66 B6 04 01 00 00 C1 55 96 72 AF B6 5C 11 [01:22:59]CommunicateWithHost err = 0 [01:22:59]CheckOFDResponse [01:22:59]1017 (14) - 77093643461234 [01:22:59]1041 (16) - 0000000000875095 [01:22:59]1040 (4) - 34298 [01:22:59]1012 (4) - 18.06.2024 19:02 [01:22:59]1206 (1) - 0 [01:22:59]OFD Sender: Remove packet 34298 [01:22:59]ProducePacketName [01:22:59]name=ofd_packets/00034298 [01:22:59]NVStorageDeleteData [01:22:59]Write to MH i2c: 01 00 00 7A 15 8F [01:22:59]Write i2c OK [01:22:59]MH_I2C_Read... [01:22:59]Read from MH i2c: 01 [01:22:59]MH_I2C_Read... [01:22:59]Read from MH i2c: 01 07 00 [01:22:59]MH_I2C_Read... [01:22:59]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 AC 0C 4E [01:22:59]RasterBufferAndPrint [01:22:59]line [01:22:59]line [01:22:59]line [01:22:59]line [01:22:59]line [01:22:59]written 0, free lines is 3250 [01:22:59]MH_Cut [01:22:59]Write to MH i2c: D1 01 00 81 15 01 68 [01:22:59]Write i2c OK [01:22:59]MH_I2C_Read... [01:22:59]Read from MH i2c: D1 [01:22:59]MH_I2C_Read... [01:22:59]Read from MH i2c: D1 01 00 [01:22:59]MH_I2C_Read... [01:22:59]Read from MH i2c: D1 01 00 81 15 00 67 [01:22:59]Write to MH i2c: 01 00 00 82 15 97 [01:22:59]Write i2c OK [01:22:59]MH_I2C_Read... [01:23:00]OFD Sender: No OFD packet to send [01:23:00]*** Cut start [01:23:00]*** Partial cut [01:23:00]*** CUTSNS_PIN = 1 [01:23:00]*** CUTSNS_PIN = 0 [01:23:00]*** Brake cut motor [01:23:00]Read from MH i2c: 01 [01:23:01]MH_I2C_Read... [01:23:01]*** Stop cut motor [01:23:01]*** Cut end [01:23:01]Read from MH i2c: 01 07 00 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: 01 07 00 82 15 00 00 00 00 00 FF 0F AC [01:23:01]process_action close_receipt done [01:23:01]requested_data is exist [01:23:01]produce_requested_data [01:23:01]requested_item fm.sn is exist - process it [01:23:01]wFMCommunicate request_size=4 [01:23:01]MH_SAM_APDU [01:23:01]CAPDU: 80 11 00 00 [01:23:01]Write to MH i2c: E2 08 00 83 15 80 11 00 00 00 00 00 00 12 [01:23:01]Write i2c OK [01:23:01]MH_I2C_Read... [01:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:01]Read from MH i2c: E2 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: E2 17 00 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: E2 17 00 83 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 67 [01:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:23:01]wFMCommunicate OK [01:23:01]requested_item fd.num is exist - process it [01:23:01]SAM_PROTO_GetFieldsCounters [01:23:01]wFMCommunicate request_size=4 [01:23:01]MH_SAM_APDU [01:23:01]CAPDU: 80 13 00 00 [01:23:01]Write to MH i2c: E2 08 00 84 15 80 13 00 00 00 00 00 00 15 [01:23:01]Write i2c OK [01:23:01]MH_I2C_Read... [01:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:01]Read from MH i2c: E2 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: E2 62 00 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: E2 62 00 84 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 FA 85 00 00 0E 04 04 00 44 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 09 [01:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 FA 85 00 00 0E 04 04 00 44 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:01]wFMCommunicate OK [01:23:01]SAM_PROTO_GetFieldsCounters done [01:23:01]requested_item shift.num is exist - process it [01:23:01]requested_item shift.opened is exist - process it [01:23:01]req_shift_opened [01:23:01]FM_GetShiftState [01:23:01]SAM_PROTO_GetShiftState [01:23:01]wFMCommunicate request_size=4 [01:23:01]MH_SAM_APDU [01:23:01]CAPDU: 80 13 01 00 [01:23:01]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [01:23:01]Write i2c OK [01:23:01]MH_I2C_Read... [01:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:01]Read from MH i2c: E2 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: E2 0E 00 [01:23:01]MH_I2C_Read... [01:23:01]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 ED [01:23:01]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [01:23:01]wFMCommunicate OK [01:23:01]SAM_PROTO_GetShiftState done [01:23:01]FM_GetShiftState done [01:23:01]req_shift_opened done [01:23:01]requested_item shift.open_date is exist - process it [01:23:01]req_shift_open_date [01:23:01]req_shift_open_date done [01:23:01]produce_requested_data done [01:23:01]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34298,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813} [01:23:01]process_action_free close_receipt [01:23:01]json_value_free [01:23:01]json_value_free done [01:23:01]process_json_proto returns [01:23:01]Send response to host [01:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34298,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813}}} [01:23:01]free response buf [01:23:01]execute_script done [01:23:01]execute_script returns [01:23:01]free content buf [01:23:01]Sock 7.Close socket [01:23:01]Sock 7.Thread stoped [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:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43: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:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:25]accept exits with 9 [01:59:25]New connection [01:59:25]New thread 3067424100 created [01:59:25]Thread 3067567460 joined [01:59:25]Waiting for new connection... [01:59:25] Sock 9.Parse request [01:59:25]Sock 9.Check first char [01:59:25]Sock 9.First char is OK [01:59:25]request: POST /json_proto HTTP/1.0 [01:59:25]Method: POST [01:59:25]URL: /json_proto [01:59:25]Method is POST - this is cgi request [01:59:25]url: /json_proto [01:59:25]query_string will be loaded in cgi processing [01:59:25]execute_cgi json_proto POST (null) [01:59:25]execute_cgi path=json_proto method=POST [01:59:25]POST find Content-Length [01:59:25]Host: 172.17.38.134:8080 [01:59:25]Content-Length: 943 [01:59:25]Content-Type: application/json [01:59:25] [01:59:25]POST finish read [01:59:25]Found Content-Length = 943 [01:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184080", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:25]execute_script... [01:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184080", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:25]POST & json_proto [01:59:25]process_json_proto [01:59:25]json parsed OK: [01:59:25]protocol is kg_v1.0 [01:59:25]action value=close_receipt [01:59:25]process_action close_receipt [01:59:25]cmd_close_receipt [01:59:25]MH_GetDate [01:59:25]Write to MH i2c: F0 00 00 86 15 8A [01:59:25]Write i2c OK [01:59:25]MH_I2C_Read... [01:59:25]Read from MH i2c: F0 [01:59:25]MH_I2C_Read... [01:59:25]Read from MH i2c: F0 09 00 [01:59:25]MH_I2C_Read... [01:59:25]Read from MH i2c: F0 09 00 86 15 00 80 3B 72 66 13 9C 7C 64 B5 [01:59:25]GetLastDocTimeStamp 1718760179 [01:59:25]current date 1718762368 [01:59:25]FM_GetShiftState [01:59:25]SAM_PROTO_GetShiftState [01:59:25]wFMCommunicate request_size=4 [01:59:25]MH_SAM_APDU [01:59:25]CAPDU: 80 13 01 00 [01:59:25]Write to MH i2c: E2 08 00 87 15 80 13 01 00 00 00 00 00 19 [01:59:25]Write i2c OK [01:59:25]MH_I2C_Read... [01:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:25]Read from MH i2c: E2 [01:59:25]MH_I2C_Read... [01:59:25]Read from MH i2c: E2 0E 00 [01:59:25]MH_I2C_Read... [01:59:25]Read from MH i2c: E2 0E 00 87 15 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 EF [01:59:25]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [01:59:25]wFMCommunicate OK [01:59:25]SAM_PROTO_GetShiftState done [01:59:25]FM_GetShiftState done [01:59:25]opened in 1718756813 [01:59:25]opened+sec_in_day 1718843213 [01:59:25]quantity*price = 17500 [01:59:25]sum+1 = 17501 [01:59:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 3 19.06.2024 01:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34299 ФПД: 74367799495511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T015928&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34299&fm=74367799495511&tin=02508201610067®Number=0000000000092786&sum=28500 0 [01:59:26]StoreToDocumentArchive [01:59:26]shift 324 fd 34299 [01:59:26]save to /storage/0324/doc_00034299 [01:59:26]save last doc name /storage/0324/doc_00034299 to /storage/kkm_last_doc_name [01:59:26]save OK [01:59:26]Clear old archive folders... [01:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=401 [01:59:26]tlvbuf is 0194AF90 [01:59:26]SAM_PROTO_ClearQueue [01:59:26]wFMCommunicate request_size=4 [01:59:26]MH_SAM_APDU [01:59:26]CAPDU: 80 09 00 00 [01:59:26]Write to MH i2c: E2 08 00 94 15 80 09 00 00 00 00 00 00 1B [01:59:26]Write i2c OK [01:59:26]MH_I2C_Read... [01:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:26]Read from MH i2c: E2 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [01:59:26]RAPDU: 90 00 [01:59:26]wFMCommunicate OK [01:59:26]SAM_PROTO_ClearQueue done [01:59:26]KKMCreateOFDPacket [01:59:26]OFDProtocolAddRootSTLVToBuf [01:59:26]FM_MakeSignedData [01:59:26]FM_MakeSignedData [01:59:26]SAM_PROTO_SignData [01:59:26]wFMCommunicate request_size=4 [01:59:26]MH_SAM_APDU [01:59:26]CAPDU: 80 0D 01 02 [01:59:26]Write to MH i2c: E2 08 00 95 15 80 0D 01 02 00 00 00 00 23 [01:59:26]Write i2c OK [01:59:26]MH_I2C_Read... [01:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:26]Read from MH i2c: E2 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [01:59:26]RAPDU: 90 00 [01:59:26]wFMCommunicate OK [01:59:26]wFMCommunicate request_size=255 [01:59:26]MH_SAM_APDU [01:59:26]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 [01:59:26]Write to MH i2c: E2 02 01 96 15 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 00 00 BE [01:59:26]Write i2c OK [01:59:26]MH_I2C_Read... [01:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:26]OFD Sender: No OFD packet to send [01:59:26]Read from MH i2c: E2 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [01:59:26]RAPDU: 90 00 [01:59:26]wFMCommunicate OK [01:59:26]wFMCommunicate request_size=160 [01:59:26]MH_SAM_APDU [01:59:26]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 80 3B 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FB 85 00 00 35 04 06 00 43 A3 1A 45 8B 57 [01:59:26]Write to MH i2c: E2 A3 00 97 15 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 80 3B 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FB 85 00 00 35 04 06 00 43 A3 1A 45 8B 57 00 00 C0 [01:59:26]Write i2c OK [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 [01:59:26]MH_I2C_Read... [01:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:26]Read from MH i2c: E2 03 00 [01:59:26]MH_I2C_Read... [01:59:26]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [01:59:26]RAPDU: 90 00 [01:59:26]wFMCommunicate OK [01:59:26]wFMCommunicate request_size=4 [01:59:26]MH_SAM_APDU [01:59:26]CAPDU: 80 0D 03 02 [01:59:26]Write to MH i2c: E2 08 00 98 15 80 0D 03 02 00 00 00 00 28 [01:59:26]Write i2c OK [01:59:26]MH_I2C_Read... [01:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:27]Read from MH i2c: E2 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: E2 0B 00 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: E2 0B 00 98 15 00 7B EC 53 30 83 5A 7A 4D 90 00 B7 [01:59:27]RAPDU: 7B EC 53 30 83 5A 7A 4D 90 00 [01:59:27]wFMCommunicate OK [01:59:27]SAM_PROTO_SignData done [01:59:27]FM_MakeSignedData done [01:59:27]CreateOFDProtocolMessage [01:59:27]wFMCommunicate request_size=4 [01:59:27]MH_SAM_APDU [01:59:27]CAPDU: 80 11 00 00 [01:59:27]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [01:59:27]Write i2c OK [01:59:27]MH_I2C_Read... [01:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:27]Read from MH i2c: E2 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: E2 17 00 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: E2 17 00 99 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 7D [01:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:59:27]wFMCommunicate OK [01:59:27]CreateOFDProtocolMessage done [01:59:27]OFDSenderStorePacket 34299 [01:59:27]StoreOFDPacket docnum=34299 [01:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A5 01 00 00 6E B6 9D 01 EC 87 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 80 3B 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FB 85 00 00 35 04 06 00 43 A3 1A 45 8B 57 7B EC 53 30 83 5A 7A 4D [01:59:27]CheckFolder [01:59:27]dirname=/storage/ofd_packets [01:59:27]CheckFolder done [01:59:27]ProducePacketName [01:59:27]name=ofd_packets/00034299 [01:59:27]NVStorageSaveData ofd_packets/00034299 [01:59:27]File name is /storage/ofd_packets/00034299 [01:59:27]Write 451 bytes [01:59:27]NVStorageSaveData done [01:59:27]OFDSenderStorePacket done [01:59:27]KKMCreateOFDPacket done [01:59:27]NVStorageSaveData kkm_last_timestamp [01:59:27]File name is /storage/kkm_last_timestamp [01:59:27]Write 4 bytes [01:59:27]NVStorageSaveData done [01:59:27]ExternCall_PrintAddStr [01:59:27]wPrintStart [01:59:27]Write to MH i2c: 01 00 00 9A 15 AF [01:59:27]Write i2c OK [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: 01 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: 01 07 00 [01:59:27]MH_I2C_Read... [01:59:27]OFD Sender: Processing packet 34299 [packets to send 8, broken 7] [01:59:27]ProducePacketName [01:59:27]name=ofd_packets/00034299 [01:59:27]Read from MH i2c: OFD Sender: To server: pG, [01:59:27]01 CommunicateWithHost lk.salyk.kg:30040 [01:59:27]07 ConnectInit lk.salyk.kg [01:59:27]00 9A 15 00 00 00 00 00 FF 0F C4 [01:59:27]RasterBufferAndPrint [01:59:27]line Счет N : (3)184080 [01:59:27]line ИНН: 02508201610067 [01:59:27]line Контрольно-Кассовый Чек [01:59:27]line ПРОДАЖА [01:59:27]line Товар: 4607084351378 [01:59:27]line Бисквит Чоко пай 6шт [01:59:27]line 1.000 * 175.00 [01:59:27]line = 175.00 [01:59:27]line НДС 12% НСП 1% [01:59:27]line > о реализуемом товаре [01:59:27]line Товар: 4870022003305 [01:59:27]line Напиток Gorilla эн нат ж/б 0,5/0,45л [01:59:27]line 1.000 * 110.00 [01:59:27]line = 110.00 [01:59:27]line НДС 12% НСП 1% [01:59:27]line > о реализуемом товаре [01:59:27]line ИТОГО: 285.00 [01:59:27]line НСП 1% : 2.52 [01:59:27]line НДС 12% : 30.26 [01:59:27]line Наличными: 285.00 [01:59:27]line Безнал.: 0.00 [01:59:27]line Место: АЗС № 120 "Партнер Нефть" [01:59:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:59:27]line СНО: Общий режим [01:59:27]line Чек 3 19.06.2024 01:59 [01:59:27]line Смена: 324 ФФД: 1.0 [01:59:27]line ЗНМ: 0300000172 [01:59:27]line РНМ: 0000000000092786 [01:59:27]line Версия ККМ: 001 [01:59:27]line ФМ: 0000000000875095 [01:59:27]line ФД: 34299 [01:59:27]line ФПД: 74367799495511 [01:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T015928&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34299&fm=74367799495511&tin=02508201610067®Number=0000000000092786&sum=28500 [01:59:27]line 0 [01:59:27]written 0, free lines is 4095 [01:59:27]Connected sock=12 [01:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A5 01 00 00 6E B6 9D 01 EC 87 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 80 3B 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FB 85 00 00 35 04 06 00 43 A3 1A 45 8B 57 7B EC 53 30 83 5A 7A 4D [01:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 B7 05 47 00 8A C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FB 85 00 00 F4 03 04 00 4E E2 71 66 B6 04 01 00 00 90 63 A8 69 28 46 07 C8 [01:59:27]CommunicateWithHost err = 0 [01:59:27]CheckOFDResponse [01:59:27]1017 (14) - 77093643461234 [01:59:27]1041 (16) - 0000000000875095 [01:59:27]1040 (4) - 34299 [01:59:27]1012 (4) - 18.06.2024 19:38 [01:59:27]1206 (1) - 0 [01:59:27]OFD Sender: Remove packet 34299 [01:59:27]ProducePacketName [01:59:27]name=ofd_packets/00034299 [01:59:27]NVStorageDeleteData [01:59:27]Write to MH i2c: 01 00 00 C9 15 DE [01:59:27]Write i2c OK [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: 01 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: 01 07 00 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: 01 07 00 C9 15 00 00 00 00 00 A6 0C 97 [01:59:27]RasterBufferAndPrint [01:59:27]line [01:59:27]line [01:59:27]line [01:59:27]line [01:59:27]line [01:59:27]written 0, free lines is 3243 [01:59:27]MH_Cut [01:59:27]Write to MH i2c: D1 01 00 D0 15 01 B7 [01:59:27]Write i2c OK [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: D1 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: D1 01 00 [01:59:27]MH_I2C_Read... [01:59:27]Read from MH i2c: D1 01 00 D0 15 00 B6 [01:59:27]Write to MH i2c: 01 00 00 D1 15 E6 [01:59:27]Write i2c OK [01:59:27]MH_I2C_Read... [01:59:28]OFD Sender: No OFD packet to send [01:59:28]*** Cut start [01:59:28]*** Partial cut [01:59:28]*** CUTSNS_PIN = 1 [01:59:28]*** CUTSNS_PIN = 0 [01:59:28]*** Brake cut motor [01:59:29]Read from MH i2c: 01 [01:59:29]MH_I2C_Read... [01:59:29]*** Stop cut motor [01:59:29]*** Cut end [01:59:29]Read from MH i2c: 01 07 00 [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: 01 07 00 D1 15 00 00 00 00 00 FF 0F FB [01:59:29]process_action close_receipt done [01:59:29]requested_data is exist [01:59:29]produce_requested_data [01:59:29]requested_item fm.sn is exist - process it [01:59:29]wFMCommunicate request_size=4 [01:59:29]MH_SAM_APDU [01:59:29]CAPDU: 80 11 00 00 [01:59:29]Write to MH i2c: E2 08 00 D2 15 80 11 00 00 00 00 00 00 61 [01:59:29]Write i2c OK [01:59:29]MH_I2C_Read... [01:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:29]Read from MH i2c: E2 [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: E2 17 00 [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: E2 17 00 D2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 B6 [01:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [01:59:29]wFMCommunicate OK [01:59:29]requested_item fd.num is exist - process it [01:59:29]SAM_PROTO_GetFieldsCounters [01:59:29]wFMCommunicate request_size=4 [01:59:29]MH_SAM_APDU [01:59:29]CAPDU: 80 13 00 00 [01:59:29]Write to MH i2c: E2 08 00 D3 15 80 13 00 00 00 00 00 00 64 [01:59:29]Write i2c OK [01:59:29]MH_I2C_Read... [01:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:29]Read from MH i2c: E2 [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: E2 62 00 [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: E2 62 00 D3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 FB 85 00 00 0E 04 04 00 44 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 5C [01:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 FB 85 00 00 0E 04 04 00 44 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:29]wFMCommunicate OK [01:59:29]SAM_PROTO_GetFieldsCounters done [01:59:29]requested_item shift.num is exist - process it [01:59:29]requested_item shift.opened is exist - process it [01:59:29]req_shift_opened [01:59:29]FM_GetShiftState [01:59:29]SAM_PROTO_GetShiftState [01:59:29]wFMCommunicate request_size=4 [01:59:29]MH_SAM_APDU [01:59:29]CAPDU: 80 13 01 00 [01:59:29]Write to MH i2c: E2 08 00 D4 15 80 13 01 00 00 00 00 00 66 [01:59:29]Write i2c OK [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: E2 [01:59:29]MH_I2C_Read... [01:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:29]Read from MH i2c: E2 0E 00 [01:59:29]MH_I2C_Read... [01:59:29]Read from MH i2c: E2 0E 00 D4 15 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 3C [01:59:29]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [01:59:29]wFMCommunicate OK [01:59:29]SAM_PROTO_GetShiftState done [01:59:29]FM_GetShiftState done [01:59:29]req_shift_opened done [01:59:29]requested_item shift.open_date is exist - process it [01:59:29]req_shift_open_date [01:59:29]req_shift_open_date done [01:59:29]produce_requested_data done [01:59:29]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34299,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813} [01:59:29]process_action_free close_receipt [01:59:29]json_value_free [01:59:29]json_value_free done [01:59:29]process_json_proto returns [01:59:29]Send response to host [01:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34299,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813}}} [01:59:29]free response buf [01:59:29]execute_script done [01:59:29]execute_script returns [01:59:29]free content buf [01:59:29]Sock 9.Close socket [01:59:29]Sock 9.Thread stoped [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:48]accept exits with 7 [02:32:48]New connection [02:32:48]New thread 3067567460 created [02:32:48]Thread 3067424100 joined [02:32:48]Waiting for new connection... [02:32:48] Sock 7.Parse request [02:32:48]Sock 7.Check first char [02:32:48]Sock 7.First char is OK [02:32:48]request: POST /json_proto HTTP/1.0 [02:32:48]Method: POST [02:32:48]URL: /json_proto [02:32:48]Method is POST - this is cgi request [02:32:48]url: /json_proto [02:32:48]query_string will be loaded in cgi processing [02:32:48]execute_cgi json_proto POST (null) [02:32:48]execute_cgi path=json_proto method=POST [02:32:48]POST find Content-Length [02:32:48]Host: 172.17.38.134:8080 [02:32:48]Content-Length: 929 [02:32:48]Content-Type: application/json [02:32:48] [02:32:48]POST finish read [02:32:48]Found Content-Length = 929 [02:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184081", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:48]execute_script... [02:32:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184081", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:48]POST & json_proto [02:32:48]process_json_proto [02:32:48]json parsed OK: [02:32:48]protocol is kg_v1.0 [02:32:48]action value=close_receipt [02:32:48]process_action close_receipt [02:32:48]cmd_close_receipt [02:32:48]MH_GetDate [02:32:48]Write to MH i2c: F0 00 00 D5 15 D9 [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: F0 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: F0 09 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: F0 09 00 D5 15 00 53 43 72 66 13 9C 7C 64 DF [02:32:48]GetLastDocTimeStamp 1718762368 [02:32:48]current date 1718764371 [02:32:48]FM_GetShiftState [02:32:48]SAM_PROTO_GetShiftState [02:32:48]wFMCommunicate request_size=4 [02:32:48]MH_SAM_APDU [02:32:48]CAPDU: 80 13 01 00 [02:32:48]Write to MH i2c: E2 08 00 D6 15 80 13 01 00 00 00 00 00 68 [02:32:48]Write i2c OK [02:32:48]MH_I2C_Read... [02:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:48]Read from MH i2c: E2 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 0E 00 [02:32:48]MH_I2C_Read... [02:32:48]Read from MH i2c: E2 0E 00 D6 15 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 3E [02:32:48]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [02:32:48]wFMCommunicate OK [02:32:48]SAM_PROTO_GetShiftState done [02:32:48]FM_GetShiftState done [02:32:48]opened in 1718756813 [02:32:48]opened+sec_in_day 1718843213 [02:32:48]quantity*price = 9500 [02:32:48]sum+1 = 9501 [02:32:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.09 Наличными: 208.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 19.06.2024 02:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000172 РНМ: 0000000000092786 Версия ККМ: 001 ФМ: 0000000000875095 ФД: 34300 ФПД: 240808503604767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T023251&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34300&fm=240808503604767&tin=02508201610067®Number=0000000000092786&sum=20800 0 [02:32:49]StoreToDocumentArchive [02:32:49]shift 324 fd 34300 [02:32:49]save to /storage/0324/doc_00034300 [02:32:49]save last doc name /storage/0324/doc_00034300 to /storage/kkm_last_doc_name [02:32:49]save OK [02:32:49]Clear old archive folders... [02:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=401 [02:32:49]tlvbuf is 0191E220 [02:32:49]SAM_PROTO_ClearQueue [02:32:49]wFMCommunicate request_size=4 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 09 00 00 [02:32:49]Write to MH i2c: E2 08 00 E3 15 80 09 00 00 00 00 00 00 6A [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:32:49]Read from MH i2c: E2 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 E3 15 00 90 00 6C [02:32:49]RAPDU: 90 00 [02:32:49]wFMCommunicate OK [02:32:49]SAM_PROTO_ClearQueue done [02:32:49]KKMCreateOFDPacket [02:32:49]OFDProtocolAddRootSTLVToBuf [02:32:49]FM_MakeSignedData [02:32:49]FM_MakeSignedData [02:32:49]SAM_PROTO_SignData [02:32:49]wFMCommunicate request_size=4 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 0D 01 02 [02:32:49]Write to MH i2c: E2 08 00 E4 15 80 0D 01 02 00 00 00 00 72 [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:32:49]Read from MH i2c: E2 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 E4 15 00 90 00 6D [02:32:49]RAPDU: 90 00 [02:32:49]wFMCommunicate OK [02:32:49]wFMCommunicate request_size=255 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 [02:32:49]Write to MH i2c: E2 02 01 E5 15 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 00 00 A6 [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:49]Read from MH i2c: E2 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 E5 15 00 90 00 6E [02:32:49]RAPDU: 90 00 [02:32:49]wFMCommunicate OK [02:32:49]wFMCommunicate request_size=160 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 53 43 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FC 85 00 00 35 04 06 00 DB 03 99 50 F6 1F [02:32:49]Write to MH i2c: E2 A3 00 E6 15 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 53 43 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FC 85 00 00 35 04 06 00 DB 03 99 50 F6 1F 00 00 F7 [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:49]Read from MH i2c: E2 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 03 00 E6 15 00 90 00 6F [02:32:49]RAPDU: 90 00 [02:32:49]wFMCommunicate OK [02:32:49]wFMCommunicate request_size=4 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 0D 03 02 [02:32:49]Write to MH i2c: E2 08 00 E7 15 80 0D 03 02 00 00 00 00 77 [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:32:49]Read from MH i2c: E2 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 0B 00 [02:32:49]MH_I2C_Read... [02:32:49]Read from MH i2c: E2 0B 00 E7 15 00 75 06 82 BD 4C 4C FC 2C 90 00 F2 [02:32:49]RAPDU: 75 06 82 BD 4C 4C FC 2C 90 00 [02:32:49]wFMCommunicate OK [02:32:49]SAM_PROTO_SignData done [02:32:49]FM_MakeSignedData done [02:32:49]CreateOFDProtocolMessage [02:32:49]wFMCommunicate request_size=4 [02:32:49]MH_SAM_APDU [02:32:49]CAPDU: 80 11 00 00 [02:32:49]Write to MH i2c: E2 08 00 E8 15 80 11 00 00 00 00 00 00 77 [02:32:49]Write i2c OK [02:32:49]MH_I2C_Read... [02:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:50]Read from MH i2c: E2 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: E2 17 00 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: E2 17 00 E8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 CC [02:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [02:32:50]wFMCommunicate OK [02:32:50]CreateOFDProtocolMessage done [02:32:50]OFDSenderStorePacket 34300 [02:32:50]StoreOFDPacket docnum=34300 [02:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A5 01 00 00 F2 13 9D 01 4F B7 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 53 43 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FC 85 00 00 35 04 06 00 DB 03 99 50 F6 1F 75 06 82 BD 4C 4C FC 2C [02:32:50]CheckFolder [02:32:50]dirname=/storage/ofd_packets [02:32:50]CheckFolder done [02:32:50]ProducePacketName [02:32:50]name=ofd_packets/00034300 [02:32:50]NVStorageSaveData ofd_packets/00034300 [02:32:50]File name is /storage/ofd_packets/00034300 [02:32:50]Write 451 bytes [02:32:50]NVStorageSaveData done [02:32:50]OFDSenderStorePacket done [02:32:50]KKMCreateOFDPacket done [02:32:50]NVStorageSaveData kkm_last_timestamp [02:32:50]File name is /storage/kkm_last_timestamp [02:32:50]Write 4 bytes [02:32:50]NVStorageSaveData done [02:32:50]ExternCall_PrintAddStr [02:32:50]wPrintStart [02:32:50]Write to MH i2c: 01 00 00 E9 15 FE [02:32:50]OFD Sender: Processing packet 34300 [packets to send 8, broken 7] [02:32:50]ProducePacketName [02:32:50]name=ofd_packets/00034300 [02:32:50]OFD Sender: To server: pG, [02:32:50]CommunicateWithHost lk.salyk.kg:30040 [02:32:50]ConnectInit lk.salyk.kg [02:32:50]Write i2c OK [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: 01 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: 01 07 00 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 FF 0F 13 [02:32:50]RasterBufferAndPrint [02:32:50]line Счет N : (3)184081 [02:32:50]line ИНН: 02508201610067 [02:32:50]line Контрольно-Кассовый Чек [02:32:50]line ПРОДАЖА [02:32:50]line Товар: 4700000480050 [02:32:50]line Напиток Nitro Energy эн green ж/б 0,45л [02:32:50]line 1.000 * 95.00 [02:32:50]line = 95.00 [02:32:50]line НДС 12% НСП 1% [02:32:50]line > о реализуемом товаре [02:32:50]line Товар: 5449000054227 [02:32:50]line Напиток Кока-Кола 1л [02:32:50]line 1.000 * 113.00 [02:32:50]line = 113.00 [02:32:50]line НДС 12% НСП 1% [02:32:50]line > о реализуемом товаре [02:32:50]line ИТОГО: 208.00 [02:32:50]line НСП 1% : 1.84 [02:32:50]line НДС 12% : 22.09 [02:32:50]line Наличными: 208.00 [02:32:50]line Безнал.: 0.00 [02:32:50]line Место: АЗС № 120 "Партнер Нефть" [02:32:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:32:50]line СНО: Общий режим [02:32:50]line Чек 4 19.06.2024 02:32 [02:32:50]line Смена: 324 ФФД: 1.0 [02:32:50]line ЗНМ: 0300000172 [02:32:50]line РНМ: 0000000000092786 [02:32:50]line Версия ККМ: 001 [02:32:50]line ФМ: 0000000000875095 [02:32:50]line ФД: 34300 [02:32:50]line ФПД: 240808503604767 [02:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T023251&type=1&operation_type=1&fn_number=0000000000875095&fd_number=34300&fm=240808503604767&tin=02508201610067®Number=0000000000092786&sum=20800 [02:32:50]line 0 [02:32:50]written 0, free lines is 4095 [02:32:50]Connected sock=10 [02:32:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 A5 01 00 00 F2 13 9D 01 4F B7 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 53 43 72 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FC 85 00 00 35 04 06 00 DB 03 99 50 F6 1F 75 06 82 BD 4C 4C FC 2C [02:32:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 4F 00 00 00 CD AB 47 00 8B 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 10 04 04 00 FC 85 00 00 F4 03 04 00 21 EA 71 66 B6 04 01 00 00 5D 82 45 55 D6 0F D3 15 [02:32:50]CommunicateWithHost err = 0 [02:32:50]CheckOFDResponse [02:32:50]1017 (14) - 77093643461234 [02:32:50]1041 (16) - 0000000000875095 [02:32:50]1040 (4) - 34300 [02:32:50]1012 (4) - 18.06.2024 20:12 [02:32:50]1206 (1) - 0 [02:32:50]OFD Sender: Remove packet 34300 [02:32:50]ProducePacketName [02:32:50]name=ofd_packets/00034300 [02:32:50]NVStorageDeleteData [02:32:50]Write to MH i2c: 01 00 00 18 16 2E [02:32:50]Write i2c OK [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: 01 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: 01 07 00 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: 01 07 00 18 16 00 00 00 00 00 93 0C D4 [02:32:50]RasterBufferAndPrint [02:32:50]line [02:32:50]line [02:32:50]line [02:32:50]line [02:32:50]line [02:32:50]written 0, free lines is 3225 [02:32:50]MH_Cut [02:32:50]Write to MH i2c: D1 01 00 1F 16 01 07 [02:32:50]Write i2c OK [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: D1 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: D1 01 00 [02:32:50]MH_I2C_Read... [02:32:50]Read from MH i2c: D1 01 00 1F 16 00 06 [02:32:50]Write to MH i2c: 01 00 00 20 16 36 [02:32:50]Write i2c OK [02:32:50]MH_I2C_Read... [02:32:51]OFD Sender: No OFD packet to send [02:32:51]*** Cut start [02:32:51]*** Partial cut [02:32:51]*** CUTSNS_PIN = 1 [02:32:51]*** CUTSNS_PIN = 0 [02:32:51]*** Brake cut motor [02:32:52]Read from MH i2c: 01 [02:32:52]MH_I2C_Read... [02:32:52]*** Stop cut motor [02:32:52]*** Cut end [02:32:52]Read from MH i2c: 01 07 00 [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: 01 07 00 20 16 00 00 00 00 00 FF 0F 4B [02:32:52]process_action close_receipt done [02:32:52]requested_data is exist [02:32:52]produce_requested_data [02:32:52]requested_item fm.sn is exist - process it [02:32:52]wFMCommunicate request_size=4 [02:32:52]MH_SAM_APDU [02:32:52]CAPDU: 80 11 00 00 [02:32:52]Write to MH i2c: E2 08 00 21 16 80 11 00 00 00 00 00 00 B1 [02:32:52]Write i2c OK [02:32:52]MH_I2C_Read... [02:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:52]Read from MH i2c: E2 [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: E2 17 00 [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: E2 17 00 21 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 06 [02:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 90 00 [02:32:52]wFMCommunicate OK [02:32:52]requested_item fd.num is exist - process it [02:32:52]SAM_PROTO_GetFieldsCounters [02:32:52]wFMCommunicate request_size=4 [02:32:52]MH_SAM_APDU [02:32:52]CAPDU: 80 13 00 00 [02:32:52]Write to MH i2c: E2 08 00 22 16 80 13 00 00 00 00 00 00 B4 [02:32:52]Write i2c OK [02:32:52]MH_I2C_Read... [02:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:52]Read from MH i2c: E2 [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: E2 62 00 [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: E2 62 00 22 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 FC 85 00 00 0E 04 04 00 44 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [02:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 36 10 04 04 00 FC 85 00 00 0E 04 04 00 44 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:52]wFMCommunicate OK [02:32:52]SAM_PROTO_GetFieldsCounters done [02:32:52]requested_item shift.num is exist - process it [02:32:52]requested_item shift.opened is exist - process it [02:32:52]req_shift_opened [02:32:52]FM_GetShiftState [02:32:52]SAM_PROTO_GetShiftState [02:32:52]wFMCommunicate request_size=4 [02:32:52]MH_SAM_APDU [02:32:52]CAPDU: 80 13 01 00 [02:32:52]Write to MH i2c: E2 08 00 23 16 80 13 01 00 00 00 00 00 B6 [02:32:52]Write i2c OK [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: E2 [02:32:52]MH_I2C_Read... [02:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:52]Read from MH i2c: E2 0E 00 [02:32:52]MH_I2C_Read... [02:32:52]Read from MH i2c: E2 0E 00 23 16 00 09 00 01 CD 25 72 66 00 00 00 00 90 00 8C [02:32:52]RAPDU: 09 00 01 CD 25 72 66 00 00 00 00 90 00 [02:32:52]wFMCommunicate OK [02:32:52]SAM_PROTO_GetShiftState done [02:32:52]FM_GetShiftState done [02:32:52]req_shift_opened done [02:32:52]requested_item shift.open_date is exist - process it [02:32:52]req_shift_open_date [02:32:52]req_shift_open_date done [02:32:52]produce_requested_data done [02:32:52]produce_requested_data return {"fm.sn":"0000000000875095","fd.num":34300,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813} [02:32:52]process_action_free close_receipt [02:32:52]json_value_free [02:32:52]json_value_free done [02:32:52]process_json_proto returns [02:32:52]Send response to host [02:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875095","fd.num":34300,"shift.num":324,"shift.opened":1,"shift.open_date":1718756813}}} [02:32:52]free response buf [02:32:52]execute_script done [02:32:52]execute_script returns [02:32:52]free content buf [02:32:52]Sock 7.Close socket [02:32:52]Sock 7.Thread stoped [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send